New reader based on reveal.js. works well on mobile and desktop and gives a better expierance all around.

This commit is contained in:
ajurna
2020-05-20 10:26:45 +01:00
parent 2debda7abc
commit be32796bea
43 changed files with 16776 additions and 72 deletions

View File

@@ -131,13 +131,9 @@ class ComicBook(models.Model):
out.prev_index = page - 1
out.prev_path = out.cur_path
if self.is_last_page(page):
out.next_path, out.next_index = self.nav_get_next_comic(user)
if out.next_index == -1:
out.q_next_to_directory = True
else:
out.next_index = page + 1
out.next_path = out.cur_path
out.next_path, out.next_index = self.nav_get_next_comic(user)
if out.next_index == -1:
out.q_next_to_directory = True
return out
def nav_get_prev_comic(self, user):