OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/open_project/backlogs/issue_actions.rb

13 lines
540 B

class OpenProject::Backlogs::IssueActions < OpenProject::Nissue::View
def initialize(issue)
@issue = issue
end
def render(t)
css_class = "watcher_link_#{@issue.id}"
content_tag(:div, [
(t.modal_link_to(l(:button_update), {:controller => 'issue_boxes', :action => 'edit', :id => @issue }, :class => 'icon icon-edit') if t.authorize_for('issue_boxes', 'edit')),
t.watcher_link(@issue, User.current, :class => css_class, :replace => ".#{css_class}")
].join.html_safe, :class => 'contextual')
end
end