File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11
11
</ h2 >
12
12
<%= render partial : 'basic_info' , locals : { publication : @publication } %>
13
13
< dt >
14
+ <% n = @publication . publication_authors . size %>
14
15
<%= fa_icon ( 'user-friends' ) %>
15
- <%= @publication . publication_authors . size == 1 ? 'Author' : 'Authors' %>
16
+ <%= n == 1 ? 'Author' : 'Authors' %>
16
17
</ dt >
17
18
< dd >
18
19
<% @publication . publication_authors . each_with_index do |p_author , k | %>
19
20
<% author = p_author . author %>
20
- <%= '; ' if k > 0 %>
21
- <%= link_to author . full_name , author %>
22
- <% if p_author . sequence %>
23
- (<%= p_author . sequence %> )
24
- <% end %>
21
+ <%= link_to author . full_name , author %> <%= '; ' if k < n - 1 %>
25
22
<% end %>
26
23
</ dd >
27
24
< dt > <%= fa_icon ( 'calendar-day' ) %> Publication date</ dt >
You can’t perform that action at this time.
0 commit comments