Sha256: 3761f14e16a56c725dd3bcc4e6cf7b599a0b9676fce9ad5da1fc19a759d2afc7

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 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

6 entries across 6 versions & 1 rubygems

Version Path
enju_bookmark-0.1.2.pre14 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre13 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre12 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre11 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre10 app/views/manifestations/_tag_list.html.erb
enju_bookmark-0.1.2.pre9 app/views/manifestations/_tag_list.html.erb