Fix link.
This commit is contained in:
parent
a827a607a4
commit
77b6c0a2d2
|
@ -17,7 +17,6 @@ class OtherPaper
|
|||
field :authors, :type => String, :default => "", :localize => true
|
||||
|
||||
|
||||
|
||||
belongs_to :other_paper_status
|
||||
|
||||
field :rss2_id
|
||||
|
@ -200,7 +199,8 @@ class OtherPaper
|
|||
if field == "title"
|
||||
link = OrbitHelper.url_to_plugin_show(other_paper.to_param,'personal_other_paper')
|
||||
tmp_title = (title_is_paper_format ? other_paper.create_link : value)
|
||||
value = link == '#' ? tmp_title : "<a href='#{link}' target='_blank' title='#{tmp_title}'>#{tmp_title}</a>"
|
||||
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||
value = (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}")
|
||||
end
|
||||
value
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue