Commit 07638a3d authored by Julian Rother's avatar Julian Rother
Browse files

Use prefix parameter for simpler psa url building

parent 4b168527
......@@ -18,7 +18,7 @@
<li class="pull-right">{{ valuedeletebtn(('announcements',,'deleted')) }}</li>
<li class="pull-right" style="padding-right: 5px;">
{% if not msg.visible %}
<a href="{{ url_for('edit', ref=request.url) }}&announcements.{{ }}.visible=1" class="btn btn-primary">Veröffentlichen</a>
<a href="{{ url_for('edit', prefix='announcements.'+str(|string)+'.', ref=request.url, visible=1) }}" class="btn btn-primary">Veröffentlichen</a>
{% elif msg.time_expire and msg.time_expire < %}
<a href="#" class="btn btn-danger disabled">Abgelaufen</a>
{% elif msg.time_publish and msg.time_publish > %}
......@@ -31,7 +31,7 @@
<span class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">{{levels.get(msg.level, ('', 'Unbekannt'))[1]}} <span class="caret"></span></span>
<ul class="dropdown-menu">
{% for level, descr in levels.items() %}
<li><a href="{{ url_for('edit', ref=request.url) }}&announcements.{{ }}.level={{ level }}">{{ descr[1] }}</a></li>
<li><a href="{{ url_for('edit', prefix='announcements.'+(|string)+'.', ref=request.url, level=level) }}">{{ descr[1] }}</a></li>
{% endfor %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment