Sha256: 5c45570665b8846951ab0486cb61f105dd23dae5b68b6837f4016ae88e45a870

Contents?: true

Size: 665 Bytes

Versions: 11

Compression:

Stored size: 665 Bytes

Contents

<div id="tag_list">
  <%- if manifestation.tags -%>
    <%- manifestation.tags.each do |tag| -%>
      <%= link_to_tag(tag) -%>
      <%- if can? :delete, tag -%>
        <%= 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

11 entries across 11 versions & 1 rubygems

Version Path
enju_bookmark-0.1.3 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre23 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre22 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre21 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre20 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre19 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre18 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre17 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre16 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre15 app/views/manifestations/_tag_list.html.erb