Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/app/views/publications/index.html.erb @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | b4b72f1eb644 |
children |
line wrap: on
line source
<div class="contextual"> <% if User.current.allowed_to?(:add_publication, @project) %> <%= link_to l(:label_publication_new), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> <% end %> </div> <% if @project %> <h3><%= l(:label_all_publications_for_project, :project => @project.name) %></h3> <% else %> <h3><%= l(:label_all_publications) %></h3> <% end %> <div class="autoscroll"> <table class="list publications"> <thead><tr> <th><%= l(:title) %></th> <th><%= l(:authors) %></th> <th><%= l(:year) %></th> <th><%= l(:associated_projects) %></th> </tr></thead> <%- @publications.each do |publication| -%> <%- if publication.projects.visible.length > 0 -%> <tr class="<%= cycle('odd', 'even') %>"> <td class="firstcol title" align="top"><%= link_to publication.title, :controller => "publications", :action => "show", :id => publication, :project_id => @project %></td> <td class="authors" align="top"> <%= render_authorships_list(publication) %> <td class="year"><%= publication.bibtex_entry.year %></td> <td class="projects"> <%= render_projects_list(publication, false) %> </td> </tr> <%- end -%> <%- end -%> </table> </div> <% content_for :sidebar do %> <% end %>