#%]
[%
MACRO link(table, command, additional, label) BLOCK;
- '<a href="' _ base _ "/" _ table _ "/" _ command _ "/" _ additional _ '">';
+ SET lnk = base _ "/" _ table _ "/" _ command _ "/" _ additional;
+ lnk = lnk | uri | html;
+ '<a href="' _ lnk _ '">';
label;
"</a>";
END;
END;
"</td>";
END;
- "<td>";
+ '<td class="actions" nowrap="nowrap">';
button(item, "edit");
button(item, "delete");
"</td>";
[%
MACRO view_related(object) BLOCK;
FOR accessor = classmetadata.related_accessors.list;
- "<h3>"; accessor | ucfirst; "</h3>\n";
+ "<div id=\"subtitle\">"; accessor | ucfirst; "</div>\n";
"<ul id=\"vlist\">";
FOR thing = object.$accessor;
"<li>"; maybe_link_view(thing); "</li>\n";