Sha256: be7e8afeb4f166408b1734647178eaec9a9121aa1590629c0237cc262bd7af97

Contents?: true

Size: 703 Bytes

Versions: 8

Compression:

Stored size: 703 Bytes

Contents

<div id="tag_list">
  <%- if manifestation.tags -%>
    <%- manifestation.tags.each do |tag| -%>
      <%= link_to_tag(tag) -%>
      <%- if policy(tag).destroy? -%>
        <%= link_to image_tag('icons/tag_blue_edit.png', alt: t('page.edit'), size: '16x16', class: 'enju_icon'), tag_path(tag.name) -%>
      <%- end -%>
    <%- end -%>
  <%- end -%>
  <%- if user_signed_in? -%>
    (<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#tag_list').html(request);}, type:'get', url:'<%= edit_manifestation_path(manifestation, mode: 'tag_edit') %>'}); return false;"><%= t('page.edit') %></a>)
  <%- end -%>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_bookmark-0.3.2 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.3.1 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.3.0 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.3.0.beta.1 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.2.2 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.2.1 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.2.0 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.2.0.beta.5 app/views/manifestations/_tag_list.html.erb