Add site list overview template
This commit is contained in:
parent
fea0b8604d
commit
ae676b29a5
1 changed files with 114 additions and 0 deletions
114
archivist/apps/templates/sites/sites_list.html
Normal file
114
archivist/apps/templates/sites/sites_list.html
Normal file
|
@ -0,0 +1,114 @@
|
|||
{% extends "layouts/base-electric.html" %}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block title %} Sites {% endblock title %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<style>
|
||||
.textonly{
|
||||
background-color:#222222;
|
||||
border-radius: 5px;
|
||||
width:260px;
|
||||
padding:8px;
|
||||
font-weight: bold;
|
||||
box-shadow: 0px 1px 5px 0px #221133;
|
||||
margin:auto auto 16px auto;
|
||||
border:2px solid #eeeeee;
|
||||
}
|
||||
.text2{
|
||||
background-color:#222222;
|
||||
border-radius: 5px;
|
||||
width:760px;
|
||||
padding:8px;
|
||||
font-weight: bold;
|
||||
box-shadow: 0px 1px 5px 0px #221133;
|
||||
margin:auto auto 16px auto;
|
||||
border:2px solid #eeeeee;
|
||||
}
|
||||
.e-container-border{
|
||||
// width: 90%;
|
||||
padding: 4px;
|
||||
margin: auto;
|
||||
background-color:#222222;
|
||||
border-radius: 25px;
|
||||
background: linear-gradient(180deg, #4b8fca, #e73c7e, #23a6d5, #23d5ab);
|
||||
background-size: 400% 400%;
|
||||
animation: gradient 15s ease infinite;
|
||||
box-shadow: 0px 2px 10px 0px #221133;
|
||||
transition-timing-function: ease-out;
|
||||
transition-duration: 0.3s;
|
||||
display: flex;
|
||||
}
|
||||
.e-container{
|
||||
overflow:hidden;
|
||||
background-color:#222222;
|
||||
padding:24px;
|
||||
text-align:justify;
|
||||
border-radius: 25px;
|
||||
}
|
||||
</style>
|
||||
{% endblock stylesheets %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include "includes/navigation-transparent.html" %}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="e-container-border row" tabindex="1">
|
||||
<div class="e-container">
|
||||
<h1 class="text-center">Archived Sites</h1>
|
||||
|
||||
<p class="text-center">These are the sites that have been archived to this archive.</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<p class="text-center">Some basic archive stats.</p>
|
||||
|
||||
<p class="text-center">
|
||||
<span>Submissions: {{ basic_stats.submissions }}</span>
|
||||
|
||||
<span>Users: {{ basic_stats.users }}</span>
|
||||
|
||||
<span>Tags: {{ basic_stats.tags }}</span>
|
||||
</p>
|
||||
<hr>
|
||||
|
||||
<div class="d-flex flex-wrap justify-content-center gap-2">
|
||||
|
||||
{% for site in sites %}
|
||||
<div class="col-sm-8 col-md-5 col-lg-5 col-xl-4">
|
||||
<div class="card">
|
||||
<div class="row">
|
||||
<div class="col-4 d-flex align-items-center justify-content-center">
|
||||
<img src="{% static site.logo %}" width="100%" height="100%" class="img-fluid rounded-start" alt="...">
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title">{{ site.name }}</h3>
|
||||
<ul>
|
||||
<li>Posts: {{ site.posts }}</li>
|
||||
<li>Users: {{ site.users }}</li>
|
||||
<li>Tags: {{ site.tags }}</li>
|
||||
</ul>
|
||||
<p class="card-text"><small class="text-body-secondary">{{ site.last_updated }}</small></p>
|
||||
{% if site.url %}
|
||||
<a href="{% url 'sites:site_overview' site.url %}" class="stretched-link"></a>
|
||||
{% else %}
|
||||
<a href="#" class="stretched-link" aria-disabled="true"></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
||||
|
Loading…
Reference in a new issue