More responsive, improve dashboard

This commit is contained in:
Cyril 2019-11-04 11:42:51 +01:00
parent e827be9910
commit 48501259ac
6 changed files with 20 additions and 11 deletions

View File

@ -10,7 +10,7 @@ body {
/* Add a simple line below display headings */
.display-4 {
font-size: 3rem;
font-size: 2.5rem;
border-bottom: 1px solid #CCC;
}

View File

@ -5,7 +5,7 @@
<a href="{{ path('users') }}" class="btn btn-link">« {{ "users.back"|trans }}</a>
<h1 class="display-4 d-flex justify-content-between">{{ "addressbooks.for"|trans({'who': principal.displayName}) }} <a href="{{ path('addressbook_create', {username: username}) }}" class="btn btn-success mb-auto mt-auto">+ {{ "addressbooks.new"|trans }}</a></h1>
<h1 class="display-4 d-flex font-weight-lighter justify-content-between">{{ "addressbooks.for"|trans({'who': principal.displayName}) }} <a href="{{ path('addressbook_create', {username: username}) }}" class="btn btn-sm btn-success mb-auto mt-auto">+ {{ "addressbooks.new"|trans }}</a></h1>
<div class="list-group mt-5">
{% for addressbook in addressbooks %}

View File

@ -5,7 +5,7 @@
<a href="{{ path('users') }}" class="btn btn-link">« {{ "users.back"|trans }}</a>
<h1 class="display-4 d-flex justify-content-between">{{ "calendars.for"|trans({'who': principal.displayName}) }} <a href="{{ path('calendar_create', {username: username}) }}" class="btn btn-success mb-auto mt-auto">+ {{ "calendars.new"|trans }}</a></h1>
<h1 class="display-4 font-weight-lighter d-flex justify-content-between">{{ "calendars.for"|trans({'who': principal.displayName}) }} <a href="{{ path('calendar_create', {username: username}) }}" class="btn btn-sm btn-success mb-auto mt-auto">+ {{ "calendars.new"|trans }}</a></h1>
<div class="list-group mt-5">
{% for calendar in calendars %}

View File

@ -7,14 +7,9 @@
<div class="row">
<div class="col-md">
<h3 class="mb-3 mt-4">{{ "dashboard.env"|trans }}</h3>
<h3 class="mb-3 mt-4">{{ "dashboard.capabilities"|trans }}</h3>
<ul class="list-group">
<li class="list-group-item list-group-item-primary">{{ "dashboard.version"|trans }} : <code>{{ version }}</code> (SabreDAV <code>{{ sabredav_version }}</code>)</li>
<li class="list-group-item list-group-item-secondary">{{ "dashboard.auth_realm"|trans }} : <code>{{ authRealm }}</code></li>
<li class="list-group-item list-group-item-secondary">{{ "dashboard.invite_from_address"|trans }} : <code>{{ invite_from_address|default('Not set') }}</code></li>
<li class="list-group-item list-group-item-secondary">{{ "dashboard.server_timezone"|trans }} : <code>{{ timezone }}</code> <a class="small ml-2" target="_blank" href="https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone">{{ "dashboard.how_to_change_it"|trans }}</a></li>
{% if calDAVEnabled %}
<li class="list-group-item d-flex justify-content-between align-items-center list-group-item-success">CalDAV
<span class="badge badge-success badge-pill">{{ "enabled"|trans }}</span></li>
@ -39,6 +34,16 @@
<span class="badge badge-danger badge-pill">{{ "disabled"|trans }}</span></li>
{% endif %}
</ul>
<h3 class="mb-3 mt-4">{{ "dashboard.env"|trans }}</h3>
<ul class="list-group">
<li class="list-group-item list-group-item-primary">{{ "dashboard.version"|trans }} : <code>{{ version }}</code> (SabreDAV <code>{{ sabredav_version }}</code>)</li>
<li class="list-group-item list-group-item-secondary">{{ "dashboard.auth_realm"|trans }} : <code>{{ authRealm }}</code></li>
<li class="list-group-item list-group-item-secondary">{{ "dashboard.invite_from_address"|trans }} : <code>{{ invite_from_address|default('Not set') }}</code></li>
<li class="list-group-item list-group-item-secondary">{{ "dashboard.server_timezone"|trans }} : <code>{{ timezone }}</code> <a class="small ml-2" target="_blank" href="https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone">{{ "dashboard.how_to_change_it"|trans }}</a></li>
</ul>
</div>
<div class="col-md">

View File

@ -3,7 +3,7 @@
{% block body %}
<h1 class="display-4 d-flex justify-content-between">{{ "title.users_and_resources"|trans }}<a href="{{ path('user_create') }}" class="btn btn-success mb-auto mt-auto">+ {{ "users.new"|trans }}</a></h1>
<h1 class="display-4 d-flex font-weight-lighter justify-content-between">{{ "title.users_and_resources"|trans }}<a href="{{ path('user_create') }}" class="btn btn-sm btn-success mb-auto mt-auto">+ {{ "users.new"|trans }}</a></h1>
<div class="list-group mt-5">
{% for principal in principals %}
@ -25,7 +25,7 @@
<a href="{{ path('address_books',{username: principal.username})}}" class="btn btn-outline-secondary flex-fill w-100"><span class="d-none d-sm-inline">📖&nbsp;</span>{{ "users.addressbooks"|trans }}</a>
<a href="{{ path('user_edit',{username: principal.username})}}" class="btn btn-outline-primary flex-fill flex-shrink-1"><span class="d-none d-sm-inline">✎&nbsp;</span>{{ "edit"|trans }}</a>
<a href="#" data-href="{{ path('user_delete',{username: principal.username})}}" class="btn btn-outline-danger flex-fill flex-shrink-1 delete-modal"><span class="d-none d-sm-inline">⚠&nbsp;</span>{{ "delete"|trans }}</a>
</div>
</div>
</div>
{% endfor %}
</div>

View File

@ -77,6 +77,10 @@
<source>dashboard.env</source>
<target>Configured environment</target>
</trans-unit>
<trans-unit id="2SVRWUo" resname="dashboard.capabilities">
<source>dashboard.capabilities</source>
<target>Capabilities</target>
</trans-unit>
<trans-unit id="0ssMhM8" resname="dashboard.objects">
<source>dashboard.objects</source>
<target>Objects</target>