added modifytime-macro

This commit is contained in:
Robert Gaggl 2001-06-28 17:53:07 +00:00
parent 76e713fed8
commit ee20573afc

View file

@ -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";