Skip to content

Commit

Permalink
Merge pull request #60 from f3l/059_fixUrls
Browse files Browse the repository at this point in the history
Fix absolute URL paths.
  • Loading branch information
pheerai authored Jan 12, 2019
2 parents 2eb7d23 + b9394a2 commit b7aaac3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/all.dt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends ./layout

block content
- import citesystem.rest : FullCiteData;
p#desc Alle #{llen} bekannten Zitate. – #[a(href="/all_paginated?pagesize=10&page=1") Seitenweise]
p#desc Alle #{llen} bekannten Zitate. – #[a(href="all_paginated?pagesize=10&page=1") Seitenweise]
div#citebody
- foreach(FullCiteData cite; cites)
include rendercite
10 changes: 5 additions & 5 deletions resources/views/pagination_footer.dt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
div.pagination_footer
- if (paginationInfo.needsPreviousPage)
a.pagination.pagination_first(href="/all_paginated?page=1&pagesize=#{paginationInfo.pagesize}") «
a.pagination.pagination_previous(href="/all_paginated?page=#{paginationInfo.currentPage - 1}&pagesize=#{paginationInfo.pagesize}") ‹
a.pagination.pagination_first(href="all_paginated?page=1&pagesize=#{paginationInfo.pagesize}") «
a.pagination.pagination_previous(href="all_paginated?page=#{paginationInfo.currentPage - 1}&pagesize=#{paginationInfo.pagesize}") ‹
- if (paginationInfo.needsFrontTruncation)
a.pagination.pagination_truncation …
- foreach(ulong mark; paginationInfo.pagesToShow)
- if (mark == paginationInfo.currentPage)
a.pagination_mark.pagination.pagination_current #{mark}
- else
a.pagination.pagination_mark(href="/all_paginated?page=#{mark}&pagesize=#{paginationInfo.pagesize}") #{mark}
a.pagination.pagination_mark(href="all_paginated?page=#{mark}&pagesize=#{paginationInfo.pagesize}") #{mark}
- if (paginationInfo.needsBackTruncation)
a.pagination.pagination_truncation …
- if (paginationInfo.needsNextPage)
a.pagination.pagination_next(href="/all_paginated?page=#{paginationInfo.currentPage + 1}&pagesize=#{paginationInfo.pagesize}") ›
a.pagination.pagination_last(href="/all_paginated?pagesize=#{paginationInfo.pagesize}&page=#{paginationInfo.lastPage}") »
a.pagination.pagination_next(href="all_paginated?page=#{paginationInfo.currentPage + 1}&pagesize=#{paginationInfo.pagesize}") ›
a.pagination.pagination_last(href="all_paginated?pagesize=#{paginationInfo.pagesize}&page=#{paginationInfo.lastPage}") »

0 comments on commit b7aaac3

Please sign in to comment.