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