refactor: remove header and base
This commit is contained in:
		@@ -1,37 +0,0 @@
 | 
			
		||||
{% load custom_tags %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
{% get_current_language as LANGUAGE_CODE%}
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="{{ LANGUAGE_CODE }}">
 | 
			
		||||
<head>
 | 
			
		||||
    {% block title %}{% endblock %}
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
			
		||||
    <meta name="description" content="{% translate "Farbratten aus dem Tierschutz finden und adoptieren" %}">
 | 
			
		||||
    <!-- Add additional CSS in static file -->
 | 
			
		||||
    {% load static %}
 | 
			
		||||
    <link rel="stylesheet" href="{% static 'fellchensammlung/css/styles.css' %}">
 | 
			
		||||
    <link href="{% static 'fontawesomefree/css/fontawesome.css' %}" rel="stylesheet" type="text/css">
 | 
			
		||||
    <link href="{% static 'fontawesomefree/css/brands.css' %}" rel="stylesheet" type="text/css">
 | 
			
		||||
    <link href="{% static 'fontawesomefree/css/solid.css' %}" rel="stylesheet" type="text/css">
 | 
			
		||||
 | 
			
		||||
    <script src="{% static 'fellchensammlung/js/custom.js' %}"></script>
 | 
			
		||||
 | 
			
		||||
    <link rel="apple-touch-icon" sizes="180x180" href="{% static 'fellchensammlung/favicon/apple-touch-icon.png' %}">
 | 
			
		||||
    <link rel="icon" type="image/png" sizes="32x32" href="{% static 'fellchensammlung/favicon/favicon-32x32.png' %}">
 | 
			
		||||
    <link rel="icon" type="image/png" sizes="16x16" href="{% static 'fellchensammlung/favicon/favicon-16x16.png' %}">
 | 
			
		||||
    {% get_oxitraffic_script_if_enabled %}
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
{% block header %}
 | 
			
		||||
    {% include "fellchensammlung/header.html" %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
<div class="container-fluid">
 | 
			
		||||
    <div class="row">
 | 
			
		||||
        <div class="col-sm-10 content-box">
 | 
			
		||||
            {% block content %}{% endblock %}
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -1,59 +0,0 @@
 | 
			
		||||
{% load static %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
<section class="header">
 | 
			
		||||
    <div>
 | 
			
		||||
        <a href="{% url "index" %}" class="logo">
 | 
			
		||||
            <img src="{% static 'fellchensammlung/img/logo_transparent.png' %}" alt="{% trans 'Notfellchen Logo' %}">
 | 
			
		||||
        </a>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="profile-card">
 | 
			
		||||
        <div id="header-change-language">
 | 
			
		||||
            {% include "fellchensammlung/forms/change_language.html" %}
 | 
			
		||||
        </div>
 | 
			
		||||
        {% if user.is_authenticated %}
 | 
			
		||||
            <div class="btn2 button_darken btn-notification">
 | 
			
		||||
                <a href="{{ user.get_notifications_url }}">
 | 
			
		||||
                    <i class="fa fa-bell" aria-hidden="true"></i>
 | 
			
		||||
                </a>
 | 
			
		||||
                {% if user.get_num_unread_notifications > 0 %}
 | 
			
		||||
                    <span class="button__badge">{{ user.get_num_unread_notifications }}</span>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
            <a class="btn2" href="{% url 'user-me' %}"><i aria-hidden="true" class="fas fa-user"></i></a>
 | 
			
		||||
            <form class="btn2 button_darken" id="header-sign-out" action="{% url 'logout' %}" method="post">
 | 
			
		||||
                {% csrf_token %}
 | 
			
		||||
                <button class="button" type="submit"><i aria-hidden="true" class="fas fa-sign-out"></i></button>
 | 
			
		||||
            </form>
 | 
			
		||||
        {% else %}
 | 
			
		||||
            <a class="btn2" href="{% url "django_registration_register" %}">{% translate "Registrieren" %}</a>
 | 
			
		||||
            <a class="btn2" href="{% url "login" %}"><i class="fa fa-sign-in" aria-label="Login"></i></a>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        <input id="menu-toggle" type="checkbox"/>
 | 
			
		||||
        <label class='menu-button-container' for="menu-toggle">
 | 
			
		||||
            <div class='menu-button'></div>
 | 
			
		||||
        </label>
 | 
			
		||||
 | 
			
		||||
        <nav id="main-menu">
 | 
			
		||||
            <ul class="menu">
 | 
			
		||||
                <li>
 | 
			
		||||
                    <a class="nav-link " href="{% url "search" %}">
 | 
			
		||||
                        <i class="fas fa-search"></i> {% translate 'Suchen' %}
 | 
			
		||||
                    </a>
 | 
			
		||||
                </li>
 | 
			
		||||
                <li><a class="nav-link " href="{% url "add-adoption" %}"><i
 | 
			
		||||
                        class="fas fa-feather"></i> {% translate 'Vermittlung hinzufügen' %}</a></li>
 | 
			
		||||
                <li><a class="nav-link " href="{% url "about" %}"><i
 | 
			
		||||
                        class="fas fa-info"></i> {% translate 'Über uns' %}
 | 
			
		||||
                </a>
 | 
			
		||||
                </li>
 | 
			
		||||
                <li><a class="nav-link " href="{% url "rss" %}"><i
 | 
			
		||||
                        class="fa-solid fa-rss"></i> {% translate 'RSS' %}
 | 
			
		||||
                </a>
 | 
			
		||||
                </li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </nav>
 | 
			
		||||
    </div>
 | 
			
		||||
</section>
 | 
			
		||||
		Reference in New Issue
	
	Block a user