1 <div gridster="vm.config">
3 <li gridster-item="widget" ng-repeat="widget in vm.config.widgets">
7 ng-style="{'background-color': widget.background, 'color': widget.foreground }"
10 class="md-toolbar-tools height-40 no-margin"
12 layout-align="start center"
15 ng-href="{{widget.link ? widget.link : 'javascript:void(0)'}}"
16 ng-style="{'color': widget.foreground}"
20 {{ widget.title || 'No Title' }}
23 ng-if="!vm.config.preview"
24 class="draggable md-icon-button width-30 no-margin no-padding"
28 ><span translate="TOOLS.MOVE_WIDGET">Move</span></md-tooltip
31 md-font-icon="icon-cursor-move"
33 ng-style="{'color': widget.foreground}"
36 <md-menu ng-if="!vm.config.preview">
38 ng-click="$mdMenu.open($event)"
39 class="md-icon-button width-30 no-margin no-padding"
43 md-font-icon="icon-dots-vertical"
45 ng-style="{'color': widget.foreground}"
51 ng-click="vm.onEdit({widget: widget})"
52 translate="TOOLS.EDIT_WIDGET"
58 ng-click="vm.onDelete({widget: widget})"
59 translate="TOOLS.DELETE_WIDGET"
70 layout-align="center center"
72 ng-style="{'background-color': widget.background, 'color': widget.foreground}"
74 <div ng-switch="widget.type" layout-fill>
76 ng-switch-when="iframe|custom"
77 ng-switch-when-separator="|"
78 ng-src="{{vm.getTrustedURL(widget.attrs[0].value)}}"
80 style="border: 0px; width: 100%; height: 100%"
83 ng-class="'font-size-' + (widget.attrs[2].value || 12)"
84 ng-switch-when="clock"
85 digital-format="widget.attrs[0].value"
86 gmt-offset="widget.attrs[1].value"
90 <div ng-switch-default layout-fill>
91 <div ng-include="widget.templateUrl" layout-fill></div>