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 @ 1308:3783c5b32eb3
History | View | Annotate | Download (1.02 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("[More Details]", {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%>
|
| 19 |
|
| 20 |
<%= link_to_function "[B<small>IB</small>T<sub>E</sub>X]", onclick="toggleBibtex(this)" -%>
|
| 21 |
</dd>
|
| 22 |
<dd class="bibtex-textarea collapsed" style="display: none;"> |
| 23 |
<textarea readonly> <%= print_bibtex_format(publication) %> </textarea> |
| 24 |
</dd>
|
| 25 |
<% end -%>
|
| 26 |
</dl>
|
| 27 |
</div>
|
| 28 |
</div>
|
| 29 |
<% end -%>
|