Fix duplicate body tag in HTML

This commit is contained in:
2024-07-08 21:35:42 +02:00
parent 11d9d1022e
commit 585b595ab0
3 changed files with 57 additions and 56 deletions

View File

@ -13,7 +13,10 @@
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"> <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'css/style.css' %}"> <link rel="stylesheet" href="{% static 'css/style.css' %}">
</head> </head>
<body> <body data-bs-spy="scroll"
data-bs-target=".toc"
data-bs-offset="-200"
tabindex="0">
{% include "partials/alerts.html" %} {% include "partials/alerts.html" %}
<article class="container mt-5"> <article class="container mt-5">
{% include "partials/header.html" %} {% include "partials/header.html" %}

View File

@ -1,22 +1,16 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load static %} {% load static %}
{% block content %} {% block content %}
<body data-bs-spy="scroll" <div class="container mt-4">
data-bs-target=".toc" <div class="row">
data-bs-offset="-200" <div class="col-lg-3">{% include "partials/toc.html" %}</div>
tabindex="0"> <div class="col-lg-9">
<div class="container mt-4"> {% include "partials/info_box.html" %}
<div class="row"> {% include "partials/news.html" %}
<div class="col-lg-3">{% include "partials/toc.html" %}</div> {% for game in games %}
<div class="col-lg-9"> {% include "partials/game_card.html" %}
{% include "partials/info_box.html" %} {% endfor %}
{% include "partials/news.html" %}
{% for game in games %}
{% include "partials/game_card.html" %}
{% endfor %}
</div>
</div> </div>
</div> </div>
<script src="{% static 'js/index.js' %}"></script> </div>
</body>
{% endblock content %} {% endblock content %}

View File

@ -1,44 +1,48 @@
<div class="card mb-4 shadow-sm" id="info-box"> {% if webhooks %}
<div class="row g-0"> <div class="card mb-4 shadow-sm" id="info-box">
<div class="col-md-10"> <div class="row g-0">
<div class="card-body"> <div class="col-md-10">
<h2 class="card-title h2">Site news</h2> <div class="card-body">
<div class="mt-auto"> <h2 class="card-title h2">Site news</h2>
{% for webhook in webhooks %} <div class="mt-auto">
<div class="mt-3"> {% for webhook in webhooks %}
<img src="{{ webhook.avatar }}?size=32" <div class="mt-3">
alt="{{ webhook.name }}" <img src="{{ webhook.avatar }}?size=32"
class="rounded-circle" alt="{{ webhook.name }}"
height="32" class="rounded-circle"
width="32"> height="32"
<a href="{{ webhook.url }}" target="_blank">{{ webhook.name }}</a> width="32">
<div class="form-check form-switch"> <a href="{{ webhook.url }}" target="_blank">{{ webhook.name }}</a>
<input class="form-check-input" type="checkbox" id="new-drop-switch-daily"> <div class="form-check form-switch">
<label class="form-check-label" for="new-drop-switch-daily">Daily notification of newly added games to TTVdrops</label> <input class="form-check-input" type="checkbox" id="new-drop-switch-daily">
<label class="form-check-label" for="new-drop-switch-daily">Daily notification of newly added games to TTVdrops</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="new-drop-switch-weekly">
<label class="form-check-label" for="new-drop-switch-weekly">
Weekly notification of newly added games to TTVdrops
</label>
</div>
<br>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="new-org-switch-daily">
<label class="form-check-label" for="new-org-switch-daily">
Daily notification of newly added <abbr title="Organizations are the companies that own the games.">organizations</abbr> to TTVdrops
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="new-org-switch-weekly">
<label class="form-check-label" for="new-org-switch-weekly">
Weekly notification of newly added <abbr title="Organizations are the companies that own the games.">organizations</abbr> to TTVdrops
</label>
</div>
</div> </div>
<div class="form-check form-switch"> {% endfor %}
<input class="form-check-input" type="checkbox" id="new-drop-switch-weekly"> </div>
<label class="form-check-label" for="new-drop-switch-weekly">
Weekly notification of newly added games to TTVdrops
</label>
</div>
<br>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="new-org-switch-daily">
<label class="form-check-label" for="new-org-switch-daily">
Daily notification of newly added <abbr title="Organizations are the companies that own the games.">organizations</abbr> to TTVdrops
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="new-org-switch-weekly">
<label class="form-check-label" for="new-org-switch-weekly">
Weekly notification of newly added <abbr title="Organizations are the companies that own the games.">organizations</abbr> to TTVdrops
</label>
</div>
</div>
{% endfor %}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> {% else %}
<p class="text-muted">No webhooks added yet.</p>
{% endif %}