mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/users: add user view prototype
This commit is contained in:
@ -3,13 +3,13 @@
|
||||
const handlebars = require('handlebars');
|
||||
const misc = require('./misc.js');
|
||||
|
||||
handlebars.registerHelper('reltime', function(options) {
|
||||
handlebars.registerHelper('reltime', function(time) {
|
||||
return new handlebars.SafeString(
|
||||
'<time datetime="' +
|
||||
options.fn(this) +
|
||||
'" title="' +
|
||||
options.fn(this) +
|
||||
'">' +
|
||||
misc.formatRelativeTime(options.fn(this)) +
|
||||
'<time datetime="' + time + '" title="' + time + '">' +
|
||||
misc.formatRelativeTime(time) +
|
||||
'</time>');
|
||||
});
|
||||
|
||||
handlebars.registerHelper('toLowerCase', function(str) {
|
||||
return str.toLowerCase();
|
||||
});
|
||||
|
Reference in New Issue
Block a user