Move grid buttons to base list
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% load urlreplace %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
||||||
@ -7,6 +8,11 @@
|
|||||||
<h1 class="h2">{% block title %}{% endblock %} </h1>
|
<h1 class="h2">{% block title %}{% endblock %} </h1>
|
||||||
<div class="btn-toolbar mb-2 mb-md-0">
|
<div class="btn-toolbar mb-2 mb-md-0">
|
||||||
<div class="btn-group me-2">
|
<div class="btn-group me-2">
|
||||||
|
{% if view == 'grid' %}
|
||||||
|
<button type="button" class="btn btn-sm btn-outline-secondary"><a href="?{% urlreplace view='list' %}">List View</a>
|
||||||
|
{% else %}
|
||||||
|
<button type="button" class="btn btn-sm btn-outline-secondary"><a href="?{% urlreplace view='grid' %}">Grid View</a>
|
||||||
|
{% endif %}
|
||||||
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
|
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,20 +1,9 @@
|
|||||||
{% extends "base_list.html" %}
|
{% extends "base_list.html" %}
|
||||||
{% load urlreplace %}
|
|
||||||
|
|
||||||
{% block title %}Long Plays{% endblock %}
|
{% block title %}Long Plays{% endblock %}
|
||||||
|
|
||||||
{% block lists %}
|
{% block lists %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<p class="view">
|
|
||||||
<span class="view-links">
|
|
||||||
{% if view == 'grid' %}
|
|
||||||
View as <a href="?{% urlreplace view='list' %}">List</a>
|
|
||||||
{% else %}
|
|
||||||
View as <a href="?{% urlreplace view='grid' %}">Grid</a>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
<h2>In progress</h2>
|
<h2>In progress</h2>
|
||||||
{% if view == 'grid' %}
|
{% if view == 'grid' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user