added modifytime-macro
This commit is contained in:
parent
76e713fed8
commit
ee20573afc
1 changed files with 14 additions and 2 deletions
|
|
@ -50,10 +50,22 @@ function author_macro(param) {
|
|||
|
||||
function createtime_macro(param) {
|
||||
renderPrefix(param);
|
||||
res.write(param.format ? this.createtime.format(param.format) : this.createtime.format("yyyy.MM.dd HH:mm"));
|
||||
this.weblog.formatTimestamp(this.createtime,param);
|
||||
renderSuffix(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* macro renders modifytime of comment
|
||||
*/
|
||||
|
||||
function modifytime_macro(param) {
|
||||
if (this.modifytime) {
|
||||
renderPrefix(param);
|
||||
this.weblog.formatTimestamp(this.modifytime,param);
|
||||
renderSuffix(param);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* macro renders a link for editing a posting
|
||||
* if user == author of posting
|
||||
|
|
@ -101,7 +113,7 @@ function deletelink_macro(param) {
|
|||
*/
|
||||
|
||||
function replylink_macro(param) {
|
||||
if (this.weblog.hasDiscussions() && user.uid && !user.isBlocked() && path[path.length-1] != this) {
|
||||
if (this.weblog.hasDiscussions() && !user.isBlocked() && path[path.length-1] != this) {
|
||||
renderPrefix(param);
|
||||
var linkParam = new HopObject();
|
||||
linkParam.linkto = "reply";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue