Show relative time for latest build

This commit is contained in:
Steve Purcell 2013-03-14 16:27:14 +00:00
parent 2416ef38e5
commit 8a478be7d0

View file

@ -60,7 +60,7 @@
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.0.0/moment.min.js"></script>
<script src="highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
@ -98,7 +98,7 @@
</div>
<div class="span4">
<div class="alert alert-success">
<strong>Latest build:</strong> <em><script language="javascript">document.write(new Date(<%= Time.now.to_i * 1000 %>).toLocaleString());</script></em>
<strong>Latest build:</strong> <em><script language="javascript">document.write(moment(new Date(<%= Time.now.to_i * 1000 %>)).fromNow());</script></em>
</div>
<a class="twitter-timeline" data-dnt="true" data-related="milkypostman,sanityinc" href="https://twitter.com/melpa_emacs" data-widget-id="311867756586864640">Tweets by @melpa_emacs</a>
</div>