To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_bibliography / app / views / publications / index.html.erb @ 1382:ac411172d897

History | View | Annotate | Download (1.38 KB)

1
<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
</div>
6

    
7
  <% if @project %>
8
    <h3><%= l(:label_all_publications_for_project, :project => @project.name) %></h3>
9
  <% else %>
10
    <h3><%= l(:label_all_publications) %></h3>
11
  <% end %>
12

    
13
  <div class="autoscroll">
14
  <table class="list publications">
15
    <thead><tr>
16
      <th><%= l(:title) %></th> 
17
      <th><%= l(:authors) %></th> 
18
      <th><%= l(:year) %></th>
19
      <th><%= l(:associated_projects) %></th>
20
    </tr></thead>
21

    
22
    <%- @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
            <%= render_authorships_list(publication) %>
28
          <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
  </table>
36
  </div>
37

    
38
<% content_for :sidebar do %>
39
<% end %>
40