Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nicolas Ballet
site-conv
Commits
669180f7
Commit
669180f7
authored
Jul 06, 2016
by
Sli
Browse files
On commence à avoir un template de base
parent
93159b62
Changes
2
Hide whitespace changes
Inline
Side-by-side
blog/models.py
View file @
669180f7
...
...
@@ -42,7 +42,6 @@ class Page(OrderedModel):
ordering
=
(
'order'
,)
def
__str__
(
self
):
self
.
bottom
()
return
self
.
title
def
save
(
self
,
*
args
,
**
kwargs
):
...
...
templates/BaseBlog.html
View file @
669180f7
<!DOCTYPE html>
<html
lang=
"fr"
>
<head>
<meta
charset=
"utf-8"
>
<title>
Gala 2016
</title>
</head>
<body>
{% include "blog/nav.html" %}
<head>
<meta
charset=
"utf-8"
>
<title>
Gala 2016
</title>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity=
"sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin=
"anonymous"
>
{% block body %}
{% endblock %}
<script
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity=
"sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin=
"anonymous"
></script>
</head>
<body>
</body>
<div
class=
"row"
>
{# Bannière #}
<div
class=
"col-md-offset-2 col-md-8"
>
<img
class=
"img-responsive"
src=
"http://placehold.it/2000x300"
>
</div>
{# Décompte #}
<div
class=
"col-md-2"
>
Décompte
</div>
</div>
<br>
<div
class=
"row"
>
{# Liens sociaux #}
<div
class=
"col-md-2"
>
Facebook, youtube et tout le tintouin
</div>
{# contenu #}
<div
class=
"col-md-8"
>
<div
class=
"row-fluid"
>
{% include "blog/nav.html" %}
</div>
<div
class=
"row-fluid"
>
{% block body %}
{% endblock %}
</div>
<div
class=
"row-fluid"
>
Crédits
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
Write
Preview
Supports
Markdown
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