To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_bibliography / app / views / publications / index.html.erb @ 723:d41bf754c0f2
History | View | Annotate | Download (1.38 KB)
| 1 | 638:c2481ae787f0 | luis | <div class="contextual"> |
|---|---|---|---|
| 2 | <% if User.current.allowed_to?(:add_publication, @project) %>
|
||
| 3 | <%= link_to l(:label_publication_new), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
|
||
| 4 | <% end %>
|
||
| 5 | 457:8aa775cb7c0a | luis | </div>
|
| 6 | 329:4575b631f6ce | luis | |
| 7 | 576:c5858d96b9a4 | chris | <% if @project %>
|
| 8 | 691:f8d7e85ccd4e | luis | <h3><%= l(:label_all_publications_for_project, :project => @project.name) %></h3> |
| 9 | 576:c5858d96b9a4 | chris | <% else %>
|
| 10 | 691:f8d7e85ccd4e | luis | <h3><%= l(:label_all_publications) %></h3> |
| 11 | 576:c5858d96b9a4 | chris | <% end %>
|
| 12 | 424:b601a9e472f3 | luis | |
| 13 | 585:5818ebc11362 | chris | <div class="autoscroll"> |
| 14 | <table class="list publications"> |
||
| 15 | <thead><tr> |
||
| 16 | <th><%= l(:title) %></th> |
||
| 17 | <th><%= l(:authors) %></th> |
||
| 18 | 691:f8d7e85ccd4e | luis | <th><%= l(:year) %></th> |
| 19 | <th><%= l(:associated_projects) %></th> |
||
| 20 | 585:5818ebc11362 | chris | </tr></thead> |
| 21 | 457:8aa775cb7c0a | luis | |
| 22 | 692:dd366a17ab34 | luis | <%- @publications.each do |publication| -%>
|
| 23 | <%- if publication.projects.visible.length > 0 -%>
|
||
| 24 | <tr class="<%= cycle('odd', 'even') %>"> |
||
| 25 | <td class="firstcol title" align="top"><%= link_to publication.title, :controller => "publications", :action => "show", :id => publication, :project_id => @project %></td> |
||
| 26 | <td class="authors" align="top"> |
||
| 27 | 693:5163e3ec00b8 | luis | <%= render_authorships_list(publication) %>
|
| 28 | 692:dd366a17ab34 | luis | <td class="year"><%= publication.bibtex_entry.year %></td> |
| 29 | <td class="projects"> |
||
| 30 | <%= render_projects_list(publication, false) %>
|
||
| 31 | </td>
|
||
| 32 | </tr>
|
||
| 33 | <%- end -%>
|
||
| 34 | <%- end -%>
|
||
| 35 | 457:8aa775cb7c0a | luis | </table>
|
| 36 | 585:5818ebc11362 | chris | </div>
|
| 37 | 457:8aa775cb7c0a | luis | |
| 38 | <% content_for :sidebar do %>
|
||
| 39 | <% end %>
|