##// 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 value = format_date(detail.value.to_date) if detail.value
170 value = format_date(detail.value.to_date) if detail.value
171 old_value = format_date(detail.old_value.to_date) if detail.old_value
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 value = find_name_by_reflection(field, detail.value)
175 value = find_name_by_reflection(field, detail.value)
175 old_value = find_name_by_reflection(field, detail.old_value)
176 old_value = find_name_by_reflection(field, detail.old_value)
176
177
@@ -197,7 +198,8 module IssuesHelper
197 when 'attachment'
198 when 'attachment'
198 label = l(:label_attachment)
199 label = l(:label_attachment)
199 end
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 label ||= detail.prop_key
204 label ||= detail.prop_key
203 value ||= detail.value
205 value ||= detail.value
General Comments 0
You need to be logged in to leave comments. Login now