mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
fixed read_comic
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -49,6 +49,7 @@ var/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
.idea/
|
||||
UnRAR.exe
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
|
||||
@@ -2,49 +2,47 @@
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container comic_box">
|
||||
<center>
|
||||
<br/>
|
||||
<div class="container comic_box justify-content-center">
|
||||
<div class="row justify-content-center">
|
||||
{% if nav.q_next_to_directory %}
|
||||
<a href="/comic/{{ nav.next_path }}/">
|
||||
{% else %}
|
||||
<a href="/comic/read/{{ nav.next_path }}/{{ nav.next_index }}/">
|
||||
{% endif %}
|
||||
<img src="/comic/read/{{ nav.cur_path }}/{{ nav.cur_index }}/img" class="img-responsive">
|
||||
<img src="/comic/read/{{ nav.cur_path }}/{{ nav.cur_index }}/img" class="img-fluid">
|
||||
</a>
|
||||
<br/>
|
||||
<div class="btn-group">
|
||||
</div>
|
||||
<div class="row justify-content-center mt-1 mb-1">
|
||||
<div class="btn-group" role="group" aria-label="Navigation">
|
||||
{% if nav.q_prev_to_directory %}
|
||||
{% if nav.prev_path %}
|
||||
<a href="/comic/{{ nav.prev_path }}/" class="btn btn-default">Next</a>
|
||||
<a href="/comic/{{ nav.prev_path }}/" class="btn btn-secondary">Prev</a>
|
||||
{% else %}
|
||||
<a href="/comic/" class="btn btn-default">Next</a>
|
||||
<a href="/comic/" class="btn btn-secondary">Prev</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<a href="/comic/read/{{ nav.prev_path }}/{{ nav.prev_index }}/" class="btn btn-default">Prev</a>
|
||||
<a href="/comic/read/{{ nav.prev_path }}/{{ nav.prev_index }}/" class="btn btn-secondary">Prev</a>
|
||||
{% endif %}
|
||||
{% if book.pages %}
|
||||
<div class="btn-group dropup">
|
||||
<button type="button" data-toggle="dropdown" class="btn btn-default dropdown-toggle ">{{ orig_file_name }}<span class="caret"></span></button>
|
||||
<ul class="dropdown-menu" id="dropdown-list">
|
||||
<div class="btn-group" role="group">
|
||||
<button id="page_list" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{{ orig_file_name }}
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="page_list">
|
||||
{% for file in book.pages %}
|
||||
<li><a href="/comic/read/{{ nav.cur_path }}/{{ file.index }}/">{{ file.page_file_name }}</a></li>
|
||||
<a class="dropdown-item" href="/comic/read/{{ nav.cur_path }}/{{ file.index }}/">{{ file.page_file_name }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<button class="btn btn-default">No Pages</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if nav.q_next_to_directory %}
|
||||
{% if nav.next_path %}
|
||||
<a href="/comic/{{ nav.next_path }}/" class="btn btn-default">Next</a>
|
||||
<a href="/comic/{{ nav.next_path }}/" class="btn btn-secondary">Next</a>
|
||||
{% else %}
|
||||
<a href="/comic/" class="btn btn-default">Next</a>
|
||||
<a href="/comic/" class="btn btn-secondary">Next</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<a href="/comic/read/{{ nav.next_path }}/{{ nav.next_index }}/" class="btn btn-default">Next</a>
|
||||
<a href="/comic/read/{{ nav.next_path }}/{{ nav.next_index }}/" class="btn btn-secondary">Next</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -24,7 +24,7 @@
|
||||
/* background-color: #f5f5f5;*/
|
||||
/*}*/
|
||||
/*.comic_box {*/
|
||||
/* width: auto;*/
|
||||
/* width: 100%;*/
|
||||
/*}*/
|
||||
|
||||
/*#dropdown-list{*/
|
||||
|
||||
Reference in New Issue
Block a user