问题中留言按钮改为文字
This commit is contained in:
parent
03415891f5
commit
ee551d220d
|
@ -24,17 +24,17 @@ module JournalsHelper
|
||||||
destroyable = User.current.logged? && ((journal.user == User.current) || (issue.author_id == User.current.id) || (User.current.admin == 1))
|
destroyable = User.current.logged? && ((journal.user == User.current) || (issue.author_id == User.current.id) || (User.current.admin == 1))
|
||||||
links = []
|
links = []
|
||||||
if !journal.notes.blank?
|
if !journal.notes.blank?
|
||||||
links << link_to(image_tag('comment.png'),
|
links << link_to(l(:button_quote),
|
||||||
{:controller => 'journals', :action => 'new', :id => issue, :journal_id => journal},
|
{:controller => 'journals', :action => 'new', :id => issue, :journal_id => journal},
|
||||||
:remote => true,
|
:remote => true,
|
||||||
:method => 'post',
|
:method => 'post',
|
||||||
:title => l(:button_quote)) if options[:reply_links]
|
:title => l(:button_quote)) if options[:reply_links]
|
||||||
links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes",
|
links << link_to_in_place_notes_editor(l(:button_edit), "journal-#{journal.id}-notes",
|
||||||
{ :controller => 'journals', :action => 'edit', :id => journal, :format => 'js' },
|
{ :controller => 'journals', :action => 'edit', :id => journal, :format => 'js' },
|
||||||
:title => l(:button_edit)) if editable
|
:title => l(:button_edit)) if editable
|
||||||
#Added by young
|
#Added by young
|
||||||
if destroyable
|
if destroyable
|
||||||
links << link_to(image_tag('delete.png'), { :controller => 'journals', :action => 'destroy', :id => journal, :format => 'js' },
|
links << link_to(l(:button_delete), { :controller => 'journals', :action => 'destroy', :id => journal, :format => 'js' },
|
||||||
:title => l(:button_delete))
|
:title => l(:button_delete))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue