Adding some "beauty" icons
@ -47,6 +47,11 @@ body {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.table-icon {
|
||||
width: 1.2em;
|
||||
padding-bottom: 3px;
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
BIN
server/src/uds/static/adm/img/icons/authenticators.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
server/src/uds/static/adm/img/icons/groups.png
Normal file
After Width: | Height: | Size: 343 B |
BIN
server/src/uds/static/adm/img/icons/logs.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
server/src/uds/static/adm/img/icons/maleta.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
server/src/uds/static/adm/img/icons/osmanagers.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
server/src/uds/static/adm/img/icons/providers.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
server/src/uds/static/adm/img/icons/services.png
Normal file
After Width: | Height: | Size: 805 B |
BIN
server/src/uds/static/adm/img/icons/users.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
@ -118,6 +118,7 @@ gui.authenticators.link = (event) ->
|
||||
return
|
||||
|
||||
tableId = gui.authenticators.table(
|
||||
icon: 'authenticators'
|
||||
container: "auths-placeholder"
|
||||
rowSelect: "single"
|
||||
buttons: [
|
||||
@ -145,6 +146,7 @@ gui.authenticators.link = (event) ->
|
||||
user = new GuiElement(api.authenticators.detail(id, "users", { permission: selected[0].permission }), "users")
|
||||
group = new GuiElement(api.authenticators.detail(id, "groups", { permission: selected[0].permission }), "groups")
|
||||
grpTable = group.table(
|
||||
icon: 'groups'
|
||||
container: "groups-placeholder"
|
||||
rowSelect: "single"
|
||||
buttons: [
|
||||
@ -263,6 +265,7 @@ gui.authenticators.link = (event) ->
|
||||
]
|
||||
usrButtons = ["new"].concat(usrButtons) if type.canCreateUsers # New is first button
|
||||
usrTable = user.table(
|
||||
icon: 'users'
|
||||
container: "users-placeholder"
|
||||
rowSelect: "single"
|
||||
onRowSelect: (uselected) ->
|
||||
|
@ -10,6 +10,7 @@ gui.osmanagers.link = (event) ->
|
||||
osmanagers: "osmanagers-placeholder"
|
||||
)
|
||||
gui.osmanagers.table
|
||||
icon: 'osmanagers'
|
||||
container: "osmanagers-placeholder"
|
||||
rowSelect: "single"
|
||||
buttons: [
|
||||
|
@ -54,6 +54,7 @@ gui.providers.link = (event) ->
|
||||
return
|
||||
|
||||
tableId = gui.providers.table(
|
||||
icon: 'providers'
|
||||
getPermission: (selected) ->
|
||||
gui.doLog "Selected", selected
|
||||
container: "providers-placeholder"
|
||||
@ -91,6 +92,7 @@ gui.providers.link = (event) ->
|
||||
services = new GuiElement(api.providers.detail(id, "services", { permission: selected[0].permission }), "services-" + selected[0].type)
|
||||
tmpLogTable = undefined
|
||||
servicesTable = services.table(
|
||||
icon: 'services'
|
||||
container: "services-placeholder"
|
||||
rowSelect: "single"
|
||||
onRowSelect: (sselected) ->
|
||||
|
@ -186,7 +186,9 @@
|
||||
)).appendTo "head"
|
||||
self.rest.overview (data) -> # Gets "overview" data for table (table contents, but resume form)
|
||||
tblParams.onData data if tblParams.onData
|
||||
table = gui.table(title, tableId)
|
||||
table = gui.table(title, tableId,
|
||||
icon: tblParams.icon
|
||||
)
|
||||
if not tblParams.container?
|
||||
gui.appendToWorkspace "<div class=\"row\"><div class=\"col-lg-12\">" + table.text + "</div></div>"
|
||||
else
|
||||
@ -541,7 +543,9 @@
|
||||
bSearchable: true
|
||||
}
|
||||
]
|
||||
table = gui.table(tblParams.title or gettext("Logs"), tableId)
|
||||
table = gui.table(tblParams.title or gettext("Logs"), tableId,
|
||||
icon: tblParams.icon or 'logs'
|
||||
)
|
||||
if not tblParams.container?
|
||||
gui.appendToWorkspace "<div class=\"row\"><div class=\"col-lg-12\">" + table.text + "</div></div>"
|
||||
else
|
||||
|
@ -70,6 +70,7 @@
|
||||
size: options.size or 12
|
||||
title: title
|
||||
table_id: table_id
|
||||
icon: api.config.img_url + 'icons/' + (options.icon or 'maleta') + '.png'
|
||||
)
|
||||
panelId: panelId
|
||||
refreshSelector: "#" + panelId + " span.fa-refresh"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{% verbatim %}
|
||||
<div class="widget" id ="{{ panelId }}"> <!-- TYPE PANEL -->
|
||||
<div class="widget-head"> <!-- HEAD PANEL -->
|
||||
<h4 class="heading"><i class="fa fa-briefcase"></i> {{ title }}</h4>
|
||||
<h4 class="heading"><img class="table-icon" src="{{ icon }}"/> {{ title }}</h4>
|
||||
<span class="pull-right">
|
||||
<span class="widget-icon fa fa-chevron-circle-up toggler"> </span>
|
||||
<span class="widget-icon fa fa-refresh"> </span>
|
||||
|
@ -19,11 +19,9 @@
|
||||
<li><a href="http://guac-dev.org/" target="_blank">Guacamole</a></li>
|
||||
<li><a href="https://github.com/django-compressor/django-compressor" target="_blank">Django compressor</a></li>
|
||||
<li><a href="http://getbootstrap.com/" target="_blank">Bootstrap</a></li>
|
||||
<li><a href="http://geersch.github.io/bootstrap-spinedit/" target="_blank">Bootstrap spinedit</a></li>
|
||||
<li><a href="http://www.bootstrap-switch.org/" target="_blank">Bootstrap switch</a></li>
|
||||
<li><a href="http://silviomoreto.github.io/bootstrap-select/" target="_blank">Bootstrap select</a></li>
|
||||
<li><a href="http://www.virtuosoft.eu/code/bootstrap-touchspin/" target="_blank">Bootstrap touchspin</a></li>
|
||||
<li><a href="http://jasny.github.io/bootstrap/" target="_blank">Jasny Bootstrap</a></li>
|
||||
<li><a href="http://fontawesome.io" target="_blank">Font Awesome by Dave Gandy</a></li>
|
||||
<li><a href="http://coffeescript.org/" target="_blank">Coffescript</a></li>
|
||||
<li><a href="http://sass-lang.com/" target="_blank">Sass</a>/<a href="http://compass-style.org/" target="_blank">Compass</a></li>
|
||||
@ -38,6 +36,7 @@
|
||||
<li><a href="https://github.com/eligrey/Blob.js/" target="_blank">Blob</a></li>
|
||||
<li><a href="https://github.com/eligrey/FileSaver.js/" target="_blank">Filesaver</a></li>
|
||||
<li><a href="http://kde-look.org/content/show.php/Crystal+Project?content=60475)" target="_blank">Crystal project icons</a></li>
|
||||
<li><a href="https://github.com/NitruxSA/flattr-icons" target="_blank">Flattr Icons</a></li>
|
||||
</ul>
|
||||
<p><small>* {% trans 'If you found that we missed to mention any component, please let us know' %}</small></p>
|
||||
<p class="text-center"><a href="{% url 'uds.web.views.index' %}" class="btn btn-lg btn-info"><i class="fa fa-home"></i> {% trans "Back" %}</a></p>
|
||||
|