beautify time tracking history

This commit is contained in:
Johannes Millan 2017-02-04 18:31:46 +01:00
parent ad4ba1db07
commit a253a8cdce
2 changed files with 21 additions and 2 deletions

View file

@ -9,9 +9,22 @@ time-tracking-history {
}
}
.task-summary-table {
width: 100%;
}
.month {
.md-icon-button {
width: 30px;
height: 30px;
line-height: 30px;
min-height: 30px;
padding: 0;
}
&-title {
margin-top: 30px;
margin-bottom: 8px;
}
&-time-spent {
font-size: 18px;

View file

@ -18,10 +18,16 @@
class="day">
<div class="day-title">
<strong>{{ worklogForDay.dateStr|amDateFormat:'DD-MM-YYYY, dddd' }}:</strong> {{ worklogForDay.timeSpent|duration }}
<md-button class="md-raised md-icon-button"
aria-label="export data"
ng-click="worklogForDay.isVisible=!worklogForDay.isVisible;">
<ng-md-icon icon="list"></ng-md-icon>
</md-button>
{{ worklogForDay.dateStr|amDateFormat:'DD-MM-YYYY, dddd' }}: <strong>{{ worklogForDay.timeSpent|duration }}</strong>
</div>
<table class="task-summary-table">
<table class="task-summary-table"
ng-if="worklogForDay.isVisible">
<tr ng-repeat="logEntry in worklogForDay.entries track by logEntry.task.id">
<td>{{ logEntry.task.title }}</td>
<td>{{ logEntry.task.timeSpentOnDay[worklogForDay.dateStr] |duration}}</td>