lib/redis-browser/templates/index.slim in redis-browser-0.5.0 vs lib/redis-browser/templates/index.slim in redis-browser-0.5.1
- old
+ new
@@ -5,24 +5,26 @@
script type="text/javascript" src="#{root_path}js/angular.min.js"
script type="text/javascript" src="#{root_path}js/ui-bootstrap-tpls-0.2.0.min.js"
script type="text/javascript" src="#{root_path}js/localStorageModule.js"
script type="text/javascript" src="#{root_path}js/app.js"
+ script type="text/javascript" src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"
link rel="stylesheet" href="#{root_path}css/bootstrap.min.css"
link rel="stylesheet" href="#{root_path}css/app.css"
+ link rel="stylesheet" href="#{root_path}css/github.css"
script type="text/javascript"
== js_env
script type="text/ng-template" id="nav-tree-item.html"
span ng-show="key.count > 1"
button.btn.tree-toggle ng-hide="key.open" ng-click="keyOpen(key)" +
button.btn.tree-toggle ng-show="key.open" ng-click="keyClose(key)" -
span ng-show="key.count == 1" -
- a href="#" ng-click="show(key)"
+ a href="\#{{key.full}}" ng-click="show(key)"
' {{ key.name }}
small ng-show="key.count > 1"
| ({{ key.count }})
ul.tree ng-show="key.open"
@@ -80,23 +82,22 @@
' {{ key.full }}
small
' {{ key.type }}
div ng-switch="key.type"
- pre ng-switch-when="string"
- ' {{ key.value }}
+ pre ng-switch-when="string" prettyprint="key.value"
pre ng-switch-when="json"
' {{ key.value | json }}
div ng-switch-when="set"
table.table.table-striped.table-bordered.value-list
tr ng-repeat="e in key.values"
td ng-switch="e.type"
pre ng-switch-when="json"
' {{ e.value | json }}
- pre ng-switch-when="string"
+ pre ng-switch-default="" prettyprint="e.value"
' {{ e.value }}
div ng-switch-when="zset"
table.table.table-striped.table-bordered.value-list
tr
@@ -104,12 +105,11 @@
th.value-zset-score Score
tr ng-repeat="e in key.values"
td ng-switch="e.type"
pre ng-switch-when="json"
' {{ e.value | json }}
- pre ng-switch-when="string"
- ' {{ e.value }}
+ pre ng-switch-default="" prettyprint="e.value"
td
' {{ e.score }}
div ng-switch-when="hash"
@@ -131,12 +131,11 @@
td
' {{ k }}
td ng-switch="e.type"
pre ng-switch-when="json"
' {{ e.value | json }}
- pre ng-switch-when="string"
- ' {{ e.value }}
+ pre ng-switch-default="" prettyprint="e.value"
div ng-switch-when="list"
.alert
' Showing
strong
@@ -172,12 +171,11 @@
td
' {{ e.index }}
td ng-switch="e.type"
pre ng-switch-when="json"
' {{ e.value | json }}
- pre ng-switch-when="string"
- ' {{ e.value }}
+ pre ng-switch-default="" prettyprint="e.value"
pagination boundary-links="true" num-pages="list.pages" current-page="list.current" max-size="list.max"
span.alert.alert-success ng-switch-when="empty" Select something on the left
@@ -187,19 +185,16 @@
th Keys
th.keys-search
input.input-medium.search-query type="text" ng-model="query" placeholder="Search"
tr ng-repeat="e in key.values | filter:query"
td
- a href="#" ng-click="show(e)"
+ a href="\#{{e.full}}" ng-click="show(e)"
' {{ e.name }}
td
button.btn.btn-danger ng-click="deleteKey(e)" Delete
tr
td
td
button.btn.btn-danger ng-click="deleteAll()" Delete ALL
/ span.alert.alert-danger Key not found
-
-
-