Spaces:
Running
Running
Commit ·
c0db503
1
Parent(s): b1b9446
Add home navigation button to internal pages
Browse files
application_neo4j/templates/expert.html
CHANGED
|
@@ -24,7 +24,10 @@
|
|
| 24 |
<span class="fw-bold">{{ t('site.nav_brand_model_expert') }}</span>
|
| 25 |
<small class="d-block text-muted">{{ t('site.nav_subtitle') }}</small>
|
| 26 |
</a>
|
| 27 |
-
<div class="d-flex gap-2">
|
|
|
|
|
|
|
|
|
|
| 28 |
<a href="{{ url_for('set_language_route', lang='fr') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'fr' else 'btn-outline-primary' }}">{{ t('lang.fr') }}</a>
|
| 29 |
<a href="{{ url_for('set_language_route', lang='en') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'en' else 'btn-outline-primary' }}">{{ t('lang.en') }}</a>
|
| 30 |
</div>
|
|
|
|
| 24 |
<span class="fw-bold">{{ t('site.nav_brand_model_expert') }}</span>
|
| 25 |
<small class="d-block text-muted">{{ t('site.nav_subtitle') }}</small>
|
| 26 |
</a>
|
| 27 |
+
<div class="d-flex align-items-center justify-content-end flex-wrap gap-2">
|
| 28 |
+
<a href="{{ url_for('home', lang=current_lang) }}" class="btn btn-sm btn-outline-secondary">
|
| 29 |
+
<i class="bi bi-house-door-fill me-1" aria-hidden="true"></i>{{ t('site.home_button') }}
|
| 30 |
+
</a>
|
| 31 |
<a href="{{ url_for('set_language_route', lang='fr') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'fr' else 'btn-outline-primary' }}">{{ t('lang.fr') }}</a>
|
| 32 |
<a href="{{ url_for('set_language_route', lang='en') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'en' else 'btn-outline-primary' }}">{{ t('lang.en') }}</a>
|
| 33 |
</div>
|
application_neo4j/templates/infos.html
CHANGED
|
@@ -1,18 +1,39 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html lang="
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
-
<
|
|
|
|
| 6 |
<style>
|
| 7 |
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
.pdf-container iframe { border: none; width: 100%; height: 100%; }
|
| 10 |
</style>
|
| 11 |
</head>
|
| 12 |
<body>
|
|
|
|
|
|
|
|
|
|
| 13 |
<div class="pdf-container">
|
| 14 |
<!-- Cette balise iframe va afficher votre PDF -->
|
| 15 |
<iframe src="{{ url_for('static', filename='pdf/plus_infos_interface.pdf') }}"></iframe>
|
| 16 |
</div>
|
| 17 |
</body>
|
| 18 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<html lang="{{ current_lang }}">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>{{ t('home.more_info') }}</title>
|
| 7 |
<style>
|
| 8 |
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
|
| 9 |
+
body { display: flex; flex-direction: column; font-family: sans-serif; }
|
| 10 |
+
.toolbar {
|
| 11 |
+
display: flex;
|
| 12 |
+
align-items: center;
|
| 13 |
+
padding: 0.75rem 1rem;
|
| 14 |
+
background: #f8f9fa;
|
| 15 |
+
border-bottom: 1px solid #dee2e6;
|
| 16 |
+
}
|
| 17 |
+
.home-button {
|
| 18 |
+
color: #495057;
|
| 19 |
+
border: 1px solid #6c757d;
|
| 20 |
+
border-radius: 0.25rem;
|
| 21 |
+
padding: 0.375rem 0.75rem;
|
| 22 |
+
text-decoration: none;
|
| 23 |
+
font-weight: 600;
|
| 24 |
+
}
|
| 25 |
+
.home-button:hover { color: #fff; background: #6c757d; }
|
| 26 |
+
.pdf-container { width: 100%; flex: 1; min-height: 0; }
|
| 27 |
.pdf-container iframe { border: none; width: 100%; height: 100%; }
|
| 28 |
</style>
|
| 29 |
</head>
|
| 30 |
<body>
|
| 31 |
+
<nav class="toolbar" aria-label="{{ t('site.home_button') }}">
|
| 32 |
+
<a class="home-button" href="{{ url_for('home', lang=current_lang) }}">⌂ {{ t('site.home_button') }}</a>
|
| 33 |
+
</nav>
|
| 34 |
<div class="pdf-container">
|
| 35 |
<!-- Cette balise iframe va afficher votre PDF -->
|
| 36 |
<iframe src="{{ url_for('static', filename='pdf/plus_infos_interface.pdf') }}"></iframe>
|
| 37 |
</div>
|
| 38 |
</body>
|
| 39 |
+
</html>
|
application_neo4j/templates/search.html
CHANGED
|
@@ -39,7 +39,10 @@
|
|
| 39 |
<span class="fw-bold">{{ t('site.nav_brand') }}</span>
|
| 40 |
<small class="d-block text-muted">{{ t('site.nav_subtitle_full') }}</small>
|
| 41 |
</a>
|
| 42 |
-
<div class="d-flex gap-2">
|
|
|
|
|
|
|
|
|
|
| 43 |
<a href="{{ url_for('set_language_route', lang='fr') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'fr' else 'btn-outline-primary' }}">{{ t('lang.fr') }}</a>
|
| 44 |
<a href="{{ url_for('set_language_route', lang='en') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'en' else 'btn-outline-primary' }}">{{ t('lang.en') }}</a>
|
| 45 |
</div>
|
|
|
|
| 39 |
<span class="fw-bold">{{ t('site.nav_brand') }}</span>
|
| 40 |
<small class="d-block text-muted">{{ t('site.nav_subtitle_full') }}</small>
|
| 41 |
</a>
|
| 42 |
+
<div class="d-flex align-items-center justify-content-end flex-wrap gap-2">
|
| 43 |
+
<a href="{{ url_for('home', lang=current_lang) }}" class="btn btn-sm btn-outline-secondary">
|
| 44 |
+
<i class="bi bi-house-door-fill me-1" aria-hidden="true"></i>{{ t('site.home_button') }}
|
| 45 |
+
</a>
|
| 46 |
<a href="{{ url_for('set_language_route', lang='fr') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'fr' else 'btn-outline-primary' }}">{{ t('lang.fr') }}</a>
|
| 47 |
<a href="{{ url_for('set_language_route', lang='en') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'en' else 'btn-outline-primary' }}">{{ t('lang.en') }}</a>
|
| 48 |
</div>
|
application_neo4j/templates/search_dataset.html
CHANGED
|
@@ -39,7 +39,10 @@
|
|
| 39 |
<span class="fw-bold">{{ t('site.nav_brand') }}</span>
|
| 40 |
<small class="d-block text-muted">{{ t('site.nav_subtitle') }}</small>
|
| 41 |
</a>
|
| 42 |
-
<div class="d-flex gap-2">
|
|
|
|
|
|
|
|
|
|
| 43 |
<a href="{{ url_for('set_language_route', lang='fr') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'fr' else 'btn-outline-primary' }}">{{ t('lang.fr') }}</a>
|
| 44 |
<a href="{{ url_for('set_language_route', lang='en') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'en' else 'btn-outline-primary' }}">{{ t('lang.en') }}</a>
|
| 45 |
</div>
|
|
|
|
| 39 |
<span class="fw-bold">{{ t('site.nav_brand') }}</span>
|
| 40 |
<small class="d-block text-muted">{{ t('site.nav_subtitle') }}</small>
|
| 41 |
</a>
|
| 42 |
+
<div class="d-flex align-items-center justify-content-end flex-wrap gap-2">
|
| 43 |
+
<a href="{{ url_for('home', lang=current_lang) }}" class="btn btn-sm btn-outline-secondary">
|
| 44 |
+
<i class="bi bi-house-door-fill me-1" aria-hidden="true"></i>{{ t('site.home_button') }}
|
| 45 |
+
</a>
|
| 46 |
<a href="{{ url_for('set_language_route', lang='fr') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'fr' else 'btn-outline-primary' }}">{{ t('lang.fr') }}</a>
|
| 47 |
<a href="{{ url_for('set_language_route', lang='en') }}" class="btn btn-sm {{ 'btn-primary' if current_lang == 'en' else 'btn-outline-primary' }}">{{ t('lang.en') }}</a>
|
| 48 |
</div>
|
application_neo4j/translations.py
CHANGED
|
@@ -45,6 +45,7 @@ TRANSLATIONS = {
|
|
| 45 |
"site.nav_brand_model_expert": "Généalogie des Modèles",
|
| 46 |
"site.nav_subtitle": "Exploration des relations entre modèles et datasets",
|
| 47 |
"site.nav_subtitle_full": "Exploration des relations entre modèles et datasets (base de données actualisée le {date})",
|
|
|
|
| 48 |
"site.footer": "Application de recherche et visualisation des relations entre modèles et jeux de données publiés sur la plateforme HuggingFace. © 2025",
|
| 49 |
"site.footer_expert": "Application de recherche et visualisation... © 2025",
|
| 50 |
|
|
@@ -282,6 +283,7 @@ TRANSLATIONS = {
|
|
| 282 |
"site.nav_brand_model_expert": "Model Genealogy",
|
| 283 |
"site.nav_subtitle": "Exploration of relations between models and datasets",
|
| 284 |
"site.nav_subtitle_full": "Exploration of relations between models and datasets (database updated on {date})",
|
|
|
|
| 285 |
"site.footer": "Application for searching and visualizing relations between models and datasets published on the HuggingFace platform. © 2025",
|
| 286 |
"site.footer_expert": "Application for searching and visualizing... © 2025",
|
| 287 |
|
|
|
|
| 45 |
"site.nav_brand_model_expert": "Généalogie des Modèles",
|
| 46 |
"site.nav_subtitle": "Exploration des relations entre modèles et datasets",
|
| 47 |
"site.nav_subtitle_full": "Exploration des relations entre modèles et datasets (base de données actualisée le {date})",
|
| 48 |
+
"site.home_button": "Accueil",
|
| 49 |
"site.footer": "Application de recherche et visualisation des relations entre modèles et jeux de données publiés sur la plateforme HuggingFace. © 2025",
|
| 50 |
"site.footer_expert": "Application de recherche et visualisation... © 2025",
|
| 51 |
|
|
|
|
| 283 |
"site.nav_brand_model_expert": "Model Genealogy",
|
| 284 |
"site.nav_subtitle": "Exploration of relations between models and datasets",
|
| 285 |
"site.nav_subtitle_full": "Exploration of relations between models and datasets (database updated on {date})",
|
| 286 |
+
"site.home_button": "Home",
|
| 287 |
"site.footer": "Application for searching and visualizing relations between models and datasets published on the HuggingFace platform. © 2025",
|
| 288 |
"site.footer_expert": "Application for searching and visualizing... © 2025",
|
| 289 |
|