* Fixed notifcation skins in HopObject to prevent ugly "null" output; from now on only the ID of the created/modified object is displayed.
* Fixed bug in Story.summary_macro() preventing additional arguments from being used to render metadata content * Added root.sites to _parent mapping in Site.properties
This commit is contained in:
parent
b5f3128757
commit
31251b6809
4 changed files with 9 additions and 10 deletions
|
@ -17,9 +17,9 @@ proceed.' %></p>
|
|||
<% #notify_create %>
|
||||
<% gettext 'Hello {0}.' <% membership.name %> %>
|
||||
|
||||
<% gettext 'This message wants to inform you that on {0} user {1} published the
|
||||
{2} "{3}" [1].' <% this.modified short %> <% this.modifier %>
|
||||
<% this.kind %> <% this.title %> %>
|
||||
<% gettext 'This message wants to inform you that on {0} user {1} published a
|
||||
new {2} [1].' <% this.modified short %> <% this.modifier %>
|
||||
<% this.kind %> %>
|
||||
|
||||
<% gettext "Best regards." %>
|
||||
<% gettext "The Management" %>
|
||||
|
@ -31,9 +31,9 @@ proceed.' %></p>
|
|||
<% #notify_edit %>
|
||||
<% gettext 'Hello {0}.' <% membership.name %> %>
|
||||
|
||||
<% gettext 'This message wants to inform you that on {0} user {1} modified the
|
||||
{2} "{3}" [1].' <% this.modified short %> <% this.modifier %>
|
||||
<% this.kind %> <% this.title %> %>
|
||||
<% gettext 'This message wants to inform you that on {0} user {1} modified
|
||||
{2} #{3} [1].' <% this.modified short %> <% this.modifier %>
|
||||
<% this.kind %> <% this.id %> %>
|
||||
|
||||
<% gettext "Best regards." %>
|
||||
<% gettext "The Management" %>
|
||||
|
|
|
@ -248,8 +248,7 @@ Image.prototype.tags_macro = function() {
|
|||
}
|
||||
|
||||
Image.prototype.contentLength_macro = function() {
|
||||
res.write((this.contentLength / 1024).format("###,###") + " KB");
|
||||
return;
|
||||
return res.write((this.contentLength / 1024).format("###,###") + " KB");
|
||||
}
|
||||
|
||||
Image.prototype.url_macro = function() {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
_db = antville
|
||||
_table = site
|
||||
_id = id
|
||||
_parent = root
|
||||
_parent = root, root.sites
|
||||
|
||||
name
|
||||
mode
|
||||
|
|
|
@ -327,7 +327,7 @@ Story.prototype.link_macro = function(param, action, text) {
|
|||
Story.prototype.summary_macro = function(param) {
|
||||
param.limit || (param.limit = 15);
|
||||
var keys, summary;
|
||||
if (arguments > 1) {
|
||||
if (arguments.length > 1) {
|
||||
res.push();
|
||||
var content;
|
||||
for (var i=1; i<arguments.length; i+=1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue