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 / projects / _bibliography_box.html.erb @ 811:b4e59a60b447
History | View | Annotate | Download (849 Bytes)
| 1 |
<% if @project.publications.any? %>
|
|---|---|
| 2 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
|
| 3 |
<div id="bibliography"> |
| 4 |
<div class="box"> |
| 5 |
<h3><%=l(:label_related_publication_plural)%></h3> |
| 6 |
|
| 7 |
<dl>
|
| 8 |
<% @project.publications.each do |publication| %>
|
| 9 |
<dt>
|
| 10 |
<span class="authors"> |
| 11 |
<%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %> |
| 12 |
</span>
|
| 13 |
<span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication, :project_id => @project %></span> |
| 14 |
<% if publication.bibtex_entry.year.to_s != "" %>
|
| 15 |
<span class="year"> |
| 16 |
(<%= publication.bibtex_entry.year %>) |
| 17 |
</span>
|
| 18 |
<% end %>
|
| 19 |
</dt><dd></dd> |
| 20 |
<% end -%>
|
| 21 |
</dl>
|
| 22 |
</div>
|
| 23 |
</div>
|
| 24 |
<% end %>
|