##// END OF EJS Templates
Code cleanup....
Jean-Philippe Lang -
r13215:209babeedb3c
parent child
Show More
@@ -791,7 +791,7 module ApplicationHelper
791 case prefix
791 case prefix
792 when nil
792 when nil
793 if oid.to_s == identifier &&
793 if oid.to_s == identifier &&
794 issue = Issue.visible.includes(:status).find_by_id(oid)
794 issue = Issue.visible.find_by_id(oid)
795 anchor = comment_id ? "note-#{comment_id}" : nil
795 anchor = comment_id ? "note-#{comment_id}" : nil
796 link = link_to(h("##{oid}#{comment_suffix}"),
796 link = link_to(h("##{oid}#{comment_suffix}"),
797 {:only_path => only_path, :controller => 'issues',
797 {:only_path => only_path, :controller => 'issues',
@@ -810,7 +810,7 module ApplicationHelper
810 :class => 'version'
810 :class => 'version'
811 end
811 end
812 when 'message'
812 when 'message'
813 if message = Message.visible.includes(:parent).find_by_id(oid)
813 if message = Message.visible.find_by_id(oid)
814 link = link_to_message(message, {:only_path => only_path}, :class => 'message')
814 link = link_to_message(message, {:only_path => only_path}, :class => 'message')
815 end
815 end
816 when 'forum'
816 when 'forum'
General Comments 0
You need to be logged in to leave comments. Login now