Added a 'New issue' link in the main menu (accesskey 7).
The drop-down lists to add an issue on the project overview and the issue list are removed. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1081 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -162,15 +162,9 @@ module ApplicationHelper
|
||||
@html_title += args
|
||||
end
|
||||
end
|
||||
|
||||
ACCESSKEYS = {:edit => 'e',
|
||||
:preview => 'r',
|
||||
:quick_search => 'f',
|
||||
:search => '4',
|
||||
}.freeze unless const_defined?(:ACCESSKEYS)
|
||||
|
||||
def accesskey(s)
|
||||
ACCESSKEYS[s]
|
||||
Redmine::AccessKeys.key_for s
|
||||
end
|
||||
|
||||
# Formats text according to system settings.
|
||||
|
||||
@@ -188,12 +188,4 @@ module ProjectsHelper
|
||||
gc.draw(imgl)
|
||||
imgl
|
||||
end if Object.const_defined?(:Magick)
|
||||
|
||||
def new_issue_selector
|
||||
trackers = @project.trackers
|
||||
# can't use form tag inside helper
|
||||
content_tag('form',
|
||||
select_tag('tracker_id', '<option></option>' + options_from_collection_for_select(trackers, 'id', 'name'), :onchange => "if (this.value != '') {this.form.submit()}"),
|
||||
:action => url_for(:controller => 'issues', :action => 'new', :project_id => @project), :method => 'get')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user