Readme, table accessibility
This commit is contained in:
parent
bb0ce10c16
commit
fb2d18f879
|
@ -0,0 +1,22 @@
|
|||
# ĞMarché
|
||||
|
||||
Implémentation en Rust du site des ĞMarchés.
|
||||
|
||||
## Configuration
|
||||
|
||||
Aucun autre logiciel n'est requis. Un webserver (e.g. Apache, Nginx) ou autre (e.g. stunnel, ssl-proxy) peut être utilisé en reverse-proxy, par exemple pour utiliser HTTPS.
|
||||
|
||||
Initialisez la configuration :
|
||||
|
||||
gmarche init
|
||||
|
||||
Modifiez la configuration dans `~/.config/gmarche/config.json`. Vous pouvez aussi modifier les templates HTML et les fichiers statiques dans ce dossier.
|
||||
|
||||
Lancez le serveur :
|
||||
|
||||
gmarche start
|
||||
|
||||
L'option `-d <dir>` permet de changer le dossier de données/config (par exemple pour lancer plusieurs instances) :
|
||||
|
||||
gmarche -d mon/autre/dossier/ start|init
|
||||
|
|
@ -163,7 +163,9 @@ pub async fn start_server(
|
|||
.collect::<Vec<AdWithId>>(),
|
||||
);
|
||||
} else {
|
||||
return handle_index(&[ErrorTemplate {text: "Le mot de passe de l'annonce est incorrect."}]);
|
||||
return handle_index(&[ErrorTemplate {
|
||||
text: "Le mot de passe de l'annonce est incorrect.",
|
||||
}]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,10 @@ static STATIC_FILES: &'static [(&str, &[u8])] = &[
|
|||
("banner.jpg", include_bytes!("../static/banner.jpg")),
|
||||
("icon.png", include_bytes!("../static/icon.png")),
|
||||
("Karma-Bold.otf", include_bytes!("../static/Karma-Bold.otf")),
|
||||
("LinBiolinum_R.otf", include_bytes!("../static/LinBiolinum_R.otf")),
|
||||
(
|
||||
"LinBiolinum_R.otf",
|
||||
include_bytes!("../static/LinBiolinum_R.otf"),
|
||||
),
|
||||
];
|
||||
|
||||
pub fn init_static_files(dir: &Path) {
|
||||
|
|
|
@ -58,7 +58,7 @@ table {
|
|||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td {
|
||||
td, th {
|
||||
padding: 2px;
|
||||
border: 1px solid #666;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<form method="post">
|
||||
<table id="ads">
|
||||
<thead>
|
||||
<tr><td></td><td>Annonce</td><td>Quantité</td><td>Prix</td><td>Vendeur</td></tr>
|
||||
<tr><td></td><th>Annonce</th><th>Quantité</th><th>Prix</th><th>Vendeur</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each ads}}
|
||||
|
|
Loading…
Reference in New Issue