view plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 939f4a491900
children
line wrap: on
line source
<% content_for :header_tags do %>
    <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
    <%= javascript_include_tag 'bibtex', :plugin => 'redmine_bibliography' -%>
<% end %>

<% if @project.publications.any? %>
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
  <div id="bibliography">
    <div class="box">
    <h3><%=l(:label_related_publication_plural)%></h3>

     <dl>
     <% @project.publications.each do |publication| %>
       <dt>
          <%= print_ieee_format(publication) %>
       </dt>
       <dd>
         <%= link_to(l("more_details_link"), {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%>

         <%= link_to l(:bibtex_link).html_safe, "javascript:void(0)", :class => "bibtex-link"-%>

        <%- unless publication.external_url.blank? -%>
            <%= link_to l(:external_url_link), publication.external_url, {:target => "_blank"} -%>
        <%- end -%>


       </dd>
       <dd class="bibtex-textarea collapsed" style="display: none;">
         <textarea readonly> <%= print_bibtex_format(publication) -%> </textarea>
       </dd>
   <% end -%>
     </dl>
  </div>
</div>
<% end -%>