Skip to content

Commit

Permalink
Merge pull request #391 from pgiraud/unlock_link
Browse files Browse the repository at this point in the history
Move unlock button to more appropriate location
  • Loading branch information
Pierre GIRAUD committed Oct 17, 2014
2 parents fbe5e85 + 634eecf commit c4ebbdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions osmtm/templates/task.locked.mako
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ time_left = (task.cur_lock.date - (datetime.datetime.utcnow() - EXPIRATION_DELTA
<span class="glyphicon glyphicon-lock"></span>
${locked_text|n}.&nbsp;
% if user and task.cur_lock.user== user:
<a id="unlock" href="${request.route_path('task_unlock', task=task.id, project=task.project_id)}">
${_('Unlock')}</a>
<span id="task_countdown_text" rel="tooltip"
data-original-title="${_('If you do not complete or release this task in time, it will be automatically unlocked')}"
data-container="body"
Expand Down
5 changes: 0 additions & 5 deletions osmtm/templates/task.state.ready.mako
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
% if user and task.cur_lock and task.cur_lock.lock and task.cur_lock.user == user:
<form action="${request.route_path('task_done', task=task.id, project=task.project_id)}" method="POST">
<%include file="task.comment.mako" />
<a id="unlock"
class="btn btn-default"
href="${request.route_path('task_unlock', task=task.id, project=task.project_id)}">
${_('Unlock')}
</a>
<button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-ok icon-white"></i> ${_('Mark task as done')}</button>
</form>
% endif

0 comments on commit c4ebbdb

Please sign in to comment.