]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup, use named routes.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 23 Dec 2012 16:10:07 +0000 (16:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 23 Dec 2012 16:10:07 +0000 (16:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11078 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/roles/index.html.erb
app/views/trackers/fields.html.erb
app/views/trackers/index.html.erb
app/views/users/index.html.erb

index 5326c5638fca6c02e4b205f144d519d2c8608240..4240d096bbfe0c46eeb1b58f8d5453442969492a 100644 (file)
@@ -1,6 +1,6 @@
 <div class="contextual">
 <%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
-<%= link_to l(:label_permissions_report), {:action => 'permissions'}, :class => 'icon icon-summary' %>
+<%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %>
 </div>
 
 <h2><%=l(:label_role_plural)%></h2>
index a4872112fd9524dfbf50660debf3230cbdbe328f..ef8959147d68e92782e009f4ed4c2fbd0940501d 100644 (file)
@@ -1,7 +1,7 @@
 <h2><%= link_to l(:label_tracker_plural), trackers_path %> &#187; <%= l(:field_summary) %></h2>
 
 <% if @trackers.any? %>
-  <%= form_tag({}) do %>
+  <%= form_tag fields_trackers_path do %>
     <div class="autoscroll">
     <table class="list">
     <thead>
index b3840dba703944305014a8e53ccd514d43877c93..469ff7945fc2d3dc7372a5f0e6cf2ddb054da928 100644 (file)
@@ -1,6 +1,6 @@
 <div class="contextual">
 <%= link_to l(:label_tracker_new), new_tracker_path, :class => 'icon icon-add' %>
-<%= link_to l(:field_summary), {:action => 'fields'}, :class => 'icon icon-summary' %>
+<%= link_to l(:field_summary), fields_trackers_path, :class => 'icon icon-summary' %>
 </div>
 
 <h2><%=l(:label_tracker_plural)%></h2>
 <% for tracker in @trackers %>
   <tr class="<%= cycle("odd", "even") %>">
   <td><%= link_to h(tracker.name), edit_tracker_path(tracker) %></td>
-  <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>
-  <td align="center" style="width:15%;"><%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %></td>
+  <td align="center">
+    <% unless tracker.workflow_rules.count > 0 %>
+      <span class="icon icon-warning">
+        <%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
+      </span>
+    <% end %>
+  </td>
+  <td align="center" style="width:15%;">
+    <%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %>
+  </td>
   <td class="buttons">
     <%= delete_link tracker_path(tracker) %>
   </td>
index 4f77a6493a19f42c7a9d46596827ef8f6c860ebc..85dc27f675a7e50ea367a145324d94be6b32ac8b 100644 (file)
@@ -4,7 +4,7 @@
 
 <h2><%=l(:label_user_plural)%></h2>
 
-<%= form_tag({}, :method => :get) do %>
+<%= form_tag(users_path, :method => :get) do %>
 <fieldset><legend><%= l(:label_filter_plural) %></legend>
 <label for='status'><%= l(:field_status) %>:</label>
 <%= select_tag 'status', users_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;"  %>