mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
Removes routes for time entries nested under project/issues.
git-svn-id: http://svn.redmine.org/redmine/trunk@13424 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -36,4 +36,34 @@ module RoutesHelper
|
||||
def _project_gantt_path(project, *args)
|
||||
project ? project_gantt_path(project, *args) : issues_gantt_path(*args)
|
||||
end
|
||||
|
||||
def _time_entries_path(project, issue, *args)
|
||||
if issue
|
||||
issue_time_entries_path(issue, *args)
|
||||
elsif project
|
||||
project_time_entries_path(project, *args)
|
||||
else
|
||||
time_entries_path(*args)
|
||||
end
|
||||
end
|
||||
|
||||
def _report_time_entries_path(project, issue, *args)
|
||||
if issue
|
||||
report_issue_time_entries_path(issue, *args)
|
||||
elsif project
|
||||
report_project_time_entries_path(project, *args)
|
||||
else
|
||||
report_time_entries_path(*args)
|
||||
end
|
||||
end
|
||||
|
||||
def _new_time_entry_path(project, issue, *args)
|
||||
if issue
|
||||
new_issue_time_entry_path(issue, *args)
|
||||
elsif project
|
||||
new_project_time_entry_path(project, *args)
|
||||
else
|
||||
new_time_entry_path(*args)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user