Add author field for list
This commit is contained in:
parent
cb178e8df7
commit
a4e8c4d998
|
@ -90,7 +90,9 @@ class WritingJournal
|
|||
end
|
||||
|
||||
def create_link
|
||||
title = ["#{self.paper_title}"]
|
||||
title = []
|
||||
title << self.authors if self.authors.present?
|
||||
title << self.paper_title if self.paper_title.present?
|
||||
title << self.journal_title if self.journal_title.present?
|
||||
title << ( !self.journal_level_types.blank? ? "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})" : nil)
|
||||
title << "Volume No: "+self.vol_no if (self.vol_no.present? && self.vol_no != "0")
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
<tr>
|
||||
<th class="grid1"><%= t('personal_journal.year') %></th>
|
||||
<th class="grid8"><%= t('module_name.personal_journal') %></th>
|
||||
<th class="grid3"><%= t('personal_journal.authors') %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -35,7 +34,6 @@
|
|||
<td>
|
||||
<%= link_to writing_journal.create_link, panel_personal_journal_front_end_writing_journal_path(writing_journal) %>
|
||||
</td>
|
||||
<td><%= User.find(writing_journal.create_user_id).name rescue '' %></td>
|
||||
</tr>
|
||||
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue