Cleanup code for control-panes.

This commit is contained in:
Gunther Brunner
2015-08-31 17:04:46 +09:00
parent bd493b210b
commit 4db67dd703
26 changed files with 4 additions and 356 deletions

View File

@@ -35,31 +35,8 @@
input(select-on-click, ng-model='newCookie.domain', placeholder='http')
td(width='10%', data-title="'Path'|translate")
input(select-on-click, ng-model='newCookie.path', placeholder='/')
//td(width='5%', data-title="'Expires'")
span(contenteditable="true") {{ newCookie.expiry }}
td(width='5%', data-title="'Secure'|translate")
input(type='checkbox', indeterminate='true', ng-model='newCookie.secure')
td(title="'Add'|translate")
button.btn.btn-default(ng-click='addCookie()')
i.fa.fa-plus-circle
//| Add
//table.table.table-hover.table-condensed(ng-table='tableParams')
tbody(ng-repeat='group in $groups')
tr.ng-table-group
td(colspan='{{$columns.length}}').unselectable.pointer
a(ng-click='group.$hideRows = !group.$hideRows')
img(ng-src='{{ group.data[0].deviceImage }}').device-icon-smallest
//i.fa(ng-class='{"fa-chevron-right": group.$hideRows, "fa-chevron-down": !group.$hideRows}')
strong {{group.value}}
tr(ng-hide='group.$hideRows', ng-repeat='cookie in group.data')
td(sortable='name', data-title="'Name'|translate")
strong {{cookie.name}}
td(width='50%', sortable='value', data-title="'Value'|translate")
span {{cookie.value}}
td(width='15%', sortable='domain', data-title="'Domain'|translate")
span {{cookie.domain}}
td(idth='10%', sortable='path', data-title="'Path'|translate")
span {{cookie.path}}
td(idth='5%', sortable='secure', data-title="'Secure'|translate")
span {{cookie.secure ? 'Yes' : 'No'}}