supprime les tag1 et tag2
This commit is contained in:
@@ -10,12 +10,14 @@
|
|||||||
Page text goes here.
|
Page text goes here.
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<p>
|
<p>Tags :
|
||||||
Dernière modification le ${doc.modif_le.strftime('%d/%m/%Y')}<br />
|
<span tal:repeat="tag tags">
|
||||||
Tags : ${tags}
|
[ <a href="/tags#${tag.tag}">${tag.tag}</a> ]
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p tal:condition="not layout.isAnonymous">
|
<p tal:condition="not layout.isAnonymous">
|
||||||
Status : ${doc.statut}
|
Status : ${doc.statut}<br />
|
||||||
|
Dernière modification le ${doc.modif_le.strftime('%d/%m/%Y')}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@@ -53,8 +53,6 @@ def doc_edit(request):
|
|||||||
doc['intitule'] = ''
|
doc['intitule'] = ''
|
||||||
doc['texte'] = ''
|
doc['texte'] = ''
|
||||||
doc['topic'] = topic
|
doc['topic'] = topic
|
||||||
doc['tag1'] = ''
|
|
||||||
doc['tag2'] = ''
|
|
||||||
doc['statut'] = 'private'
|
doc['statut'] = 'private'
|
||||||
tags = {}
|
tags = {}
|
||||||
else:
|
else:
|
||||||
@@ -131,9 +129,8 @@ def doc_view(request):
|
|||||||
url_retour = request.route_url('portfolio')
|
url_retour = request.route_url('portfolio')
|
||||||
else:
|
else:
|
||||||
url_retour = request.route_url('folder',topic=doc.topic)
|
url_retour = request.route_url('folder',topic=doc.topic)
|
||||||
tags = doc.tag1
|
|
||||||
if doc.tag2:
|
tags = get_docs_tags(request, doc.doc_id)
|
||||||
tags += ', ' + doc.tag2
|
|
||||||
|
|
||||||
# insèrer le path de static/img
|
# insèrer le path de static/img
|
||||||
texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url)
|
texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user