##// END OF EJS Templates
Code cleanup, use named routes....
Jean-Philippe Lang -
r10848:b7d8913459ae
parent child
Show More
@@ -1,6 +1,6
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
2 <%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
3 <%= link_to l(:label_permissions_report), {:action => 'permissions'}, :class => 'icon icon-summary' %>
3 <%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %>
4 </div>
4 </div>
5
5
6 <h2><%=l(:label_role_plural)%></h2>
6 <h2><%=l(:label_role_plural)%></h2>
@@ -1,7 +1,7
1 <h2><%= link_to l(:label_tracker_plural), trackers_path %> &#187; <%= l(:field_summary) %></h2>
1 <h2><%= link_to l(:label_tracker_plural), trackers_path %> &#187; <%= l(:field_summary) %></h2>
2
2
3 <% if @trackers.any? %>
3 <% if @trackers.any? %>
4 <%= form_tag({}) do %>
4 <%= form_tag fields_trackers_path do %>
5 <div class="autoscroll">
5 <div class="autoscroll">
6 <table class="list">
6 <table class="list">
7 <thead>
7 <thead>
@@ -1,6 +1,6
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to l(:label_tracker_new), new_tracker_path, :class => 'icon icon-add' %>
2 <%= link_to l(:label_tracker_new), new_tracker_path, :class => 'icon icon-add' %>
3 <%= link_to l(:field_summary), {:action => 'fields'}, :class => 'icon icon-summary' %>
3 <%= link_to l(:field_summary), fields_trackers_path, :class => 'icon icon-summary' %>
4 </div>
4 </div>
5
5
6 <h2><%=l(:label_tracker_plural)%></h2>
6 <h2><%=l(:label_tracker_plural)%></h2>
@@ -16,8 +16,16
16 <% for tracker in @trackers %>
16 <% for tracker in @trackers %>
17 <tr class="<%= cycle("odd", "even") %>">
17 <tr class="<%= cycle("odd", "even") %>">
18 <td><%= link_to h(tracker.name), edit_tracker_path(tracker) %></td>
18 <td><%= link_to h(tracker.name), edit_tracker_path(tracker) %></td>
19 <td align="center"><% unless tracker.workflow_rules.count > 0 %><span class="icon icon-warning"><%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), {:controller => 'workflows', :action => 'edit', :tracker_id => tracker} %>)</span><% end %></td>
19 <td align="center">
20 <td align="center" style="width:15%;"><%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %></td>
20 <% unless tracker.workflow_rules.count > 0 %>
21 <span class="icon icon-warning">
22 <%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
23 </span>
24 <% end %>
25 </td>
26 <td align="center" style="width:15%;">
27 <%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %>
28 </td>
21 <td class="buttons">
29 <td class="buttons">
22 <%= delete_link tracker_path(tracker) %>
30 <%= delete_link tracker_path(tracker) %>
23 </td>
31 </td>
@@ -4,7 +4,7
4
4
5 <h2><%=l(:label_user_plural)%></h2>
5 <h2><%=l(:label_user_plural)%></h2>
6
6
7 <%= form_tag({}, :method => :get) do %>
7 <%= form_tag(users_path, :method => :get) do %>
8 <fieldset><legend><%= l(:label_filter_plural) %></legend>
8 <fieldset><legend><%= l(:label_filter_plural) %></legend>
9 <label for='status'><%= l(:field_status) %>:</label>
9 <label for='status'><%= l(:field_status) %>:</label>
10 <%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
10 <%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
General Comments 0
You need to be logged in to leave comments. Login now