Added paging to gallery view.
This commit is contained in:
@@ -9,21 +9,17 @@
|
||||
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
|
||||
</head>
|
||||
<body class="background">
|
||||
<div class="centered-container">
|
||||
<a href="/gallery/">
|
||||
<img src="{% static 'imgs/gohome.png' %}">
|
||||
</a>
|
||||
<a href="..">
|
||||
<img src="{% static 'imgs/back.png' %}">
|
||||
</a>
|
||||
</div>
|
||||
{% include 'partials/navigation.html'%}
|
||||
{% if images|length > 0 %}
|
||||
<div class="centered-container">
|
||||
<h1>
|
||||
Files
|
||||
Files ({{num_files}})
|
||||
</h1>
|
||||
</div>
|
||||
<div class="centered-container">
|
||||
<div class="mb-2">
|
||||
{% for page in pages %}<a href="./?page={{page}}">{{page}}</a>{% if not forloop.last %}<span> </span>{% endif %}{% endfor %}
|
||||
</div>
|
||||
<table class="mauto">
|
||||
<tbody>
|
||||
{% for row in images %}
|
||||
|
@@ -4,19 +4,12 @@
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, height=device-height" />
|
||||
<title>
|
||||
Vieweing file: {{image_path}}
|
||||
File: {{image_path.name}}
|
||||
</title>
|
||||
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
|
||||
</head>
|
||||
<body class="background">
|
||||
<div class="centered-container">
|
||||
<a href="/gallery/">
|
||||
<img src="{% static 'imgs/gohome.png' %}">
|
||||
</a>
|
||||
<a href="..">
|
||||
<img src="{% static 'imgs/back.png' %}">
|
||||
</a>
|
||||
</div>
|
||||
{% include 'partials/navigation.html'%}
|
||||
<div class="centered-container">
|
||||
<div class="image-container">
|
||||
<a href="{{image_path}}" target="_blank">
|
||||
|
9
viewer/templates/partials/navigation.html
Normal file
9
viewer/templates/partials/navigation.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% 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