Skip to content

Commit

Permalink
feat: display the version number in the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Oct 6, 2023
1 parent 1b35308 commit 581f693
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ docker compose -f docker-compose.yml -f docker-compose.prod.yml up

Vous pouvez suivre la documentation dans [./CONTRIBUTING.md](./CONTRIBUTING.md) pour installer localement le projet et le tester.

## Publier une nouvelle version

- Incrémenter le numéro de version dans la variable `__version__` de `web/flask/__init__.py`
- Commiter ce changement.
- Mettre un tag sur le commit, portant le numéro de la version, avec `git tag vX.Y.Z`
- Pousser le commit ET le tag `git push origin main --tags`
- Se rendre sur [la page github de publication de version](https://github.com/numerique-gouv/b3desk/releases/new)
- Choisir le tag récemment ajouté, remplir les informations, publier la version.

## Licence

Ce logiciel est mis à disposition sous la licence EUPL : https://commission.europa.eu/content/european-union-public-licence_fr
3 changes: 3 additions & 0 deletions web/flaskr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
CRITICAL_VARS = ["OIDC_ISSUER", "OIDC_CLIENT_SECRET", "BIGBLUEBUTTON_SECRET"]
LANGUAGES = ["en", "fr"]

__version__ = "1.0.2"


def setup_babel(app):
babel = Babel(app)
Expand Down Expand Up @@ -59,6 +61,7 @@ def global_processor():
"beta": app.config["BETA"],
"documentation_link": app.config["DOCUMENTATION_LINK"],
"LANGUAGES": LANGUAGES,
"version": __version__,
**app.config["WORDINGS"],
}

Expand Down
1 change: 1 addition & 0 deletions web/flaskr/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<p class="fr-footer__content-desc">
{% trans %}Le code source est ouvert et les contributions sont bienvenues.{% endtrans %}
<a title="{% trans %}Voir le code source - nouvelle fenêtre{% endtrans %}" href="https://github.com/numerique-gouv/b3desk" target="_blank" rel="noopener">{% trans %}Voir le code source{% endtrans %}</a>
{% if version %}v{{ version }}{% endif %}
</p>
<ul class="fr-footer__content-list">
<li class="fr-footer__content-item">
Expand Down

0 comments on commit 581f693

Please sign in to comment.