mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
change base_dir to not need value.
renamed index to comic_list
This commit is contained in:
29
comic/templates/comic/comic_list.html
Normal file
29
comic/templates/comic/comic_list.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user