Added support for reporting Changesets + Deleting issues from the CLI
This commit is contained in:
parent
cf639202b8
commit
b68b29b43c
9 changed files with 51 additions and 16 deletions
|
@ -10,14 +10,17 @@ module IssuesHelper
|
|||
:id => reportable.id
|
||||
when "User"
|
||||
link_to reportable.display_name.to_s, :controller => reportable.class.name.underscore,
|
||||
:action => "view",
|
||||
:action => :view,
|
||||
:display_name => reportable.display_name
|
||||
when "DiaryComment"
|
||||
link_to "#{reportable.diary_entry.title}, Comment id ##{reportable.id}", :controller => reportable.diary_entry.class.name.underscore,
|
||||
:action => :view,
|
||||
:display_name => reportable.diary_entry.user.display_name,
|
||||
:id => reportable.id
|
||||
|
||||
when "Changeset"
|
||||
link_to "Changeset ##{reportable.id}, Closed at: #{l(reportable.closed_at.to_datetime, :format => :long)}", :controller => :browse,
|
||||
:action => :changeset,
|
||||
:id => reportable.id
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue