views/infra/inspect.slim in engine2-1.0.8 vs views/infra/inspect.slim in engine2-1.0.9
- old
+ new
@@ -1,16 +1,16 @@
-e2-action action="'inspect'"
+e2-action action="'inspect_' + action.globals().application"
div bs-tabs=""
br
div title="API" bs-pane=""
.row
.col-lg-5
.panel.panel-default
.panel-body
script type="text/ng-template" id="nodes_renderer.html"
div data-nodrag="" ng-init="stack = stack.concat([$index])"
- span.glyphicon.glyphicon-cog ng-if="node.terminal"
+ span.glyphicon ng-class="{'glyphicon-cog': node.access, 'glyphicon-exclamation-sign': !node.access}" ng-if="node.terminal"
a ng-click="action.open(stack, node, collapsed, true); toggle(this)" ng-if="!node.terminal"
span.glyphicon ng-class="{'glyphicon-play-circle': collapsed && node.access, 'glyphicon-download': !collapsed, 'glyphicon-exclamation-sign': collapsed && !node.access}"
span< ng-bind="node.name + ' ' + node.number" ng-click="action.open(stack, node, collapsed, false)" style="cursor: pointer; {{action.number == node.number && 'font-weight: bold;'}}"
ol ui-tree-nodes="" ng-model="node.actions" ng-class="{hidden: collapsed}"
li ng-repeat="node in node.actions" ui-tree-node="" data-collapsed="true" ng-include="'nodes_renderer.html'"
@@ -22,17 +22,17 @@
.panel.panel-default
.panel-body
div bs-tabs="" bs-active-pane="actionTab" ng-init="actionTab = 0"
div title="Action" bs-pane=""
br
- pre ng-bind="action.action_json | json"
+ pre ng-bind="action.action_json | yaml"
div title="Meta" bs-pane=""
br
- pre ng-bind="action.meta_json | json"
+ pre ng-bind="action.meta_json | yaml"
div title="State" bs-pane=""
br
- pre ng-bind="action.action_state | json"
+ pre ng-bind="action.action_state | yaml"
div title="Model" bs-pane=""
.row
.col-lg-4
.panel.panel-default
@@ -56,17 +56,17 @@
.panel.panel-default
.panel-body
div bs-tabs="" bs-active-pane="modelTab" ng-init="modelTab = 0"
div title="Model" bs-pane=""
br
- pre ng-bind="action.model.info | json"
+ pre ng-bind="action.model.info | yaml"
div title="Schema" bs-pane=""
br
- pre ng-bind="action.model.schema | json"
+ pre ng-bind="action.model.schema | yaml"
div title="Type info" bs-pane=""
br
- pre ng-bind="action.model.type_info | json"
+ pre ng-bind="action.model.type_info | yaml"
div title="Associations" bs-pane="" ng-if="action.model && action.has_assoc(action.model)"
br
.row
.col-lg-6
select.btn.btn-default [
@@ -76,38 +76,41 @@
]
option value="" Association
br
.row
.col-lg-12
- pre ng-bind="action.activeAssoc | json"
+ pre ng-bind="action.activeAssoc | yaml"
div title="Globals" bs-pane=""
.panel.panel-default
.panel-body
- pre ng-bind="action.globals() | json"
+ pre ng-bind="action.globals() | yaml"
div title="Environment" bs-pane=""
.panel.panel-default
.panel-body
- pre ng-bind="action.environment | json"
+ pre ng-bind="action.environment | yaml"
div title="Local storage" bs-pane=""
.panel.panel-default
.panel-body
- pre ng-bind="action.local_storage | json"
- pre ng-bind="action.local_storage.keys() | json"
+ pre ng-bind="action.local_storage | yaml"
+ pre ng-bind="action.local_storage.keys() | yaml"
a.btn.btn-default ng-click="action.local_storage.clearAll()"
| Clear
div title="Diagnostics" bs-pane=""
.panel.panel-default
.panel-body
- a.btn.btn-default ng-click="action.globals().notification('Name', 'Body', undefined, 2000)"
- | Push
+ .btn-group
+ a.btn.btn-default ng-click="action.globals().notification('Name', 'Body', undefined, 2000)"
+ | Push
+ a.btn.btn-default ng-click="action.globals().toastr().success('Name', 'Body')"
+ | Toastr
hr
a.btn.btn-default> ng-click="action.web_socket().send({number: action.number})"
| Websocket
| {{action.number}}
br
| Event
- pre ng-bind="action.event | json"
+ pre ng-bind="action.event | yaml"
| Socket
pre ng-bind="action.web_socket() | json"