-
- <%= formatRelativeTime(historyEntry.time) %>
+ |
+ <%= util.formatRelativeTime(historyEntry.time) %>
|
diff --git a/public_html/templates/home.tpl b/public_html/templates/home.tpl
index f6ef17f3..fa646943 100644
--- a/public_html/templates/home.tpl
+++ b/public_html/templates/home.tpl
@@ -1,7 +1,7 @@
<%= title %>
<% if (post && post.id) { %>
@@ -25,12 +25,12 @@
<% } %>
uploaded
- <%= formatRelativeTime(post.uploadTime) %>
+ <%= util.formatRelativeTime(post.uploadTime) %>
featured
- <%= formatRelativeTime(post.lastFeatureTime) %>
+ <%= util.formatRelativeTime(post.lastFeatureTime) %>
by
<% var showLink = canViewUsers && user.name %>
@@ -56,7 +56,7 @@
- Version: <%= version %> (built <%= formatRelativeTime(buildTime) %>)
+ Version: <%= version %> (built <%= util.formatRelativeTime(buildTime) %>)
|
Recent tag and post edits
diff --git a/public_html/templates/post-notes.tpl b/public_html/templates/post-notes.tpl
index 3cc70dda..2803a035 100644
--- a/public_html/templates/post-notes.tpl
+++ b/public_html/templates/post-notes.tpl
@@ -8,7 +8,7 @@
- <%= formatMarkdown(note.text) %>
+ <%= util.formatMarkdown(note.text) %>
diff --git a/public_html/templates/post.tpl b/public_html/templates/post.tpl
index 992fde85..b87274f6 100644
--- a/public_html/templates/post.tpl
+++ b/public_html/templates/post.tpl
@@ -10,7 +10,7 @@
@@ -32,7 +32,7 @@
- <%= post.contentExtension + ', ' + formatFileSize(post.originalFileSize) %>
+ <%= post.contentExtension + ', ' + util.formatFileSize(post.originalFileSize) %>
<% } %>
@@ -109,8 +109,8 @@
-
- <%= formatRelativeTime(post.uploadTime) %>
+
+ <%= util.formatRelativeTime(post.uploadTime) %>
@@ -126,7 +126,7 @@
<% if (post.originalFileSize) { %>
File size:
- <%= formatFileSize(post.originalFileSize) %>
+ <%= util.formatFileSize(post.originalFileSize) %>
<% } %>
@@ -140,8 +140,8 @@
<% if (post.lastEditTime !== post.uploadTime) { %>
Edited:
-
- <%= formatRelativeTime(post.lastEditTime) %>
+
+ <%= util.formatRelativeTime(post.lastEditTime) %>
<% } %>
@@ -149,7 +149,7 @@
<% if (post.featureCount > 0) { %>
Featured: <%= post.featureCount %> <%= post.featureCount < 2 ? 'time' : 'times' %>
- (<%= formatRelativeTime(post.lastFeatureTime) %>)
+ (<%= util.formatRelativeTime(post.lastFeatureTime) %>)
<% } %>
@@ -277,8 +277,7 @@
History
<%= historyTemplate({
history: postHistory,
- formatRelativeTime: formatRelativeTime,
- formatAbsoluteTime: formatAbsoluteTime,
+ util: util,
}) %>
<% } %>
diff --git a/public_html/templates/tag.tpl b/public_html/templates/tag.tpl
index 8892b64f..2bb2e0b4 100644
--- a/public_html/templates/tag.tpl
+++ b/public_html/templates/tag.tpl
@@ -103,8 +103,7 @@
History
<%= historyTemplate({
history: tag.history,
- formatRelativeTime: formatRelativeTime,
- formatAbsoluteTime: formatAbsoluteTime,
+ util: util,
}) %>
<% } %>
diff --git a/public_html/templates/user-list-item.tpl b/public_html/templates/user-list-item.tpl
index 336f2695..9b4d08e3 100644
--- a/public_html/templates/user-list-item.tpl
+++ b/public_html/templates/user-list-item.tpl
@@ -19,11 +19,11 @@
<%= user.name %>
<% } %>
-
- Joined: <%= formatRelativeTime(user.registrationTime) %>
+
+ Joined: <%= util.formatRelativeTime(user.registrationTime) %>
-
- Last seen: <%= formatRelativeTime(user.lastLoginTime) %>
+
+ Last seen: <%= util.formatRelativeTime(user.lastLoginTime) %>
diff --git a/public_html/templates/user.tpl b/public_html/templates/user.tpl
index 6006c192..33e95f87 100644
--- a/public_html/templates/user.tpl
+++ b/public_html/templates/user.tpl
@@ -51,15 +51,15 @@
Registered: |
-
- <%= formatRelativeTime(user.registrationTime) %>
+ |
+ <%= util.formatRelativeTime(user.registrationTime) %>
|
Seen: |
-
- <%= formatRelativeTime(user.lastLoginTime) %>
+ |
+ <%= util.formatRelativeTime(user.lastLoginTime) %>
|
|