antville/code/Tag/Tag.skin
Tobi Schäfer 0ba8805d02 * Fixed skin names according to issue #16
* Fixed rendering of values stored in res.meta.values
 * Removed obsolete code (mostly disabled by comments already)
2008-01-19 17:36:33 +00:00

30 lines
866 B
Text

<% #main %>
<div class="pagelink"><% breadcrumbs %>
<% if <% tag.permission edit %> is true then <% tag.skin name="Tag#controls" %> %>
</div><br />
<% list.prevLink %>
<% list.render skin="TagHub" %>
<% list.nextLink %>
<% #listItem %>
<li>
<a href="<% tag.href action=<% request.action encoding="form" %> %>"><% tag.name %></a>
</li>
<% #admin %>
<tr>
<td><% param.index %></td>
<td><% tag.name %></td>
<td><% tag.size %></td>
</tr>
<% #controls %>
<button type="button" onclick='var name;
if (name = prompt("Enter new name for this tag:")) {
location.href="<% tag.href action="rename" %>?name=" + name;
}'>Rename</button>
<button type="button" onclick='var name;
if (confirm("Are you sure you want to remove the tag <% tag.name %>?")) {
location.href="<% tag.href action="delete" %>";
}'>Delete</button>