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 / show.html.erb @ 461:841b2e40895d
History | View | Annotate | Download (693 Bytes)
| 1 |
<h2>Publication Details</h2> |
|---|---|
| 2 |
<h4>Title</h4> |
| 3 |
<%= h @publication.title %>
|
| 4 |
|
| 5 |
<h4>Authors</h4> |
| 6 |
<% for author in @publication.authors %>
|
| 7 |
<%= h author.name %> <br /> |
| 8 |
<% end %>
|
| 9 |
<br /> |
| 10 |
|
| 11 |
<%- if @publication.bibtex_entry != nil -%>
|
| 12 |
<% @publication.bibtex_entry.attributes.each do |field| %>
|
| 13 |
<% if field[1] != nil %>
|
| 14 |
<h4><%= field[0] %></h4> |
| 15 |
<%= @publication.bibtex_entry.attributes[field[0]] unless field[1] == nil %>
|
| 16 |
<br /> |
| 17 |
<%- end -%>
|
| 18 |
<%- end -%>
|
| 19 |
<%- end -%>
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
<p>
|
| 24 |
<%= link_to "Edit", edit_publication_path(@publication) %> |
|
| 25 |
<%= link_to "Destroy", @publication, :confirm => 'Are you sure?', :method => :delete %> |
|
| 26 |
<%= link_to "View All", publications_path %>
|
| 27 |
</p>
|
| 28 |
|
| 29 |
|