Files
cbwebreader/comic/templates/comic/comic_list.html
ajurna f5c146e925 change base_dir to not need value.
renamed index to comic_list
2015-06-18 22:56:01 +01:00

29 lines
979 B
HTML

{% extends "base.html" %}
{% block title %}CBreader{% endblock %}
{% block breadcrumb %}
{% for crumb in breadcrumbs %}
{% if not forloop.last %}
<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>
{% else %}
<li class="active">{{ crumb.name }}</li>
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
<h2 class="center">Comics</h2>
<div class="list-group">
{% if file_list %}
{% for file in file_list %}
{% if file.isdir %}
<a href="/comic/{{ file.location }}/" class="glyphicon {{ file.icon }} list-group-item"> {{ file }}</a>
{% endif %}
{% if file.iscb %}
<a href="/comic/read/{{ file.location }}/0/" class="glyphicon {{ file.icon }} list-group-item"> {{ file }}</a>
{% endif %}
{% endfor %}
{% else %}
<p class="list-group-item">No comics.</p>
{% endif %}
</div>
{% endblock %}