Sha256: 702283b3af39fe43e475ccdc6857a9a2d4c735016f68bfd34e965c2ba7f7d734

Contents?: true

Size: 668 Bytes

Versions: 3

Compression:

Stored size: 668 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')), 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

3 entries across 3 versions & 1 rubygems

Version Path
enju_bookmark-0.2.0.beta.3 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.2.0.beta.2 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.2.0.beta.1 app/views/manifestations/_tag_list.html.erb