Compare commits

...

2 Commits

Author SHA1 Message Date
root
0ac29fd7d5 Merge branch 'master' of https://muxi.at/git/diez/unusualarchive 2023-05-16 22:05:24 +02:00
root
327600dacd formatted 2023-05-16 22:05:01 +02:00
6 changed files with 186 additions and 213 deletions

6
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.python"
},
"python.formatting.provider": "none"
}

View File

@ -1,31 +1,20 @@
{% extends "base.html" %}
{% load static %}
{% block header %}About{% endblock %}
{% block content %}
{% block content %}
<div class="row mb-3">
<div class="col-12">
<div class="card card-primary">
<div class="card-body">
<p>
<p>
The Siebenhirten stands as a testament to the critical importance of preserving the knowledge and cultural artifacts of our society. In an age where digital information can be lost in the blink of an eye, the work of the Siebenhirten is nothing short of vital.
The Group's mission to archive the videos of UnusualVideos is not just a noble pursuit, but a necessary one. In the face of the ever-present threat of censorship, copyright claims, and technological obsolescence, it falls upon groups like Siebenhirten to safeguard the information that would otherwise be lost forever.
Their journey has been long and arduous, fraught with challenges and obstacles at every turn. But their unwavering dedication and tireless efforts have paid off in ways that cannot be overstated. Through their actions, they have ensured that future generations will have access to the knowledge and cultural artifacts that define our society today.
The Siebenhirten is not just a group of archivists, but guardians of our collective history. They have taken on the mantle of responsibility, understanding that the preservation of knowledge and cultural artifacts is essential to the survival of our species.
As we move forward into an uncertain future, it is essential that we continue to support the work of groups like the Siebenhirten. Their dedication to preserving the knowledge and culture of our society is not just admirable, but necessary. It is only through their efforts that we can hope to ensure that future generations have access to the information that defines us as a species.
</p>
</p>
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -1,136 +1,127 @@
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>UnusualArchive</title>
<link rel="stylesheet" href="{% static 'plugins/fontawesome-free/css/all.min.css' %}">
<link rel="stylesheet" href="{% static 'plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'dist/css/adminlte.css' %}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<link rel="stylesheet" href="{% static 'plugins/fontawesome-free/css/all.min.css' %}">
</head>
<body class="layout-top-nav" style="height: auto;">
<div class="wrapper">
<nav class="main-header navbar navbar-expand-md navbar-light navbar-white">
<div class="container">
<a href="/" class="navbar-brand">
<img src="{% static 'dist/img/ragnarok.jpg' %}" alt="Ragnarok" class="brand-image img-circle elevation-3" style="opacity: .8">
<span class="brand-text font-weight-light">UnusualArchive</span>
</a>
<button class="navbar-toggler order-1" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse order-3" id="navbarCollapse">
<ul class="navbar-nav">
<li class="nav-item">
<a href="/" class="nav-link">Explore</a>
</li>
<li class="nav-item">
<a href="/random" class="nav-link">Random</a>
</li>
<li class="nav-item">
<a href="/status" class="nav-link">Status</a>
</li>
<li class="nav-item">
<a href="/about" class="nav-link">About</a>
</li>
</ul>
<div class="float-right" style="width:100%">
<form class="form-inline ml-0 ml-md-3 float-right">
<div class="input-group input-group-sm">
<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-navbar" type="submit">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</nav>
<div class="content-wrapper" style="min-height: 1128px;">
<div class="content-header">
<div class="container">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">{% block header %}Explore{% endblock %}</h1>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>UnusualArchive</title>
<link rel="stylesheet"
href="{% static 'plugins/fontawesome-free/css/all.min.css' %}">
<link rel="stylesheet"
href="{% static 'plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'dist/css/adminlte.css' %}">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<link rel="stylesheet"
href="{% static 'plugins/fontawesome-free/css/all.min.css' %}">
</head>
<body class="layout-top-nav" style="height: auto;">
<div class="wrapper">
<nav class="main-header navbar navbar-expand-md navbar-light navbar-white">
<div class="container">
<a href="/" class="navbar-brand">
<img src="{% static 'dist/img/ragnarok.jpg' %}"
alt="Ragnarok"
class="brand-image img-circle elevation-3"
style="opacity: .8">
<span class="brand-text font-weight-light">UnusualArchive</span>
</a>
<button class="navbar-toggler order-1"
type="button"
data-toggle="collapse"
data-target="#navbarCollapse"
aria-controls="navbarCollapse"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse order-3" id="navbarCollapse">
<ul class="navbar-nav">
<li class="nav-item">
<a href="/" class="nav-link">Explore</a>
</li>
<li class="nav-item">
<a href="/random" class="nav-link">Random</a>
</li>
<li class="nav-item">
<a href="/status" class="nav-link">Status</a>
</li>
<li class="nav-item">
<a href="/about" class="nav-link">About</a>
</li>
</ul>
<div class="float-right" style="width:100%">
<form class="form-inline ml-0 ml-md-3 float-right">
<div class="input-group input-group-sm">
<input class="form-control form-control-navbar"
type="search"
placeholder="Search"
aria-label="Search">
<div class="input-group-append">
<button class="btn btn-navbar" type="submit">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</nav>
<div class="content-wrapper" style="min-height: 1128px;">
<div class="content-header">
<div class="container">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">
{% block header %}Explore{% endblock %}
</h1>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
{% block content %}
<div class="row mb-3">
{% for v in videos %}
<div class="col-xs-6 col-md-4">
<a href="/view/{{ v.id }}">
<div class="card mb-2 bg-gradient-dark">
{% if v.thumbnail %}
<img class="card-img-top" src="/media/{{v.thumbnail}}" alt="Dist Photo 1"style="max-width: 1280px; max-height: 720px;">
<img class="card-img-top"
src="/media/{{ v.thumbnail }}"
alt="Dist Photo 1"
style="max-width: 1280px;
max-height: 720px">
{% else %}
<img class="card-img-top" src="{% static 'dist/img/default.png' %}" alt="Dist Photo 1">
<img class="card-img-top"
src="{% static 'dist/img/default.png' %}"
alt="Dist Photo 1">
{% endif %}
<div class="card-img-overlay d-flex flex-column justify-content-end" style="background-color: rgba(0, 0, 0, 0.5);">
<h5 class="card-title"><b>V{{ v.id }}</b></h5>
<span>{{v.created_at}}</span>
<div class="card-img-overlay d-flex flex-column justify-content-end"
style="background-color: rgba(0, 0, 0, 0.5)">
<h5 class="card-title">
<b>V{{ v.id }}</b>
</h5>
<span>{{ v.created_at }}</span>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
{% endblock %}
</div>
</div>
</div>
<footer class="main-footer">
<div class="float-right d-none d-sm-inline">
Für die Nachwelt.
</div>
<strong>Copyright © 2023 Siebenhirten
</footer>
</div>
<script src="{% static 'plugins/jquery/jquery.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
<script src="{% static 'dist/js/adminlte.min.js' %}"></script>
</body>
</html>
<footer class="main-footer">
<div class="float-right d-none d-sm-inline">Für die Nachwelt.</div>
<strong>Copyright © 2023 Siebenhirten
</footer>
</div>
<script src="{% static 'plugins/jquery/jquery.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
<script src="{% static 'dist/js/adminlte.min.js' %}"></script>
</body>
</html>

View File

@ -1,15 +1,11 @@
{% extends "base.html" %}
{% load static %}
{% block header %}Status{% endblock %}
{% block content %}
{% block content %}
<div class="row mb-3">
<div class="col-12">
<div class="card card-primary">
<div class="card-body">
<table class="table table-hover">
<thead>
<a href="/media/{{ v.file }}">
@ -21,28 +17,25 @@
<tbody>
{% for v in video_list %}
<tr>
<td><b>V{{v.id}}</b></td>
<td>
<b>V{{ v.id }}</b>
</td>
{% if v.file %}
<td style="text-align:right"><i class="far fa-check-circle" style="color:green"></i></td>
<td style="text-align:right">
<i class="far fa-check-circle" style="color:green"></i>
</td>
{% else %}
<td style="text-align:right"><i class="far fa-times-circle" style="color:red"></i></td>
<td style="text-align:right">
<i class="far fa-times-circle" style="color:red"></i>
</td>
{% endif %}
</tr>
</a>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -1,19 +1,13 @@
{% extends "base.html" %}
{% load static %}
{% block header %}UNUSUAL MEMES V{{video.id}}{% endblock %}
{% block content %}
{% block header %}UNUSUAL MEMES V{{ video.id }}{% endblock %}
{% block content %}
<div class="row mb-3">
<div class="col-12 justify-content-center">
<video width="100%" height="100%" controls autoplay>
<source src="/api/stream/?path=/media//{{ video.file }}" type="video/mp4">
<p>Your browser does not support the video tag.</p>
</video>
</video>
</div>
</div>
{% endblock %}
{% endblock %}

Binary file not shown.