##// END OF EJS Templates
code layout clean up issues helper...
Toshi MARUYAMA -
r7905:da140238e778
parent child
Show More
@@ -170,7 +170,8 module IssuesHelper
170 170 value = format_date(detail.value.to_date) if detail.value
171 171 old_value = format_date(detail.old_value.to_date) if detail.old_value
172 172
173 when ['project_id', 'status_id', 'tracker_id', 'assigned_to_id', 'priority_id', 'category_id', 'fixed_version_id'].include?(detail.prop_key)
173 when ['project_id', 'status_id', 'tracker_id', 'assigned_to_id',
174 'priority_id', 'category_id', 'fixed_version_id'].include?(detail.prop_key)
174 175 value = find_name_by_reflection(field, detail.value)
175 176 old_value = find_name_by_reflection(field, detail.old_value)
176 177
@@ -197,7 +198,8 module IssuesHelper
197 198 when 'attachment'
198 199 label = l(:label_attachment)
199 200 end
200 call_hook(:helper_issues_show_detail_after_setting, {:detail => detail, :label => label, :value => value, :old_value => old_value })
201 call_hook(:helper_issues_show_detail_after_setting,
202 {:detail => detail, :label => label, :value => value, :old_value => old_value })
201 203
202 204 label ||= detail.prop_key
203 205 value ||= detail.value
General Comments 0
You need to be logged in to leave comments. Login now