diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-22 21:32:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-22 21:32:45 +0000 |
commit | 6577f37fc3c332a6d5e5a50f6d30820b93143436 (patch) | |
tree | e7d46f134350b1d7a63f2a1f326779bedd2fb818 /app/views/trackers/index.html.erb | |
parent | 33f7f5a00d2a0519935182956da4f64aa69acba7 (diff) | |
download | redmine-6577f37fc3c332a6d5e5a50f6d30820b93143436.tar.gz redmine-6577f37fc3c332a6d5e5a50f6d30820b93143436.zip |
Resourcified trackers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7888 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/trackers/index.html.erb')
-rw-r--r-- | app/views/trackers/index.html.erb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/trackers/index.html.erb b/app/views/trackers/index.html.erb index 3234d312b..ef48bdc9e 100644 --- a/app/views/trackers/index.html.erb +++ b/app/views/trackers/index.html.erb @@ -1,5 +1,5 @@ <div class="contextual"> -<%= link_to l(:label_tracker_new), {:action => 'new'}, :class => 'icon icon-add' %> +<%= link_to l(:label_tracker_new), new_tracker_path, :class => 'icon icon-add' %> </div> <h2><%=l(:label_tracker_plural)%></h2> @@ -14,12 +14,12 @@ <tbody> <% for tracker in @trackers %> <tr class="<%= cycle("odd", "even") %>"> - <td><%= link_to h(tracker.name), :action => 'edit', :id => tracker %></td> + <td><%= link_to h(tracker.name), edit_tracker_path(tracker) %></td> <td align="center"><% unless tracker.workflows.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 => 'edit', :id => tracker}) %></td> + <td align="center" style="width:15%;"><%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %></td> <td class="buttons"> - <%= link_to(l(:button_delete), { :action => 'destroy', :id => tracker }, - :method => :post, + <%= link_to(l(:button_delete), tracker_path(tracker), + :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %> </td> |