fixed article creation

This commit is contained in:
2020-05-05 09:37:43 +02:00
parent d2bba8c8f3
commit 1cd81c5cfb
2 changed files with 6 additions and 2 deletions

View File

@@ -98,7 +98,11 @@
<p class="text-center">&copy; 2017&nbsp;-&nbsp;Phuoc Cao&nbsp;|&nbsp;
<a href="${request.application_url}/apropos">à propos</a>&nbsp;|&nbsp;
<a href="${request.application_url}/doc_search">recherche</a>
<a href="${request.application_url}/login" tal:condition="layout.isAnonymous()">&nbsp;|&nbsp;se connecter&nbsp;|&nbsp;</a>
<span tal:condition="layout.isAnonymous()">
&nbsp;|&nbsp;
<a href="${request.application_url}/login">se connecter</a>
&nbsp;|&nbsp;
</span>
</p>
</div>
</footer>

View File

@@ -126,7 +126,7 @@ def doc_edit(request):
if doc_id != '0':
return HTTPFound(location=request.route_url('doc_view', doc_id=doc_id))
else:
return HTTPFound(location=request.route_url('archives',theme=doc.theme))
return HTTPFound(location=request.route_url('archives',theme=theme))
else:
message = "Veuillez saisir un intitule et un texte."