Revision 1036:8526d7436527 vendor/plugins/redmine_bibliography/app/views/projects
| vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb | ||
|---|---|---|
| 1 |
<% content_for :header_tags do %> |
|
| 2 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
|
| 3 |
<%= javascript_include_tag 'bibtex', :plugin => 'redmine_bibliography' -%> |
|
| 4 |
<% end %> |
|
| 5 |
|
|
| 1 | 6 |
<% if @project.publications.any? %> |
| 2 | 7 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
| 3 | 8 |
<div id="bibliography"> |
| 4 | 9 |
<div class="box"> |
| 5 | 10 |
<h3><%=l(:label_related_publication_plural)%></h3> |
| 6 | 11 |
|
| 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>
|
|
| 12 |
<dl>
|
|
| 13 |
<% @project.publications.each do |publication| %>
|
|
| 14 |
<dt>
|
|
| 15 |
<%= publication.print_entry(:ieee) -%>
|
|
| 16 |
</dt>
|
|
| 17 |
<dd>
|
|
| 18 |
<%= link_to("[More Details]", {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%>
|
|
| 19 |
|
|
| 20 |
<%= link_to_function "[Bibtex]", onclick="toggleBibtex(this)" -%>
|
|
| 21 |
</dd>
|
|
| 22 |
<dd class="bibtex-textarea collapsed" style="display: none;">
|
|
| 23 |
<textarea readonly><%= publication.print_entry(:bibtex) -%></textarea>
|
|
| 24 |
</dd>
|
|
| 20 | 25 |
<% end -%> |
| 21 |
</dl> |
|
| 26 |
</dl>
|
|
| 22 | 27 |
</div> |
| 23 | 28 |
</div> |
| 24 |
<% end %> |
|
| 29 |
<% end -%> |
|
Also available in: Unified diff