mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 16:04:32 -04:00
Working on time tracker
This commit is contained in:
parent
f7c8518cd0
commit
e1581cfc94
@ -205,7 +205,7 @@
|
|||||||
<!-- Task List -->
|
<!-- Task List -->
|
||||||
<div id="taskList" class="list-group col-sm-5 col-sm-pull-7" data-bind="foreach: filteredTasks" style="display:none">
|
<div id="taskList" class="list-group col-sm-5 col-sm-pull-7" data-bind="foreach: filteredTasks" style="display:none">
|
||||||
<a href="#" data-bind="click: $parent.selectTask, event: { mouseover: showActionButton, mouseout: hideActionButton }, css: listItemState"
|
<a href="#" data-bind="click: $parent.selectTask, event: { mouseover: showActionButton, mouseout: hideActionButton }, css: listItemState"
|
||||||
class="list-group-item" stylex="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;">
|
class="list-group-item">
|
||||||
<div class="pull-right" style="text-align:right;">
|
<div class="pull-right" style="text-align:right;">
|
||||||
<div data-bind="visible: actionButtonVisible()"
|
<div data-bind="visible: actionButtonVisible()"
|
||||||
data-bindx="style : { visibility : actionButtonVisible() ? '' : 'hidden' }">
|
data-bindx="style : { visibility : actionButtonVisible() ? '' : 'hidden' }">
|
||||||
@ -216,19 +216,21 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right" style="text-align:right">
|
<div class="pull-right" style="text-align:right; padding-left: 16px;">
|
||||||
<div data-bind="text: totalDuration, style: { fontWeight: isRunning() ? 'bold' : '' }"></div>
|
<div data-bind="text: totalDuration, style: { fontWeight: isRunning() ? 'bold' : '' }"></div>
|
||||||
<div data-bind="text: age, style: { fontWeight: isRunning() ? 'bold' : '' }" style="padding-top: 2px"></div>
|
<div data-bind="text: age, style: { fontWeight: isRunning() ? 'bold' : '' }" style="padding-top: 2px"></div>
|
||||||
</div>
|
</div>
|
||||||
<h4 class="list-group-item-heading">
|
<div style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;">
|
||||||
<span data-bind="text: description.truncated, style: { fontWeight: isRunning() ? 'bold' : '' }"></span>
|
<h4 class="list-group-item-heading">
|
||||||
</h4>
|
<span data-bind="text: description, style: { fontWeight: isRunning() ? 'bold' : '' }"></span>
|
||||||
<p class="list-group-item-text">
|
</h4>
|
||||||
<span class="link" data-bind="text: clientName, click: $parent.viewClient, clickBubble: false"></span>
|
<p class="list-group-item-text">
|
||||||
<span data-bind="visible: clientName && projectName"> | </span>
|
<span class="link" data-bind="text: clientName, click: $parent.viewClient, clickBubble: false"></span>
|
||||||
<span class="link" data-bind="text: projectName, click: $parent.viewProject, clickBubble: false"></span>
|
<span data-bind="visible: clientName && projectName"> | </span>
|
||||||
|
<span class="link" data-bind="text: projectName, click: $parent.viewProject, clickBubble: false"></span>
|
||||||
</p>
|
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@
|
|||||||
self.placeholder = ko.computed(function() {
|
self.placeholder = ko.computed(function() {
|
||||||
if (self.selectedTask()) {
|
if (self.selectedTask()) {
|
||||||
if (self.selectedTask().description()) {
|
if (self.selectedTask().description()) {
|
||||||
return self.selectedTask().description.truncated();
|
return self.selectedTask().description();
|
||||||
} else {
|
} else {
|
||||||
return "{{ trans('texts.no_description') }}"
|
return "{{ trans('texts.no_description') }}"
|
||||||
}
|
}
|
||||||
@ -632,13 +632,6 @@
|
|||||||
return self.isRunning() ? 'glyphicon glyphicon-stop' : 'glyphicon glyphicon-play';
|
return self.isRunning() ? 'glyphicon glyphicon-stop' : 'glyphicon glyphicon-play';
|
||||||
});
|
});
|
||||||
|
|
||||||
self.description.truncated = ko.computed(function() {
|
|
||||||
if (! self.description()) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
return truncate(self.description(), self.actionButtonVisible() ? 35 : 60);
|
|
||||||
});
|
|
||||||
|
|
||||||
self.setClient = function(client) {
|
self.setClient = function(client) {
|
||||||
self.client(client);
|
self.client(client);
|
||||||
self.client_id(client.public_id());
|
self.client_id(client.public_id());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user