Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
c51e233d
Commit
c51e233d
authored
Apr 10, 2017
by
Julian Rother
Browse files
Grouped panel ordering buttons in a button group
parent
2f255298
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/index.html
View file @
c51e233d
...
...
@@ -78,15 +78,20 @@
<h1
class=
"panel-title"
>
{{ moderator_editor(('featured',item.id,'title'), item.title) }} {{ moderator_checkbox(('featured',item.id,'visible'), item.visible) }}
{% if ismod() %}
<
ul
class=
"
pull-right list-inline
"
>
<
div
class=
"
btn-group pull-right"
role=
"group
"
>
{% if not loop.first %}
<li><a
class=
"btn btn-default"
href=
"{{ url_for('edit', **{'featured.'+item.id|string+'.order': featured[loop.index0-1].order, 'featured.'+featured[loop.index0-1].id|string+'.order': item.order, 'ref': request.url})}}"
><span
class=
"glyphicon glyphicon-arrow-up"
></span></a></li>
<a
class=
"btn btn-default"
href=
"{{ url_for('edit', **{'featured.'+item.id|string+'.order': featured[loop.index0-1].order, 'featured.'+featured[loop.index0-1].id|string+'.order': item.order, 'ref': request.url})}}"
><span
class=
"glyphicon glyphicon-arrow-up"
></span></a>
{% else %}
<button
class=
"btn btn-default disabled"
><span
class=
"glyphicon glyphicon-arrow-up"
></span></button>
{% endif %}
{% if not loop.last %}
<li><a
class=
"btn btn-default"
href=
"{{ url_for('edit', **{'featured.'+item.id|string+'.order': featured[loop.index0+1].order, 'featured.'+featured[loop.index0+1].id|string+'.order': item.order, 'ref': request.url})}}"
><span
class=
"glyphicon glyphicon-arrow-down"
></span></a></li>
<a
class=
"btn btn-default"
href=
"{{ url_for('edit', **{'featured.'+item.id|string+'.order': featured[loop.index0+1].order, 'featured.'+featured[loop.index0+1].id|string+'.order': item.order, 'ref': request.url})}}"
><span
class=
"glyphicon glyphicon-arrow-down"
></span></a>
{% else %}
<button
class=
"btn btn-default disabled"
><span
class=
"glyphicon glyphicon-arrow-down"
></span></button>
{% endif %}
<li>
{{ moderator_delete(['featured',item.id,'deleted']) }}
</li>
</ul>
{{ moderator_delete(['featured',item.id,'deleted']) }}
</div>
{% endif %}
</h1>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment