added Chappatte cartoon on homepage
This commit is contained in:
@@ -5,7 +5,10 @@ body {
|
||||
font: 200 16px/1.8 Georgia, serif;
|
||||
color: rgb(90, 89, 89);
|
||||
}
|
||||
h3, h4 {
|
||||
.container h2, h3{
|
||||
color: #df4937 !important;
|
||||
}
|
||||
h5 {
|
||||
margin: 10px 0 30px 0;
|
||||
letter-spacing: 10px;
|
||||
font-size: 20px;
|
||||
|
||||
@@ -2,8 +2,19 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div style="padding-left: 140px; padding-right: 140px;">
|
||||
<h3 align="center">{{ cartoon_title }}</h2>
|
||||
<p class="text-center">
|
||||
<img src="{{ cartoon_url }}"
|
||||
class="img_responsive" style="display:inline; width:100%" />
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
{% if request.authenticated_userid %}
|
||||
<p><a href="{{ request.route_url('blog_edit', id='0') }}">[ Nouveau ]</a>
|
||||
<p>
|
||||
<a href="{{ request.route_url('blog_edit', id='0') }}">[ Nouveau ]</a>
|
||||
<a href="{{ request.route_url('blog_edit', id='95') }}">[ Sélectionner un autre le dessin ]</a>
|
||||
</p>
|
||||
{% endif%}
|
||||
|
||||
|
||||
@@ -128,10 +128,10 @@
|
||||
<td class="text-right">{{ ligne.Actifs.nombre }}</td>
|
||||
<td class="text-right">{{ '{0:0,.2f} €'.format(ligne.Actifs.valeur).replace(',',' ') }}</td>
|
||||
{% if ligne.Actifs.plus_value >= 0 %}
|
||||
<td class="text-right" style="color: green;">{{ '{0:0.2f} €'.format(ligne.Actifs.plus_value) }}</td>
|
||||
<td class="text-right" style="color: green;">{{ '{0:0,.2f} €'.format(ligne.Actifs.plus_value).replace(',',' ') }}</td>
|
||||
<td class="text-right" style="color: green;">{{ '{0:0.1f}'.format(ligne.Actifs.pc_plusvalue) }}</td>
|
||||
{% else %}
|
||||
<td class="text-right" style="color: red;">{{ '{0:0.2f} €'.format(ligne.Actifs.plus_value) }}</td>
|
||||
<td class="text-right" style="color: red;">{{ '{0:0,.2f} €'.format(ligne.Actifs.plus_value).replace(',',' ') }}</td>
|
||||
<td class="text-right" style="color: red;">{{ '{0:0.1f}'.format(ligne.Actifs.pc_plusvalue) }}</td>
|
||||
{% endif %}
|
||||
<td class="text-right">{{ '{0:0.1f}'.format(ligne.Actifs.ter) }}</td>
|
||||
@@ -143,10 +143,10 @@
|
||||
<td class="text-right" colspan="4"><b>Total au {{ maj_pf_le.strftime('%d/%m/%Y') }}</b></td>
|
||||
<td>{{ '{0:0,.2f} €'.format(total_valeur).replace(',',' ') }}</td>
|
||||
{% if total_pv >= 0 %}
|
||||
<td class="text-right" style="color: green;">{{ '{0:0.2f} €'.format(total_pv) }}</td>
|
||||
<td class="text-right" style="color: green;">{{ '{0:0,.2f} €'.format(total_pv).replace(',',' ') }}</td>
|
||||
<td class="text-right" style="color: green;">{{ '{0:0.1f}'.format(total_pc_value) }}</td>
|
||||
{% else %}
|
||||
<td class="text-right" style="color: red;">{{ '{0:0.2f} €'.format(total_pv) }}</td>
|
||||
<td class="text-right" style="color: red;">{{ '{0:0,.2f} €'.format(total_pv).replace(',',' ') }}</td>
|
||||
<td class="text-right" style="color: red;">{{ '{0:0.1f}'.format(total_pc_value) }}</td>
|
||||
{% endif %}
|
||||
<td></td>
|
||||
|
||||
@@ -14,10 +14,14 @@ from ..models.user import User
|
||||
def home(request):
|
||||
# get the last created posts
|
||||
last_ten = BlogRecordService.get_last_created(request)
|
||||
# get Chappatte cartoon
|
||||
entry = BlogRecordService.by_id(request, 95)
|
||||
|
||||
return {
|
||||
'page_title': "Evaṃ me sutaṃ",
|
||||
'last_ten': last_ten,
|
||||
'cartoon_title': entry.title,
|
||||
'cartoon_url': entry.body,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user