To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / plugins / redmine_bibliography / app / views / publications / show.html.erb @ 918:04114f36670d

History | View | Annotate | Download (2.25 KB)

1
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
2

    
3
<h2><%=l(:label_publication_show)%></h2>
4

    
5
<div class="box">
6
<h3>
7
  <%= h @publication.title %>
8
</h3>
9

    
10
<h4><%= l(:authors) %></h4>
11
<ul id="authorships">
12
  <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
13
    <% content_tag_for :li, authorship do %>
14
      <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>    
15
        <span class="handle">[drag to reorder]</span>
16
      <%- end -%>
17
      <%= link_to_authorship authorship %> <em><%= h authorship.institution %></em> <br />
18
    <%- end -%>
19
  <%- end -%>
20
</ul>
21
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
22
  <%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %>
23
<%- end -%>
24

    
25
<%- if @publication.bibtex_entry != nil -%>
26
  <%= show_bibtex_fields(@publication.bibtex_entry) %>
27
<%- end -%>
28

    
29

    
30
<% unless @publication.external_url.blank? %>
31
  <h4>
32
    <%= l(:field_external_url) %>
33
  </h4>
34
  <p>
35
    <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %>
36
  </p>
37
<% end %>
38

    
39
<br / >
40
  <% if User.current.allowed_to?(:add_publication, @project) %>        
41
    <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
42
    <%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
43
                                                     :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> |
44
  <% end %>
45
  <%= link_to l(:view_all_publications), {:controller => 'publications', :action => 'index', :project_id => @project } %>
46
</div>
47

    
48
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
49

    
50
<% content_for :sidebar do %>
51
  <h3><%=l(:label_publication_project_index)%></h3>
52

    
53
  <p id="list_projects">
54
    <%= render :partial => 'list_projects' %>
55
  </p>
56
  
57
  <%- if User.current.allowed_to?(:edit_publication, @project) -%>
58
    <%= render :partial => 'add_project_form' %>    
59
  <%- end -%>
60
<% end %>