Make AppMgr table more rigid
This commit is contained in:
parent
b76a350d7b
commit
20a6d670ca
@ -202,8 +202,9 @@ class WSGIApp(object):
|
||||
else:
|
||||
status = 'Není nainstalována'
|
||||
actions = '<a href="#" class="app-install">Instalovat</a>'
|
||||
is_error = isinstance(item.data, BaseException)
|
||||
t = self.jinja_env.get_template('setup-apps-row.html')
|
||||
return t.render({'conf': self.conf, 'session': request.session, 'app': app, 'app_title': app_title, 'status': status, 'actions': actions})
|
||||
return t.render({'conf': self.conf, 'session': request.session, 'app': app, 'app_title': app_title, 'status': status, 'actions': actions, 'is_error': is_error})
|
||||
|
||||
def update_host_action(self, request):
|
||||
# Update domain and port, then restart nginx
|
||||
|
@ -155,6 +155,10 @@ header p,
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
#app-manager {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -15,5 +15,9 @@
|
||||
<td>{{ app_title }}</td>
|
||||
<td class="center"><input type="checkbox" class="app-visible"{% if not_installed %} disabled{% elif conf['apps'][app]['visible'] %} checked{% endif %}></td>
|
||||
<td class="center"><input type="checkbox" class="app-autostart"{% if not_installed %} disabled{% elif is_service_autostarted(app) %} checked{% endif %}></td>
|
||||
{% if is_error %}
|
||||
<td colspan="2">{{ status|safe }}</td>
|
||||
{% else %}
|
||||
<td>{{ status|safe }}</td>
|
||||
<td>{{ actions|safe }}</td>
|
||||
{% endif %}
|
||||
|
@ -7,10 +7,10 @@
|
||||
<table id="app-manager">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Aplikace</td>
|
||||
<td>Zobrazena</td>
|
||||
<td>Autostart</td>
|
||||
<td>Stav</td>
|
||||
<td style="width:190px">Aplikace</td>
|
||||
<td style="width:70px">Zobrazena</td>
|
||||
<td style="width:70px">Autostart</td>
|
||||
<td style="width:190px">Stav</td>
|
||||
<td>Akce</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
Loading…
Reference in New Issue
Block a user