10 lines
715 B
Plaintext
10 lines
715 B
Plaintext
<p>
|
|
<strong>Tagged items:</strong>
|
|
<% if @tag_images.empty? -%>
|
|
None.
|
|
<% elsif (read_only ||= false) -%>
|
|
<%= @tag_images.collect { |t| "<span onmouseover=\"show_tag_at(#{t.x}, #{t.y})\" onmouseout=\"hide_tag_box()\">#{(t.tagged.respond_to?(:name) ? t.tagged.name : t.tagged.title)} (<em>#{t.tagged_type}</em>)</span>" }.join(', ') %>
|
|
<% else -%>
|
|
<%= @tag_images.collect { |t| "<span onmouseover=\"show_tag_at(#{t.x}, #{t.y})\" onmouseout=\"hide_tag_box()\">#{(t.tagged.respond_to?(:name) ? t.tagged.name : t.tagged.title)} (<em>#{t.tagged_type}</em> | #{link_to_remote('Remove', :url => tag_image_path(t), :update => 'tag_images', :method => :delete)})</span>" }.join(', ') -%>
|
|
<% end -%>
|
|
</p> |