amélioration de la page Accueil
This commit is contained in:
@@ -35,8 +35,8 @@ def folder(request):
|
||||
for tag in tags:
|
||||
tags_list += tag.tag + ', '
|
||||
|
||||
cree_le = item.cree_le.strftime('%d/%m/%Y')
|
||||
d = (item.intitule, tags_list, cree_le, item.doc_id)
|
||||
modif_le = item.cree_le.strftime('%d.%m.%y')
|
||||
d = (modif_le, item.intitule, tags_list, item.doc_id)
|
||||
liste.append(d)
|
||||
|
||||
return {
|
||||
@@ -134,7 +134,8 @@ def doc_search(request):
|
||||
|
||||
return {
|
||||
'page_title': "Rechercher",
|
||||
'dt_data': json.dumps(liste),
|
||||
'dt_data': json.dumps(liste),
|
||||
'critere': critere,
|
||||
}
|
||||
|
||||
@view_config(route_name='doc_view', renderer='../templates/contents/doc_view.pt')
|
||||
|
||||
@@ -72,7 +72,7 @@ def home(request):
|
||||
id_photo = member.photo_instagram
|
||||
|
||||
# lire toutes les docs
|
||||
items = get_docs_bytopic(request, 'blog', logged_in)
|
||||
items = get_docs_bytopic(request, 'home', logged_in)
|
||||
|
||||
return {
|
||||
'page_title': "Méditer, c’est ouvrir la cage",
|
||||
|
||||
Reference in New Issue
Block a user