summaryrefslogtreecommitdiffstats
path: root/_includes/footer.html
diff options
context:
space:
mode:
authordequis2014-08-07 02:51:41 -0300
committerdequis2014-08-07 06:36:51 -0300
commit0345d705714e8a545994224047510ee5e26c6543 (patch)
treed5a71d11dde13f037c581f175886cf3a289987b8 /_includes/footer.html
parent866eb1da29e97cdab1ec30be1222ece03ee31543 (diff)
downloadscripts.irssi.org-0345d705714e8a545994224047510ee5e26c6543.tar.bz2
Add "modified" column, prettified with "timeago" if js is available
Also sorts correctly. Date formatting is something this template engine definitely does right. The timeago cutoff is set to one year, it just displays YYYY-MM-DD for dates older than that.
Diffstat (limited to '_includes/footer.html')
-rw-r--r--_includes/footer.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index a7d7603..f8a9d7e 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,5 +1,13 @@
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/sorttable.js"></script>
+ <script src="assets/js/jquery.timeago.js"></script>
+ <script>
+ $(function() {
+ jQuery.timeago.settings.cutoff = 365*24*60*60*1000;
+ jQuery.timeago.settings.localeTitle = true;
+ $("abbr.timeago").timeago();
+ });
+ </script>
</body>
</html>