Added helper + minor UI changes

(cherry picked from commit 3a6550ff54eb08ec282d13ebf85dc3461cca2983)
This commit is contained in:
Shrey 2015-08-14 14:54:08 +05:30 committed by Matt Amos
parent 81b6599830
commit 916f2c9036
3 changed files with 26 additions and 9 deletions

View file

@ -89,4 +89,21 @@ module IssuesHelper
end
link_to title, params.merge(:sort => column, :direction => direction)
end
def report_type(report_class)
case report_class
when "DiaryEntry"
t('activerecord.models.diary_entry')
when "User"
t('activerecord.models.user')
when "DiaryComment"
t('activerecord.models.diary_comment')
when "Changeset"
t('activerecord.models.changeset')
when "Note"
t('activerecord.models.note')
else
nil
end
end
end