diff --git a/app/models/writing_journal.rb b/app/models/writing_journal.rb index 2ca3846..afa8264 100644 --- a/app/models/writing_journal.rb +++ b/app/models/writing_journal.rb @@ -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") diff --git a/app/views/panel/personal_journal/front_end/_profile.html.erb b/app/views/panel/personal_journal/front_end/_profile.html.erb index 8d5a6d7..c5b4fad 100644 --- a/app/views/panel/personal_journal/front_end/_profile.html.erb +++ b/app/views/panel/personal_journal/front_end/_profile.html.erb @@ -23,7 +23,6 @@ <%= t('personal_journal.year') %> <%= t('module_name.personal_journal') %> - <%= t('personal_journal.authors') %> @@ -35,7 +34,6 @@ <%= link_to writing_journal.create_link, panel_personal_journal_front_end_writing_journal_path(writing_journal) %> - <%= User.find(writing_journal.create_user_id).name rescue '' %> <% end %>