mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
TFE page: remove underlines from all links, lowercase keywords/languages/formats, inclusive writing, prevent keyword mid-word breaks, editable restriction messages in admin
This commit is contained in:
@@ -147,6 +147,18 @@ if ($section === 'formulaire_restrictions') {
|
||||
PeerTubeService::updateSettings($db, $data);
|
||||
$logger->logPeerTubeUpdate($enabled === '1');
|
||||
App::flash('success', 'Paramètres PeerTube mis à jour.');
|
||||
} elseif ($section === 'tfe_messages') {
|
||||
if (isset($_POST['tfe_restricted_message'])) {
|
||||
$db->setSetting('tfe_restricted_message', $_POST['tfe_restricted_message']);
|
||||
}
|
||||
if (isset($_POST['tfe_forbidden_message'])) {
|
||||
$db->setSetting('tfe_forbidden_message', $_POST['tfe_forbidden_message']);
|
||||
}
|
||||
if ($isHxRequest) {
|
||||
hxToastSuccess('Messages TFE mis à jour.');
|
||||
} else {
|
||||
App::flash('success', "Messages TFE mis à jour.");
|
||||
}
|
||||
} else {
|
||||
App::flash('error', "Section inconnue.");
|
||||
}
|
||||
@@ -166,6 +178,8 @@ if (in_array($section, ['formulaire_acces', 'objet_types'], true)) {
|
||||
$redirect = '/admin/contenus.php';
|
||||
} elseif ($section === 'formulaire_restrictions') {
|
||||
$redirect = '/admin/acces.php';
|
||||
} elseif ($section === 'tfe_messages') {
|
||||
$redirect = '/admin/acces.php';
|
||||
}
|
||||
header('Location: ' . $redirect);
|
||||
exit;
|
||||
|
||||
@@ -53,27 +53,32 @@ article dl {
|
||||
|
||||
/* Each dt/dd pair grouped in a <div> inside <dl> */
|
||||
article dl > div {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: var(--space-3xs);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
article dl dt {
|
||||
color: var(--text-primary);
|
||||
font-weight: 400;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
article dl dd {
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
word-break: normal;
|
||||
overflow-wrap: normal;
|
||||
}
|
||||
|
||||
article dl dd a {
|
||||
color: inherit;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
article dl dd a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Note field: align dt/dd to top, value in italics */
|
||||
@@ -169,13 +174,13 @@ aside figcaption {
|
||||
font-size: var(--step--1);
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
text-decoration: none;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.tfe-download-link:hover {
|
||||
color: var(--accent-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tfe-download-icon {
|
||||
@@ -192,8 +197,11 @@ aside figcaption {
|
||||
|
||||
.tfe-pdf-fallback a {
|
||||
color: var(--text-primary);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tfe-pdf-fallback a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* "Not available" and "no files" notices */
|
||||
|
||||
Reference in New Issue
Block a user