<% File.editlink %> |
macro renders a link for editing a file |
Sourcecode in File/macros.js:
1: function editlink_macro(param) { 2: if (session.user) { 3: try { 4: this.checkEdit(session.user, req.data.memberlevel); 5: } catch (deny) { 6: return; 7: } 8: Html.link({href: this.href("edit")}, param.text ? param.text : getMessage("generic.edit")); 9: } 10: return; 11: } |