Code cleanup, use named routes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11078 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-12-23 16:10:07 +00:00
parent 4ac43ab876
commit b7d8913459
4 changed files with 14 additions and 6 deletions

View 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>

View 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>

View 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>
@ -16,8 +16,16 @@
<% 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>

View 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;" %>