Add author field for list

This commit is contained in:
spen 2014-12-22 11:08:28 +08:00
parent 316d72d4a5
commit daa29fdac6
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,9 @@ class WritingConference
end end
def create_link 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.conference_title if self.conference_title.present? title << self.conference_title if self.conference_title.present?
title << self.sponsor if self.sponsor.present? title << self.sponsor if self.sponsor.present?
title << self.location if self.location.present? title << self.location if self.location.present?

View File

@ -23,7 +23,6 @@
<tr> <tr>
<th class="grid1"><%= t('personal_conference.year') %></th> <th class="grid1"><%= t('personal_conference.year') %></th>
<th class="grid8"><%= t('module_name.personal_conference') %></th> <th class="grid8"><%= t('module_name.personal_conference') %></th>
<th class="grid3"><%= t('personal_conference.authors') %></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -35,7 +34,6 @@
<td> <td>
<%= link_to writing_conference.create_link, panel_personal_conference_front_end_writing_conference_path(writing_conference) %> <%= link_to writing_conference.create_link, panel_personal_conference_front_end_writing_conference_path(writing_conference) %>
</td> </td>
<td><%= User.find(writing_conference.create_user_id).name rescue '' %></td>
</tr> </tr>
<% end %> <% end %>