diff options
Diffstat (limited to 'app/views/trackers')
-rw-r--r-- | app/views/trackers/edit.html.erb | 4 | ||||
-rw-r--r-- | app/views/trackers/index.html.erb | 10 | ||||
-rw-r--r-- | app/views/trackers/new.html.erb | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/app/views/trackers/edit.html.erb b/app/views/trackers/edit.html.erb index 135bafd5f..d7ba2591c 100644 --- a/app/views/trackers/edit.html.erb +++ b/app/views/trackers/edit.html.erb @@ -1,5 +1,5 @@ -<h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=h @tracker %></h2> +<h2><%= link_to l(:label_tracker_plural), trackers_path %> » <%=h @tracker %></h2> -<% form_for :tracker, @tracker, :url => { :action => 'edit' }, :builder => TabularFormBuilder do |f| %> +<% form_for @tracker, :builder => TabularFormBuilder do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <% end %> 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> diff --git a/app/views/trackers/new.html.erb b/app/views/trackers/new.html.erb index db32471dc..93b0bc1ae 100644 --- a/app/views/trackers/new.html.erb +++ b/app/views/trackers/new.html.erb @@ -1,5 +1,5 @@ -<h2><%= link_to l(:label_tracker_plural), :controller => 'trackers', :action => 'index' %> » <%=l(:label_tracker_new)%></h2> +<h2><%= link_to l(:label_tracker_plural), trackers_path %> » <%=l(:label_tracker_new)%></h2> -<% form_for :tracker, @tracker, :url => { :action => 'new' }, :builder => TabularFormBuilder do |f| %> +<% form_for @tracker, :builder => TabularFormBuilder do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <% end %> |