Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jacobsen <andreasjacobsen93@gmail.com>2017-06-29 09:54:10 +0300
committerraimund-schluessler <raimund.schluessler+github@mailbox.org>2017-06-29 09:54:10 +0300
commita4cf0f79a914d1c41d2eeb791565ecfb424c596e (patch)
tree441b702ec376bab75d397b6a381ebdf1c96e8fec /templates
parent6aeee8c355f90977fa093d96707b10a986f5c90a (diff)
Move percentdone bar to bottom of task (#87)
* Move percentdone bar to bottom of task * Update style.css * Removed round corners * Update style.css * Update part.taskbody.php * Update style.css * Update style.css * Update style.css
Diffstat (limited to 'templates')
-rw-r--r--templates/part.taskbody.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/part.taskbody.php b/templates/part.taskbody.php
index f37590ec..2bd616a6 100644
--- a/templates/part.taskbody.php
+++ b/templates/part.taskbody.php
@@ -2,16 +2,22 @@
type="task"
taskID="{{ task.uri }}"
ng-class="{active: route.taskID==task.uri, subtasks: hasSubtasks(task), completedsubtasks: hasCompletedSubtasks(task), subtaskshidden: task.hideSubtasks, attachment: task.note!=''}">
- <div class="percentdone" style="width:{{ task.complete }}%; background-color:{{ task.calendar.color }};"></div>
+
+ <div class="percentbar" ng-if="task.complete > 0 ">
+ <div class="percentdone" style="width:{{ task.complete }}%; background-color:{{ task.calendar.color }};"></div>
+ </div>
+
<a class="task-checkbox handler" name="toggleCompleted" ng-click="toggleCompleted(task)">
<span class="icon task-checkbox" ng-class="{'task-checked': task.completed}"></span>
</a>
<a class="icon task-separator"></a>
<a class="task-star handler" ng-click="toggleStarred(task)">
- <span class="icon large task-star faded" ng-class="{'high':task.priority>5,'medium':task.priority==5,'low':task.priority > 0 && task.priority < 5}"></span>
+ <span class="icon large task-star faded" ng-class="{'icon_margin':task.complete > 0,
+ 'high':task.priority > 5, 'medium':task.priority == 5, 'low':task.priority > 0 && task.priority < 5}">
+ </span>
</a>
<a class="task-addsubtask handler add-subtask" ng-show="task.calendar.writable" ng-click="showSubtaskInput(task.uid)" oc-click-focus="{selector: '.add-subtask input', timeout: 0}">
- <span class="icon large addsubtask" title="<?php p($l->t('add a subtask to')); ?> {{ task.summary }}"></span>
+ <span ng-class="{'icon_margin' : task.complete > 0}" class="icon large addsubtask" title="<?php p($l->t('add a subtask to')); ?> {{ task.summary }}"></span>
</a>
<a class="handler" ng-click="toggleSubtasks(task)">
<span class="icon large subtasks"></span>