-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from CloudBytes-Academy/series
Series
- Loading branch information
Showing
6 changed files
with
79 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
design/alexis/templates/layouts/partial/series_navigation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!-- FILEPATH: /workspaces/cloudbytes/design/alexis/templates/layouts/partial/series_navigation.html --> | ||
|
||
<div class="series_navigation"> | ||
<ul class="pagination"> | ||
|
||
{% if article.series.previous == None %} | ||
<li class="page-item"> | ||
<a class="page-link" aria-label="Previous"><span> | ||
<< Prev: {{article.series.previous.title}}</span></a> | ||
</li> | ||
{% else %} | ||
<li class="page-item"> | ||
<a href="/{{article.series.previous.url}}" class="page-link" aria-label="Previous"><span> | ||
<< Prev: {{article.series.previous.title}}</span></a> | ||
</li> | ||
{% endif %} | ||
|
||
<li class="page-item"> | ||
<a class="series-title" aria-label="Series"><span> | ||
Series: {{article.series.name}}</span></a> | ||
</li> | ||
|
||
{% if article.series.next == None %} | ||
<li class="page-item"> | ||
<a class="page-link active" aria-label="Next"><span>Next: | ||
{{article.series.next.title}} | ||
>></span></a> | ||
</li> | ||
{% else %} | ||
<li class="page-item"> | ||
<a href="/{{article.series.next.url}}" class="page-link" aria-label="Next"><span>Next: | ||
{{article.series.next.title}} | ||
>></span></a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
|
||
<style> | ||
.series_navigation { | ||
text-align: center; | ||
} | ||
|
||
.pagination { | ||
display: flex; | ||
list-style-type: none; | ||
padding: 0; | ||
width: 100%; | ||
/* Make sure the list takes up the full width of its parent */ | ||
justify-content: space-between; | ||
/* Pushes the items to the extreme left and right */ | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters