Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Validata
validata-ui
Commits
7cddb144
Commit
7cddb144
authored
Oct 04, 2018
by
Pierre Dittgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Templates refactoring + sticky footer
parent
4baa5289
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
5 deletions
+32
-5
validata_ui_next/static/css/sticky-footer-navbar.css
validata_ui_next/static/css/sticky-footer-navbar.css
+18
-0
validata_ui_next/templates/about.html
validata_ui_next/templates/about.html
+1
-1
validata_ui_next/templates/base_template.html
validata_ui_next/templates/base_template.html
+9
-0
validata_ui_next/templates/home.html
validata_ui_next/templates/home.html
+1
-1
validata_ui_next/templates/validation_form.html
validata_ui_next/templates/validation_form.html
+1
-1
validata_ui_next/templates/validation_report.html
validata_ui_next/templates/validation_report.html
+1
-1
validata_ui_next/views.py
validata_ui_next/views.py
+1
-1
No files found.
validata_ui_next/static/css/sticky-footer-navbar.css
0 → 100644
View file @
7cddb144
/* http://getbootstrap.com/docs/4.1/examples/sticky-footer-navbar/ */
html
{
position
:
relative
;
min-height
:
100%
;
}
body
{
/* Margin bottom by footer height */
margin-bottom
:
60px
;
}
.footer
{
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
/* Set the fixed height of the footer here */
height
:
60px
;
line-height
:
60px
;
/* Vertically center the text there */
background-color
:
#f5f5f5
;
}
\ No newline at end of file
validata_ui_next/templates/about.html
View file @
7cddb144
{% extends "base.html" %}
{% extends "base
_template
.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
...
...
validata_ui_next/templates/base.html
→
validata_ui_next/templates/base
_template
.html
View file @
7cddb144
...
...
@@ -9,6 +9,7 @@
<link
rel=
"shortcut icon"
href=
"{{ url_for('static', filename='img/favicon.ico')}}"
type=
"image/x-icon"
>
<!-- Bootstrap CSS -->
<link
rel=
"stylesheet"
href=
"{{url_for('static', filename='css/bootstrap.min.css')}}"
crossorigin=
"anonymous"
>
<link
rel=
"stylesheet"
href=
"{{url_for('static', filename='css/sticky-footer-navbar.css')}}"
crossorigin=
"anonymous"
>
<!-- Validata.css -->
<link
ref=
"stylesheet"
href=
"{{url_for('static', filename='css/validata.css')}}"
/>
...
...
@@ -26,6 +27,7 @@
<ul
class=
"navbar-nav mr-auto"
>
</ul>
<ul
class=
"navbar-nav"
>
{#
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
href=
"#"
id=
"navbarDropdownMenuLink"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
...
...
@@ -35,6 +37,7 @@
<a
class=
"dropdown-item"
href=
"{{ url_for('about') }}"
>
À propos
</a>
</div>
</li>
#}
</ul>
</div>
</nav>
...
...
@@ -72,6 +75,12 @@
<script
src=
"{{url_for('static', filename='js/popper.min.js')}}"
></script>
<script
src=
"{{url_for('static', filename='js/bootstrap.min.js')}}"
></script>
{% block footer %}{% endblock %}
<footer
class=
"footer"
>
<div
class=
"container"
>
<span
class=
"muted"
>
Une réalisation de
<a
href=
"http://www.opendatafrance.net/"
>
Opendata France
</a>
avec
l'aide de
<a
href=
"https://jailbreak.paris"
>
JailBreak
</a></span>
</div>
</footer>
</body>
</html>
\ No newline at end of file
validata_ui_next/templates/home.html
View file @
7cddb144
{% extends "base.html" %}
{% extends "base
_template
.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
...
...
validata_ui_next/templates/validator.html
→
validata_ui_next/templates/validat
ion_f
or
m
.html
View file @
7cddb144
{% extends "base.html" %}
{% extends "base
_template
.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
...
...
validata_ui_next/templates/validation_report.html
View file @
7cddb144
{% extends "base.html" %}
{% extends "base
_template
.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
...
...
validata_ui_next/views.py
View file @
7cddb144
...
...
@@ -255,7 +255,7 @@ def scdl_validator(val_code):
# First form display
if
input_param
is
None
or
input_param
not
in
(
'url'
,
'example'
):
return
render_template
(
'validator.html'
,
title
=
val_info
[
'title'
],
return
render_template
(
'validat
ion_f
or
m
.html'
,
title
=
val_info
[
'title'
],
val_info
=
val_info
,
breadcrumbs
=
[{
'url'
:
url_for
(
'home'
),
'title'
:
'Accueil'
},
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment