%
# WontoMedia - a wontology web application
# Copyright (C) 2010 - Glen E. Ivey
# www.wontology.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version
# 3 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program in the file COPYING and/or LICENSE. If not,
# see "http://www.gnu.org/licenses/".
%>
<% if (@item.flags & Item::DATA_IS_UNALTERABLE) == 0 %>
-
<%= link_to 'Edit this item', edit_item_by_name_path(@item.name),
:rel => 'nofollow' -%><%=
popup_help_icon "Help edit items", "Help:Popup/ItemEdit" -%>
-
<% if @connection_list.empty? %>
<%= link_to 'Delete this item', item_path(@item),
:rel => 'nofollow', :confirm => 'Are you sure?',
:method => :delete -%><%=
popup_help_icon "Help delete items", "Help:Popup/ItemDelete" -%>
<% else %>
<%= link_to_function "Can't delete this item",
"cantDeleteItem_Popup()" -%><%=
popup_help_icon "Help with can't-be-deleted items",
"Help:Popup/ItemCantDelete" -%>
<% end %>
<% end %>
-
<%= link_to 'Show item list', items_path -%><%=
popup_help_icon "Help, item list", "Help:Popup/ShowItems" -%>
-
<%= link_to 'Add a new item', new_item_path, :rel => 'nofollow' -%><%=
popup_help_icon "Help, create item", "Help:Popup/ItemAdd" -%>
-
<%= link_to 'Show connection list', connections_path -%><%=
popup_help_icon "Help, connection list",
"Help:Popup/ShowConnections" -%>
-
<%= link_to 'Add a new connection', new_connection_path,
:rel => 'nofollow' -%><%=
popup_help_icon "Help, create connection",
"Help:Popup/ConnectionAdd" -%>