added tests for the comicbook model

fixed bug related to last page link
This commit is contained in:
2015-06-25 12:36:55 +01:00
parent 7f234ce27c
commit 64a590f9ee
10 changed files with 236 additions and 19 deletions

View File

@@ -34,7 +34,7 @@
<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">
{% for file in book.pages %}
<li><a href="/comic/read/{{ nav.cur_path }}/{{ file.index }}/">{{ file.name }}</a></li>
<li><a href="/comic/read/{{ nav.cur_path }}/{{ file.index }}/">{{ file.page_file_name }}</a></li>
{% endfor %}
</ul>
</div>