We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
updated_at_ago
update_at_ago
1 parent fd6b447 commit 1310305Copy full SHA for 1310305
models/base_model.js
@@ -9,7 +9,7 @@ module.exports = function (schema) {
9
return tools.formatDate(this.create_at, true);
10
};
11
12
- schema.methods.updated_at_ago = function () {
+ schema.methods.update_at_ago = function () {
13
return tools.formatDate(this.update_at, true);
14
15
views/topic/index.html
@@ -62,9 +62,9 @@
62
<span>
63
<%= topic.visit_count %> 次浏览
64
</span>
65
- <% if (topic.create_at_ago() != topic.updated_at_ago()) { %>
+ <% if (topic.create_at_ago() != topic.update_at_ago()) { %>
66
67
- 最后一次编辑是 <%= topic.updated_at_ago() %>
+ 最后一次编辑是 <%= topic.update_at_ago() %>
68
69
<% } %>
70
<% if (topic.tab) { %>
0 commit comments