From daa29fdac6d39909db1642d78c436d66a0746334 Mon Sep 17 00:00:00 2001 From: spen Date: Mon, 22 Dec 2014 11:08:28 +0800 Subject: [PATCH] Add author field for list --- app/models/writing_conference.rb | 4 +++- .../panel/personal_conference/front_end/_profile.html.erb | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/writing_conference.rb b/app/models/writing_conference.rb index fd27478..04fef8f 100644 --- a/app/models/writing_conference.rb +++ b/app/models/writing_conference.rb @@ -84,7 +84,9 @@ class WritingConference 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.conference_title if self.conference_title.present? title << self.sponsor if self.sponsor.present? title << self.location if self.location.present? diff --git a/app/views/panel/personal_conference/front_end/_profile.html.erb b/app/views/panel/personal_conference/front_end/_profile.html.erb index a0e1350..ad80cbb 100644 --- a/app/views/panel/personal_conference/front_end/_profile.html.erb +++ b/app/views/panel/personal_conference/front_end/_profile.html.erb @@ -23,7 +23,6 @@ <%= t('personal_conference.year') %> <%= t('module_name.personal_conference') %> - <%= t('personal_conference.authors') %> @@ -35,7 +34,6 @@ <%= link_to writing_conference.create_link, panel_personal_conference_front_end_writing_conference_path(writing_conference) %> - <%= User.find(writing_conference.create_user_id).name rescue '' %> <% end %>