Used WorkPackagesController instead of IssuesController

pull/6827/head
Sebastian Schuster 11 years ago
parent 7e4602ae5b
commit 30c5b5f77a
  1. 8
      app/views/my_projects_overviews/blocks/_issue_tracking.html.erb
  2. 6
      app/views/my_projects_overviews/blocks/_issues_assigned_to_me.html.erb
  3. 4
      app/views/my_projects_overviews/blocks/_issues_reported_by_me.html.erb
  4. 2
      app/views/my_projects_overviews/blocks/_issues_watched.html.erb
  5. 2
      app/views/my_projects_overviews/index.html.erb
  6. 2
      app/views/my_projects_overviews/page_layout.html.erb

@ -16,7 +16,7 @@ See doc/COPYRIGHT.rdoc for more details.
<div class="issues overview">
<ul>
<% for tracker in trackers %>
<li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => project,
<li><%= link_to h(tracker.name), :controller => '/work_packages', :action => 'index', :project_id => project,
:set_filter => 1,
"tracker_id" => tracker.id %>:
<%= l(:label_x_open_issues_abbr_on_total, :count => open_issues_by_tracker[tracker].to_i,
@ -25,12 +25,12 @@ See doc/COPYRIGHT.rdoc for more details.
<% end %>
</ul>
<p>
<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => project, :set_filter => 1 %>
<%= link_to l(:label_issue_view_all), :controller => '/work_packages', :action => 'index', :project_id => project, :set_filter => 1 %>
<% if User.current.allowed_to?(:view_calendar, project, :global => true) %>
| <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => project) %>
| <%= link_to(l(:label_calendar), :controller => '/calendars', :action => 'show', :project_id => project) %>
<% end %>
<% if User.current.allowed_to?(:view_gantt, project, :global => true) %>
| <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => project) %>
| <%= link_to(l(:label_gantt), :controller => '/gantts', :action => 'show', :project_id => project) %>
<% end %>
</p>
</div>

@ -19,7 +19,7 @@ See doc/COPYRIGHT.rdoc for more details.
:order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_at DESC") %>
<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %>
<% if assigned_issues.length > 0 %>
<p class="small"><%= link_to l(:label_issue_view_all_assigned_to_me), :controller => '/issues',
<p class="small"><%= link_to l(:label_issue_view_all_assigned_to_me), :controller => '/work_packages',
:action => 'index',
:set_filter => 1,
:assigned_to_id => 'me',
@ -28,7 +28,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom,
{:controller => '/issues', :action => 'index', :set_filter => 1,
{:controller => '/work_packages', :action => 'index', :set_filter => 1,
:assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key},
{:title => l(:label_assigned_to_me_issues)}) %>
{:title => l(:label_issues_assigned_to_me)}) %>
<% end %>

@ -19,7 +19,7 @@ See doc/COPYRIGHT.rdoc for more details.
:order => "#{Issue.table_name}.updated_at DESC") %>
<%= render :partial => 'issues/list_simple', :locals => { :issues => reported_issues } %>
<% if reported_issues.length > 0 %>
<p class="small"><%= link_to l(:label_issue_view_all_reported_by_me), :controller => '/issues',
<p class="small"><%= link_to l(:label_issue_view_all_reported_by_me), :controller => '/work_packages',
:action => 'index',
:set_filter => 1,
:status_id => '*',
@ -29,7 +29,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom,
{:controller => '/issues', :action => 'index', :set_filter => 1,
{:controller => '/work_packages', :action => 'index', :set_filter => 1,
:author_id => 'me', :format => 'atom', :key => User.current.rss_key},
{:title => l(:label_issues_reported_by_me)}) %>
<% end %>

@ -15,7 +15,7 @@ See doc/COPYRIGHT.rdoc for more details.
<%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %>
<% if watched_issues.length > 0 %>
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues',
<p class="small"><%= link_to l(:label_issue_view_all), :controller => '/work_packages',
:action => 'index',
:set_filter => 1,
:watcher_id => 'me',

@ -51,7 +51,7 @@ See doc/COPYRIGHT.rdoc for more details.
</div>
<% end %>
<%= context_menu :controller => 'issues', :action => 'context_menu' %>
<%= context_menu :controller => '/work_packages', :action => 'context_menu' %>
<% content_for :sidebar do %>
<% if total_hours.present? %>

@ -26,7 +26,7 @@ function recreateSortables() {
dropOnEmpty: true,
handle: 'handle',
onUpdate: function () {
new Ajax.Request('<%= url_for(:controller => 'my_projects_overviews',
new Ajax.Request('<%= url_for(:controller => '/my_projects_overviews',
:action => 'order_blocks',
:group => f) %>',
{ asynchronous: true,

Loading…
Cancel
Save