To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_bibliography / app / views / projects / _bibliography_box.html.erb @ 1447:1e67c667641f
History | View | Annotate | Download (1.2 KB)
| 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 |
|
| 6 |
<% if @project.publications.any? %>
|
| 7 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
|
| 8 |
<div id="bibliography"> |
| 9 |
<div class="box"> |
| 10 |
<h3><%=l(:label_related_publication_plural)%></h3> |
| 11 |
|
| 12 |
<dl>
|
| 13 |
<% @project.publications.each do |publication| %>
|
| 14 |
<dt>
|
| 15 |
<%= print_ieee_format(publication) %>
|
| 16 |
</dt>
|
| 17 |
<dd>
|
| 18 |
<%= link_to(l("more_details_link"), {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%>
|
| 19 |
|
| 20 |
<%= link_to l(:bibtex_link).html_safe, "javascript:void(0)", :class => "bibtex-link"-%>
|
| 21 |
|
| 22 |
<%- unless publication.external_url.blank? -%>
|
| 23 |
<%= link_to l(:external_url_link), publication.external_url, {:target => "_blank"} -%>
|
| 24 |
<%- end -%>
|
| 25 |
|
| 26 |
|
| 27 |
</dd>
|
| 28 |
<dd class="bibtex-textarea collapsed" style="display: none;"> |
| 29 |
<textarea readonly> <%= print_bibtex_format(publication) -%> </textarea> |
| 30 |
</dd>
|
| 31 |
<% end -%>
|
| 32 |
</dl>
|
| 33 |
</div>
|
| 34 |
</div>
|
| 35 |
<% end -%>
|