def auditlog(short_name):
pro = pro_features()
if not pro['auditlog_enabled']:
raise abort(403)
(project, owner, n_tasks, n_task_runs,
overall_progress, last_activity,
n_results) = project_by_shortname(short_name)
ensure_authorized_to('read', Auditlog, project_id=project.id)
logs = auditlogger.get_project_logs(project.id)
project = add_custom_contrib_button_to(project, get_user_id_or_ip())
return render_template('projects/auditlog.html', project=project,
owner=owner, logs=logs,
overall_progress=overall_progress,
n_tasks=n_tasks,
n_task_runs=n_task_runs,
n_completed_tasks=cached_projects.n_completed_tasks(project.get('id')),
n_volunteers=cached_projects.n_volunteers(project.get('id')),
pro_features=pro)
评论列表
文章目录