Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add external picto in sidebar #523

Merged
merged 5 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions atlas/configuration/config.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,11 @@ CUSTOM_LOGO_LINK='https://monadressecustom.org'
#############################

# Permet de lister les pages statiques souhaitées et de les afficher dynamiquement dans le menu sidebar
# Les pictos se limitent à font-awesome 5)
# Pour ajouter un lien vers une page externe, il faut renseigner l'attribut "url" ; pour une page interne, il faut renseigner l'attribut "template"
# Pour choisir un picto font-awesome 5, il faut renseigner l'attribut "picto" ; pour utiliser un picto stocké dans 'static/custom/images', il faut renseigner son nom de fichier dans l'attribut "customized_picto"
STATIC_PAGES = {
'presentation': {'title': "Présentation de l'atlas", 'picto': 'fa-question-circle', 'order': 0, 'template': 'static/custom/templates/presentation.html'}
'presentation': {'template': 'static/custom/templates/presentation.html', 'title': "Présentation de l'atlas", 'picto': 'fa-question-circle', 'order': 0},
'pne': {'url':'https://www.ecrins-parcnational.fr/', 'title': "Parc national des Ecrins", 'customized_picto': 'sample.external-website.png', 'picto_height': 16, 'order': 1}
}

###########################
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading