More detailed "verb" for task action logging.

This commit is contained in:
2016-10-12 15:08:06 +02:00
parent 32400b34e9
commit 363f1f6110
3 changed files with 30 additions and 12 deletions

View File

@@ -51,9 +51,14 @@ def index():
act.project = id_to_proj[act.project]
if act.node_type == node_type_task_name:
act.link = url_for('attract.tasks.perproject.view_task',
project_url=act.project.url,
task_id=act.object)
if act.context_object:
act.link = url_for('attract.shots.perproject.with_task',
project_url=act.project.url,
task_id=act.object)
else:
act.link = url_for('attract.tasks.perproject.view_task',
project_url=act.project.url,
task_id=act.object)
elif act.node_type == node_type_shot_name:
act.link = url_for('attract.shots.perproject.view_shot',
project_url=act.project.url,