diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-03-30 08:41:21 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-03-30 08:41:21 -0400 |
| commit | 550f33c4ce0460be26a2332d5b6c6a4734a2c6ba (patch) | |
| tree | 1db3124a27b99c61c97d15841a4ab6a20ca03ced /www/templates | |
| parent | 8a3882d6640553f6c1d42c0e65469e2ee1982d6d (diff) | |
#912 #913 one way binding, rework date sorting by first converting to moments
Diffstat (limited to 'www/templates')
| -rw-r--r-- | www/templates/moment.html | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/www/templates/moment.html b/www/templates/moment.html index 47892264..9852b925 100644 --- a/www/templates/moment.html +++ b/www/templates/moment.html @@ -96,25 +96,29 @@ <div class="grid" id="mygrid"> + + <span ng-if="uiReady" class="grid-item grid-item-{{gridSize}}" ng-repeat="moment in moments"> + <figure ng-show="!moment.Event.hide"> + <figcaption ng-show="showIcons" class="normal-figheader"> {{::moment.Event.monitorName}}({{::moment.Event.Id}}) + <span style="float:right"> + <button class="button button-small button-icon icon {{moment.Event.icon}}" ng-click="toggleCollapse(moment.Event.MonitorId, moment.Event.Id)"></button>{{moment.Event.collapseCount}} </span> + </figcaption> + <img image-spinner-src="{{::constructFrame(moment)}}" img-spinner-w="{{::moment.Event.width}}" img-spinner-h="{{::moment.Event.height}}" + image-spinner-loader="lines" on-tap="playEvent(moment)" /> + + <div ng-show="showIcons" class="normal-subfigcaption"> + <button ng-class="moment.Event.pinned? 'button button-small button-icon icon ion-ios-flag assertive': 'button button-small button-icon icon ion-pin'" + ng-click="togglePin(moment.Event.Id)"></button> + + </div> + + <figcaption ng-show="showIcons" class="normal-figcaption"> {{::moment.Event.humanizeTime}} + <span style="float:right">{{::hourmin(moment.Event.StartTime)}} </span> + </figcaption> + </figure> + + </span> - <figure class="grid-item grid-item-{{gridSize}}" ng-repeat="moment in moments | onlyEnabledMoments"> - <figcaption ng-if="showIcons" class="normal-figheader"> {{::moment.Event.monitorName}} - <span style="float:right"> - <button class="button button-small button-icon icon {{moment.Event.icon}}" ng-click="toggleCollapse(moment.Event.MonitorId, moment.Event.Id)"></button>{{moment.Event.collapseCount}} </span> - </figcaption> - <img image-spinner-src="{{constructFrame(moment)}}" img-spinner-w="{{moment.Event.width}}" img-spinner-h="{{moment.Event.height}}" - image-spinner-loader="lines" on-tap="playEvent(moment)" /> - - <div ng-if="showIcons" class="normal-subfigcaption"> - <button ng-class="moment.Event.pinned? 'button button-small button-icon icon ion-ios-flag assertive': 'button button-small button-icon icon ion-pin'" - ng-click="togglePin(moment.Event.Id)"></button> - - </div> - - <figcaption ng-if="showIcons" class="normal-figcaption"> {{::moment.Event.humanizeTime}} - <span style="float:right">{{hourmin(moment.Event.StartTime)}} </span> - </figcaption> - </figure> </div> |
