Better tag history view on mobile

This commit is contained in:
Joseph Schorr 2017-03-09 19:26:03 -05:00
parent 92f858016d
commit 11a636021c
2 changed files with 31 additions and 7 deletions

View file

@ -12,11 +12,11 @@
</div>
<table class="co-table" ng-if="historyEntries.length">
<thead>
<thead class="hidden-xs">
<td class="icon-col"></td>
<td class="history-col">Tag Change</td>
<td class="datetime-col">Date/Time</td>
<td class="revert-col"><span ng-if="repository.can_write">Restore</span></td>
<td class="datetime-col hidden-sm hidden-xs">Date/Time</td>
<td class="revert-col hidden-sm hidden-xs"><span ng-if="repository.can_write">Restore</span></td>
</thead>
<tbody>
<tr style="height: 20px;"><td colspan="4"></td></tr>
@ -73,11 +73,12 @@
</span>
</span>
</div>
<div class="history-datetime-small">{{ entry.time | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }}</div>
</td>
<td ng-if="!entry.date_break" class="datetime-col">
<div class="history-datetime">{{ entry.time | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a' }}</div>
<td ng-if="!entry.date_break" class="datetime-col hidden-sm hidden-xs">
<div class="history-datetime">{{ entry.time | amDateFormat:'MMM Do YYYY, h:mm:ss a' }}</div>
</td>
<td class="revert-col">
<td class="revert-col hidden-xs hidden-sm">
<div ng-if="!entry.date_break && repository.can_write" class="history-revert">
<span ng-switch on="entry.action">
<a ng-switch-when="create" ng-click="askRestoreTag(entry, true)" ng-if="!isCurrent(entry)">