@@ -180,7 +180,7 module ProjectsHelper | |||
|
180 | 180 | trackers = Tracker.find(:all, :order => 'position') |
|
181 | 181 | # can't use form tag inside helper |
|
182 | 182 | content_tag('form', |
|
183 | select_tag('tracker_id', '<option></option' + options_from_collection_for_select(trackers, 'id', 'name'), :onchange => "if (this.value != '') {this.form.submit()}"), | |
|
183 | select_tag('tracker_id', '<option></option>' + options_from_collection_for_select(trackers, 'id', 'name'), :onchange => "if (this.value != '') {this.form.submit()}"), | |
|
184 | 184 | :action => url_for(:controller => 'projects', :action => 'add_issue', :id => @project), :method => 'get') |
|
185 | 185 | end |
|
186 | 186 | end |
@@ -1,7 +1,7 | |||
|
1 | 1 | <% if @query.new_record? %> |
|
2 | 2 | <div class="contextual"> |
|
3 | 3 | <%= link_to l(:label_query_plural), :controller => 'queries', :project_id => @project %> |
|
4 |
<% if authorize_for('projects', 'add_issue |
|
|
4 | <% if authorize_for('projects', 'add_issue') %>| <%= l(:label_issue_new) %>: <%= new_issue_selector %><% end %> | |
|
5 | 5 | </div> |
|
6 | 6 | <h2><%=l(:label_issue_plural)%></h2> |
|
7 | 7 | |
@@ -34,7 +34,7 | |||
|
34 | 34 | <div class="contextual"> |
|
35 | 35 | <%= link_to l(:label_query_plural), {:controller => 'queries', :project_id => @project} %> | |
|
36 | 36 | <%= link_to l(:label_issue_view_all), {:controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1} %> |
|
37 |
<% if authorize_for('projects', 'add_issue |
|
|
37 | <% if authorize_for('projects', 'add_issue') %>| <%= l(:label_issue_new) %>: <%= new_issue_selector %><% end %> | |
|
38 | 38 | </div> |
|
39 | 39 | <h2><%= @query.name %></h2> |
|
40 | 40 | <% end %> |
@@ -20,7 +20,7 | |||
|
20 | 20 | </ul> |
|
21 | 21 | |
|
22 | 22 | <div class="box"> |
|
23 |
<div class="contextual"><% if authorize_for('projects', 'add_issue |
|
|
23 | <div class="contextual"><% if authorize_for('projects', 'add_issue') %><%= l(:label_issue_new) %>: <%= new_issue_selector %><% end %></div> | |
|
24 | 24 | <h3 class="icon22 icon22-tracker"><%=l(:label_issue_tracking)%></h3> |
|
25 | 25 | <ul> |
|
26 | 26 | <% for tracker in @trackers %> |
General Comments 0
You need to be logged in to leave comments.
Login now