Sha256: 53233f208a60f1fa41691bbf6f147f682918cc8c0b317a39f0ab057220027c1b

Contents?: true

Size: 1.71 KB

Versions: 36

Compression:

Stored size: 1.71 KB

Contents

  <%- if params[:mode] == 'show_all_creators' -%>
    <%= agents_list(manifestation.creators.readable_by(current_user)) %>
    <%- if manifestation.creators.readable_by(current_user).size > 5 -%>
      (<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, index_num: manifestation.id, mode: 'show_creators') %>'}); return false;"><%= t('page.hide') %></a>)
    <%- end -%>
  <%- else -%>
    <%= agents_list(manifestation.creators.readable_by(current_user)[0..2]) %>
    <%- if manifestation.creators.readable_by(current_user).size > 5 -%>
      (<a href="#" onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#creator_list_<%= manifestation.id %>').html(request);}, type:'get', url:'<%= manifestation_path(manifestation, index_num: manifestation.id, mode: 'show_all_creators') %>'}); return false;"><%= t('page.show_all') %></a>)
    <%- end -%>
  <%- end -%>

  <%= agents_list(manifestation.contributors.readable_by(current_user)) %>
  <%= agents_list(manifestation.publishers.readable_by(current_user)) %>
  <%- if manifestation.pub_date.present? -%>
    (<%= manifestation.pub_date -%>)
  <%- end -%>
  <% if defined?(EnjuSubject) %>
    <% manifestation.classifications.each_with_index do |classification| %>
      <%= link_to "#{classification.classification_type.display_name.localize}: #{classification.category}", manifestations_path(query: "classification_sm:#{classification.classification_type.name}_#{classification.category}") %>
    <% end %>
  <% end %>

Version data entries

36 entries across 35 versions & 2 rubygems

Version Path
enju_biblio-0.3.18 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.17 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.16 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.15 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.14 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.13 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.12 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.11 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.10 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.10.rc.3 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.10.rc.2 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.10.rc.1 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.9 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.8 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.7 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.6 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.5 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.4 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.3 app/views/manifestations/_show_creators.html.erb
enju_biblio-0.3.2 app/views/manifestations/_show_creators.html.erb