Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit c4ebbdb

Browse files
author
Pierre GIRAUD
committed
Merge pull request #391 from pgiraud/unlock_link
Move unlock button to more appropriate location
2 parents fbe5e85 + 634eecf commit c4ebbdb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

osmtm/templates/task.locked.mako

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ time_left = (task.cur_lock.date - (datetime.datetime.utcnow() - EXPIRATION_DELTA
1010
<span class="glyphicon glyphicon-lock"></span>
1111
${locked_text|n}.&nbsp;
1212
% if user and task.cur_lock.user== user:
13+
<a id="unlock" href="${request.route_path('task_unlock', task=task.id, project=task.project_id)}">
14+
${_('Unlock')}</a>
1315
<span id="task_countdown_text" rel="tooltip"
1416
data-original-title="${_('If you do not complete or release this task in time, it will be automatically unlocked')}"
1517
data-container="body"

osmtm/templates/task.state.ready.mako

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
% if user and task.cur_lock and task.cur_lock.lock and task.cur_lock.user == user:
33
<form action="${request.route_path('task_done', task=task.id, project=task.project_id)}" method="POST">
44
<%include file="task.comment.mako" />
5-
<a id="unlock"
6-
class="btn btn-default"
7-
href="${request.route_path('task_unlock', task=task.id, project=task.project_id)}">
8-
${_('Unlock')}
9-
</a>
105
<button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-ok icon-white"></i> ${_('Mark task as done')}</button>
116
</form>
127
% endif

0 commit comments

Comments
 (0)