Reworked nav bar and paging links
This commit is contained in:
@@ -36,10 +36,22 @@
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.small-nav-icon {
|
||||
width: 3em;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.mr-2 {
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
.ml-2 {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Grid. *
|
||||
****************************************************************************/
|
||||
|
@@ -9,19 +9,34 @@
|
||||
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
|
||||
</head>
|
||||
<body class="background">
|
||||
{% include 'partials/navigation.html'%}
|
||||
{% if images|length > 0 %}
|
||||
<table class="fc mauto">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/gallery/" class="mr-2">
|
||||
<img src="{% static 'imgs/gohome.png' %}" class="small-nav-icon">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href=".." class="mr-2">
|
||||
<img src="{% static 'imgs/back.png' %}" class="small-nav-icon">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<h1 class="mr-2">
|
||||
{{request.path}} - Files ({{num_files}})
|
||||
</h1>
|
||||
</td>
|
||||
{% if num_pages > 1 %}
|
||||
<td>
|
||||
<div class="mauto">
|
||||
{% for page in pages %}<a href="./?page={{page}}">{{page}}</a>{% if not forloop.last %}<span> </span>{% endif %}{% endfor %}
|
||||
</div>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</table>
|
||||
<div class="centered-container">
|
||||
<h1>
|
||||
{{request.path}} - Files ({{num_files}})
|
||||
</h1>
|
||||
</div>
|
||||
<div class="centered-container">
|
||||
{% if num_pages > 1 %}
|
||||
<div class="mb-2">
|
||||
{% for page in pages %}<a href="./?page={{page}}">{{page}}</a>{% if not forloop.last %}<span> </span>{% endif %}{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<table class="fc mauto">
|
||||
<tr>
|
||||
{% if page != 1 %}
|
||||
|
@@ -9,7 +9,20 @@
|
||||
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
|
||||
</head>
|
||||
<body class="background">
|
||||
{% include 'partials/navigation.html'%}
|
||||
<table class="fc mauto">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/gallery/">
|
||||
<img src="{% static 'imgs/gohome.png' %}" class="small-nav-icon">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="..">
|
||||
<img src="{% static 'imgs/back.png' %}" class="small-nav-icon">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="centered-container">
|
||||
<div class="image-container">
|
||||
<a href="{{image_path}}" target="_blank">
|
||||
|
@@ -1,9 +0,0 @@
|
||||
{% load static %}
|
||||
<div class="centered-container">
|
||||
<a href="/gallery/">
|
||||
<img src="{% static 'imgs/gohome.png' %}" class="navigation-icon">
|
||||
</a>
|
||||
<a href="..">
|
||||
<img src="{% static 'imgs/back.png' %}" class="navigation-icon">
|
||||
</a>
|
||||
</div>
|
Reference in New Issue
Block a user