Revision 1313:17f075c7fd41
| plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb | ||
|---|---|---|
| 15 | 15 |
<%= print_ieee_format(publication) %> |
| 16 | 16 |
</dt> |
| 17 | 17 |
<dd> |
| 18 |
<%= link_to("[More Details]", {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%>
|
|
| 18 |
<%= link_to(l("more_details_link"), {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%>
|
|
| 19 | 19 |
|
| 20 |
<%= link_to_function "[B<small>IB</small>T<sub>E</sub>X]", onclick="toggleBibtex(this)" -%>
|
|
| 20 |
<%= link_to l(:bibtex_link).html_safe, "javascript:void(0)", :class => "bibtex-link"-%>
|
|
| 21 | 21 |
</dd> |
| 22 | 22 |
<dd class="bibtex-textarea collapsed" style="display: none;"> |
| 23 | 23 |
<textarea readonly> <%= print_bibtex_format(publication) %> </textarea> |
| plugins/redmine_bibliography/assets/javascripts/bibtex.js | ||
|---|---|---|
| 1 |
function toggleBibtex(el) {
|
|
| 2 |
var dd = Element.up(el).next('dd');
|
|
| 3 | 1 |
|
| 4 |
dd.toggleClassName('collapsed');
|
|
| 5 |
Effect.toggle(dd, 'slide', {duration:0.2});
|
|
| 6 |
} |
|
| 2 |
$('.bibtex-link').live("click", function() {
|
|
| 3 |
$this = $(this); |
|
| 4 |
$this.closest('dd').next('dd').toggle();
|
|
| 5 |
}); |
|
| plugins/redmine_bibliography/config/locales/en.yml | ||
|---|---|---|
| 148 | 148 |
mail_subject_publication_added: "You have been added as an author to a new publication" |
| 149 | 149 |
mail_body_publication_added: "A new publication (%{publication}) has been added to the project '%{project}.'"
|
| 150 | 150 |
|
| 151 |
bibtex_link: "[B<small>IB</small>T<sub>E</sub>X]" |
|
| 152 |
more_details_link: "[More Details]" |
|
| 151 | 153 |
|
| 152 |
|
|
Also available in: Unified diff