Add dark template
This commit is contained in:
parent
7c7eb0061d
commit
467f2396ca
8 changed files with 108 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "base_dark.html" %}
|
||||
{% load static %}
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "base_dark.html" %}
|
||||
{% load static %}
|
||||
|
||||
<!-- Title -->
|
||||
|
@ -8,7 +8,6 @@
|
|||
<!-- Content -->
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="uk-grid-small uk-child-width-1-2@s uk-child-width-1-3@m" uk-grid="masonry: true">
|
||||
{% for album in album_list %}
|
||||
<div>
|
||||
|
@ -25,10 +24,8 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
{% include "./partials/pagination.html" %}
|
||||
</div>
|
||||
|
||||
{% include "./partials/pagination.html" %}
|
||||
|
||||
{% endblock %}
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "base_dark.html" %}
|
||||
|
||||
<!-- Title -->
|
||||
{% block title %} Galleria {% endblock %}
|
||||
{% block title %} Gallery {% endblock %}
|
||||
|
||||
<!-- Content -->
|
||||
{% block content %}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{% load link_tags %}
|
||||
|
||||
{% if page_obj.has_other_pages %}
|
||||
<div class="uk-margin">
|
||||
<div class="uk-margin uk-background-muted uk-text-uppercase">
|
||||
<ul class="uk-pagination uk-flex-center">
|
||||
|
||||
{% if page_obj.has_previous %}
|
||||
<li><a href="{% paginator_link page_obj.previous_page_number request.GET %}"><span class="uk-margin-small-right" uk-pagination-previous></span> Previous</a></li>
|
||||
<li><a href="{% paginator_link page_obj.previous_page_number request.GET %}">« Previous</a></li>
|
||||
{% else %}
|
||||
<li class="uk-disabled"><a href="#"><span class="uk-margin-small-right" uk-pagination-previous></span> Previous</a></li>
|
||||
<li class="uk-disabled"><a href="#">« Previous</a></li>
|
||||
{% endif %}
|
||||
|
||||
{% if page_obj.number|add:'-3' > 1 %}
|
||||
|
@ -33,9 +33,9 @@
|
|||
{% endif %}
|
||||
|
||||
{% if page_obj.has_next %}
|
||||
<li><a href="{% paginator_link page_obj.next_page_number request.GET %}">Next <span uk-pagination-next></span></a></li>
|
||||
<li><a href="{% paginator_link page_obj.next_page_number request.GET %}">Next »</a></li>
|
||||
{% else %}
|
||||
<li class="uk-disabled"><a href="#">Next <span class="uk-margin-small-left" uk-pagination-next></span></a></li>
|
||||
<li class="uk-disabled"><a href="#">Next »</a></li>
|
||||
{% endif %}
|
||||
|
||||
</ul>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "base_dark.html" %}
|
||||
|
||||
<!-- Title -->
|
||||
{% block title %} Gallery : Photo {% endblock %}
|
||||
{% block title %} Gallery : Photo : {{ photo.slug }} {% endblock %}
|
||||
|
||||
|
||||
<!-- Content -->
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "base_dark.html" %}
|
||||
|
||||
|
||||
<!-- Title -->
|
||||
|
@ -8,7 +8,7 @@
|
|||
{% block content %}
|
||||
|
||||
{% load link_tags %}
|
||||
<ul class="uk-tab uk-flex-right">
|
||||
<ul class="uk-tab uk-flex-left uk-margin-remove-top">
|
||||
<li {% if order == 'latest' %}class="uk-active" {% endif %}><a href="{% search_link 'latest' request.GET %}">Latest</a></li>
|
||||
<li {% if order == 'liked' %}class="uk-active" {% endif %}><a href="{% search_link 'liked' request.GET %}">Top Liked</a></li>
|
||||
<li {% if order == 'popular' %}class="uk-active" {% endif %}><a href="{% search_link 'popular' request.GET %}">Popular</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue