|
|
@ -55,12 +55,16 @@ angular.module('openproject.helpers') |
|
|
|
projectPath: function(projectIdentifier) { |
|
|
|
projectPath: function(projectIdentifier) { |
|
|
|
return PathHelper.projectsPath() + '/' + projectIdentifier; |
|
|
|
return PathHelper.projectsPath() + '/' + projectIdentifier; |
|
|
|
}, |
|
|
|
}, |
|
|
|
timeEntriesPath: function(projectIdentifier) { |
|
|
|
timeEntriesPath: function(projectIdentifier, workPackageIdentifier) { |
|
|
|
if (projectIdentifier) { |
|
|
|
var path = '/time_entries/'; |
|
|
|
return PathHelper.projectPath(projectIdentifier) + '/time_entries/'; |
|
|
|
|
|
|
|
} else { |
|
|
|
if (workPackageIdentifier) { |
|
|
|
return '/time_entries/'; |
|
|
|
return PathHelper.workPackagePath(workPackageIdentifier) + path; |
|
|
|
|
|
|
|
} else if (projectIdentifier) { |
|
|
|
|
|
|
|
return PathHelper.projectPath(projectIdentifier) + path; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return path; |
|
|
|
}, |
|
|
|
}, |
|
|
|
timeEntryPath: function(timeEntryIdentifier) { |
|
|
|
timeEntryPath: function(timeEntryIdentifier) { |
|
|
|
return '/time_entries/' + timeEntryIdentifier; |
|
|
|
return '/time_entries/' + timeEntryIdentifier; |
|
|
|