Overview
Comment:Fix menu on mobile
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 6a2260f3de919c226f5048b40362f296821d1b7a610b98b1492d68e0c5630d85
User & Date: bohwaz on 2022-11-27 05:19:52
Other Links: branch diff | manifest | tags
Context
2022-11-27
05:20
Throw error if skeleton path is invalid check-in: a9d195932c user: bohwaz tags: dev
05:19
Fix menu on mobile check-in: 6a2260f3de user: bohwaz tags: dev
04:54
Return something for avatar check-in: 34dde25408 user: bohwaz tags: dev
Changes

Modified src/templates/_head.tpl from [d0117030a3] to [a60f7d8e18].

112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
			<ul>
				<li{if $current == 'me/services'}  class="current"{/if}><a href="{$admin_url}me/services.php">Mes activités &amp; cotisations</a></li>
			</ul>
		</li>
		{/if}

		{if !defined('Garradin\LOCAL_LOGIN') || !LOCAL_LOGIN}
			<li><h3><a href="{$admin_url}logout.php"><b data-icn="{icon html=false shape="logout"}"></b><span>Déconnexion</span></a></h3></li>
		{/if}

		{if $help_url}
		<li>
			<h3><a href="{$help_url}" target="_dialog"><b data-icn="{icon html=false shape="help"}"></b><span>Aide</span></a></h3>
		</li>
		{/if}

	{elseif !defined('Garradin\INSTALL_PROCESS')}
        {if $config.org_web || !$config.site_disabled}
		<li><a href="{if $config.org_web}{$config.org_web}{else}{$www_url}{/if}">&larr; Retour au site</a></li>
        {/if}
		<li><a href="{$admin_url}">Connexion</a>
			<ul>
				<li><a href="{$admin_url}password.php">Mot de passe perdu</a>
			</ul>
		</li>
	{/if}
	</ul>
	</nav>

	<h1>{$title}</h1>
</header>
{/if}

<main>







|




|





|

|
<
<
<
<









112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132




133
134
135
136
137
138
139
140
141
			<ul>
				<li{if $current == 'me/services'}  class="current"{/if}><a href="{$admin_url}me/services.php">Mes activités &amp; cotisations</a></li>
			</ul>
		</li>
		{/if}

		{if !defined('Garradin\LOCAL_LOGIN') || !LOCAL_LOGIN}
			<li><h3><a href="{$admin_url}logout.php">{icon shape="logout"}<b>Déconnexion</b></a></h3></li>
		{/if}

		{if $help_url}
		<li>
			<h3><a href="{$help_url}" target="_dialog">{icon shape="help"}<b>Aide</b></a></h3>
		</li>
		{/if}

	{elseif !defined('Garradin\INSTALL_PROCESS')}
        {if $config.org_web || !$config.site_disabled}
		<li><h3><a href="{if $config.org_web}{$config.org_web}{else}{$www_url}{/if}">{icon shape="left"}<b>Retour au site</b></a></h3></li>
        {/if}
		<li{if $current == 'login'} class="current"{/if}><h3><a href="{$admin_url}">{icon shape="login"}<b>Connexion</b></a></h3></li>




	{/if}
	</ul>
	</nav>

	<h1>{$title}</h1>
</header>
{/if}

<main>

Modified src/templates/docs/new_dir.tpl from [819d75fb90] to [870d7389f2].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{include file="_head.tpl" title="Créer un répertoire"}

{form_errors}

<form method="post" action="{$self_url}" data-focus="1">
	<fieldset>
		<legend>Créer un répertoire</legend>
		<dl>
			{input type="text" minlength="1" size="60" name="name" required="required" label="Nom du répertoire à créer"}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="create" label="Créer le répertoire" shape="plus" class="main"}
		</p>
	</fieldset>
</form>

{include file="_foot.tpl"}








|









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{include file="_head.tpl" title="Créer un répertoire"}

{form_errors}

<form method="post" action="{$self_url}" data-focus="1">
	<fieldset>
		<legend>Créer un répertoire</legend>
		<dl>
			{input type="text" minlength="1" name="name" required="required" label="Nom du répertoire à créer"}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="create" label="Créer le répertoire" shape="plus" class="main"}
		</p>
	</fieldset>
</form>

{include file="_foot.tpl"}

Modified src/templates/docs/new_file.tpl from [27032a84e6] to [6706e4964e].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{include file="_head.tpl" title="Créer un répertoire"}

{form_errors}

<form method="post" action="{$self_url}" data-focus="1">
	<fieldset>
		<legend>Créer un fichier texte</legend>
		<dl>
			{input type="text" minlength="1" size="60" name="name" required="required" label="Nom du fichier à créer"}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="create" label="Créer le fichier" shape="plus" class="main"}
		</p>
	</fieldset>
</form>

{include file="_foot.tpl"}








|









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{include file="_head.tpl" title="Créer un répertoire"}

{form_errors}

<form method="post" action="{$self_url}" data-focus="1">
	<fieldset>
		<legend>Créer un fichier texte</legend>
		<dl>
			{input type="text" minlength="1" name="name" required="required" label="Nom du fichier à créer"}
		</dl>
		<p class="submit">
			{csrf_field key=$csrf_key}
			{button type="submit" name="create" label="Créer le fichier" shape="plus" class="main"}
		</p>
	</fieldset>
</form>

{include file="_foot.tpl"}

Modified src/templates/login.tpl from [f6f5859e6b] to [dca65b0f56].

1
2
3
4
5
6
7
8
{include file="_head.tpl" title="Connexion"}

{form_errors}

{if $changed}
	<p class="block confirm">
		Votre mot de passe a bien été modifié.<br />
		Vous pouvez maintenant l'utiliser pour vous reconnecter.
|







1
2
3
4
5
6
7
8
{include file="_head.tpl" title="Connexion" current="login"}

{form_errors}

{if $changed}
	<p class="block confirm">
		Votre mot de passe a bien été modifié.<br />
		Vous pouvez maintenant l'utiliser pour vous reconnecter.

Modified src/templates/login_otp.tpl from [6f52c70b8a] to [ac9cba2f9f].

1
2
3
4
5
6
7
8
{include file="_head.tpl" title="Connexion — double facteur"}

{form_errors}

<form method="post" action="{$self_url}" data-focus="1">

	<fieldset>
		<legend>Authentification à double facteur</legend>
|







1
2
3
4
5
6
7
8
{include file="_head.tpl" title="Connexion — double facteur" current="login"}

{form_errors}

<form method="post" action="{$self_url}" data-focus="1">

	<fieldset>
		<legend>Authentification à double facteur</legend>

Modified src/www/admin/static/handheld.css from [324e06894d] to [059207926a].

81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110

111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
	align-items: center;
}

.header .menu > ul > li > h3 {
	display: inline;
}

.header .menu > ul > li > h3 a span {
	display: none;
}

.header .menu > ul > li > ul {
	display: none;
}

.header .menu h3 a {
	text-align: center;
	text-decoration: none !important;
}

.header .menu h3 b[data-icn]::before {
	float: none;
	display: block;
	position: relative;
	right: 0;
	margin: 0;
	padding: 10pt 0;
	line-height: 10pt;
	color: rgb(var(--gBgColor));
	font-size: 20pt;

}

.header .menu li.current_parent h3 a {
	background: rgb(var(--gBgColor));
}

.header .menu li.current h3 b[data-icn]::before,
.header .menu > ul > li.current_parent h3 b[data-icn]::before {
	background: rgb(var(--gSecondColor));
	color: rgb(var(--gBgColor));
	text-shadow: 0px 0px 5px rgb(var(--gTextColor)), 0px 0px 5px rgb(var(--gTextColor));
}

.header .menu > ul > li.current > ul, .header .menu > ul > li.current_parent > ul {
	display: flex;
	flex-wrap: wrap;







|












|









>


|
|


|
|
<







81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119

120
121
122
123
124
125
126
	align-items: center;
}

.header .menu > ul > li > h3 {
	display: inline;
}

.header .menu > ul > li > h3 a b {
	display: none;
}

.header .menu > ul > li > ul {
	display: none;
}

.header .menu h3 a {
	text-align: center;
	text-decoration: none !important;
}

.header .menu h3 span[data-icon]::before {
	float: none;
	display: block;
	position: relative;
	right: 0;
	margin: 0;
	padding: 10pt 0;
	line-height: 10pt;
	color: rgb(var(--gBgColor));
	font-size: 20pt;
	top: 0;
}

.header .menu li.current_parent h3 a, .header .menu li.current h3 a {
	background: rgb(var(--gSecondColor));
}

.header .menu li.current h3 span[data-icon]::before,
.header .menu > ul > li.current_parent h3 span[data-icon]::before {

	color: rgb(var(--gBgColor));
	text-shadow: 0px 0px 5px rgb(var(--gTextColor)), 0px 0px 5px rgb(var(--gTextColor));
}

.header .menu > ul > li.current > ul, .header .menu > ul > li.current_parent > ul {
	display: flex;
	flex-wrap: wrap;

Modified src/www/admin/web/css.php from [6239ccc079] to [f0cbb89696].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * This file is an alias to /content.css basically,
 * but it is required for when WWW_URL is on a different domain than ADMIN_URL
 */

namespace Garradin;

use Garradin\Web\Skeleton;

require_once __DIR__ . '/../_inc.php';

$s = new Skeleton('content.css');
$s->serve();













|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

/**
 * This file is an alias to /content.css basically,
 * but it is required for when WWW_URL is on a different domain than ADMIN_URL
 */

namespace Garradin;

use Garradin\Web\Skeleton;

require_once __DIR__ . '/../_inc.php';

$s = new Skeleton('web/content.css');
$s->serve('');