-
-
Save capjamesg/d2bbf8283e379e06eb33e1b6b28a01aa to your computer and use it in GitHub Desktop.
dashboard.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="content_box"> | |
<h2>Channels</h2> | |
{% if channels %} | |
<p>Here are the channels in your feed:</p> | |
<ul> | |
{% for i in range(0, channels | length) %} | |
<li class="button_list"> | |
<a href="/channel/{{ channels[i][1] }}">{{ channels[i][0] }}</a> | |
<div style="float: right; position: relative;"> | |
{% if i != 0 %} | |
<form action="/reorder" method="POST"><input type="hidden" name="channel" value="{{ channels[i][1] }}"><input type="hidden" name="channel" value="{{ channels[i-1][1] }}"><input type="submit" value="Move Up"></form> | |
{% endif %} | |
{% if i < channels | length - 1 %} | |
<form action="/reorder" method="POST"><input type="hidden" name="channel" value="{{ channels[i][1] }}"><input type="hidden" name="channel" value="{{ channels[i+1][1] }}"><input type="submit" value="Move Down"></form> | |
{% endif %} | |
</div> | |
</li> | |
{% endfor %} | |
</ul> | |
{% else %} | |
<p>You have not created any channels yet.</p> | |
{% endif %} | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment