add changeable title in header

This commit is contained in:
2022-01-20 12:30:10 +00:00
parent aed985f549
commit 567836cc67
10 changed files with 47 additions and 29 deletions

View File

@@ -1,5 +1,7 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}FET: Login{% endblock %}
{% block content %} {% block content %}
<!-- Main Content --> <!-- Main Content -->
<main class="container mx-auto w-full px-4 my-8 flex-grow flex flex-col"> <main class="container mx-auto w-full px-4 my-8 flex-grow flex flex-col">

View File

@@ -5,8 +5,8 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FET: Startseite</title> <title>{% block title %}FET: Startseite{% endblock %}</title>
<meta name="author" content="Fachschaft Elektrotechnik (FET)"> <meta name="author" content="Fachschaft Elektrotechnik (FET)">
<meta name="description" content="Die Fachschaft Elektrotechnik besteht aus ET Studierenden, die sich um die Anliegen der Studenten und Studentinnen kümmern."> <meta name="description" content="Die Fachschaft Elektrotechnik besteht aus ET Studierenden, die sich um die Anliegen der Studenten und Studentinnen kümmern.">
@@ -117,37 +117,37 @@
{% block content %} {% block content %}
{% endblock %} {% endblock %}
<footer> <footer>
<ul class="icon-list"> <ul class="icon-list">
<li> <li>
<a href="https://facebook.fet.at/"><i class="fab fa-facebook"></i></a> <a href="https://facebook.fet.at/"><i class="fab fa-facebook"></i></a>
</li> </li>
<li> <li>
<a href="https://instagram.fet.at/"><i class="fab fa-instagram"></i></a> <a href="https://instagram.fet.at/"><i class="fab fa-instagram"></i></a>
</li> </li>
<li> <li>
<a href="https://discord.fet.at/"><i class="fab fa-discord"></i></a> <a href="https://discord.fet.at/"><i class="fab fa-discord"></i></a>
</li> </li>
<li> <li>
<a href="https://telegram.fet.at/"><i class="fab fa-telegram"></i></a> <a href="https://telegram.fet.at/"><i class="fab fa-telegram"></i></a>
</li> </li>
<li> <li>
<a href="mailto:service@fet.at"><i class="fas fa-envelope"></i></a> <a href="mailto:service@fet.at"><i class="fas fa-envelope"></i></a>
</li> </li>
</ul> </ul>
<div class="legal"> <div class="legal">
<a href="{% url 'impressum' %}" class="text-center text-sm sm:text-base">Impressum</a> <a href="{% url 'impressum' %}" class="text-center text-sm sm:text-base">Impressum</a>
</div> </div>
<hr class="legal-divider"> <hr class="legal-divider">
<p class="copyright">© {% now 'Y' %} FET - Alle Rechte vorbehalten.</p> <p class="copyright">© {% now 'Y' %} FET - Alle Rechte vorbehalten.</p>
</footer> </footer>
<div class="super-duper-awesome-signature" x-data="{ counter: 0 }"> <div class="super-duper-awesome-signature" x-data="{ counter: 0 }">
<span :class="counter>=4 && 'text-purple-300'">Handcrafted </span> <span :class="counter>=4 && 'text-purple-300'">Handcrafted </span>
<span :class="counter>=5 && 'text-green-400'">with </span> <span :class="counter>=5 && 'text-green-400'">with </span>
<i class="fa-solid fa-heart" aria-label="love" @click="counter++" :class="counter>=2 ? 'text-proprietary hover:text-proprietary-dark' : 'text-red-600 hover:text-red-700'"></i> <i class="fa-solid fa-heart" aria-label="love" @click="counter++" :class="counter>=2 ? 'text-proprietary hover:text-proprietary-dark' : 'text-red-600 hover:text-red-700'"></i>
<span :class="counter>=6 && 'text-pink-400'"> by</span> <span :class="counter>=6 && 'text-pink-400'"> by</span>
<span class="font-normal" :class="counter>=3 && 'text-yellow-500'"> Matteo Duchscher</span> <span class="font-normal" :class="counter>=3 && 'text-yellow-500'"> Matteo Duchscher</span>
</div> </div>
<script src="{% static 'js/gumshoe@5.1.1.js' %}"></script> <script src="{% static 'js/gumshoe@5.1.1.js' %}"></script>
<script src="{% static 'js/smooth-scroll@16.1.2.js' %}"></script> <script src="{% static 'js/smooth-scroll@16.1.2.js' %}"></script>

View File

@@ -1,5 +1,7 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}FET: Blackboard{% endblock %}
{% block content %} {% block content %}
<!-- Main Content --> <!-- Main Content -->
<main class="container mx-auto w-full px-4 mt-8 flex-1"> <main class="container mx-auto w-full px-4 mt-8 flex-1">

View File

@@ -1,5 +1,7 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}FET: {{ flatpage.title }}{% endblock %}
{% block content %} {% block content %}
<!-- Main Content --> <!-- Main Content -->
<main class="container mx-auto w-full px-4 my-8 flex-1"> <main class="container mx-auto w-full px-4 my-8 flex-1">

View File

@@ -1,5 +1,7 @@
{% extends 'members/index.html' %} {% extends 'members/index.html' %}
{% block title %}FET: {{ active_job_group.name }}{% endblock %}
{% block jobs_content %} {% block jobs_content %}
<div class="db-page-content"> <div class="db-page-content">
<h2>{{ active_job_group.name }}</h2> <h2>{{ active_job_group.name }}</h2>

View File

@@ -1,6 +1,8 @@
{% extends 'members/index.html' %} {% extends 'members/index.html' %}
{% load softhyphen_tags %} {% load softhyphen_tags %}
{% block title %}FET: {{ member.firstname }} {{ member.surname }}{% endblock %}
{% block extraheader %} {% block extraheader %}
<meta content="{{member.image.url}}" property="og:image"> <meta content="{{member.image.url}}" property="og:image">
<meta content="{{ member.firstname }}" property="og:profile:first_name"> <meta content="{{ member.firstname }}" property="og:profile:first_name">

View File

@@ -1,5 +1,7 @@
{% extends 'members/index.html' %} {% extends 'members/index.html' %}
{% block title %}FET: Fachschaft{% endblock %}
{% block members_content %} {% block members_content %}
{% if fs_info %} {% if fs_info %}
<div class="db-page-content"> <div class="db-page-content">

View File

@@ -2,6 +2,8 @@
{% load post_helpers %} {% load post_helpers %}
{% block title %}FET: News{% endblock %}
{% block content %} {% block content %}
<!-- Main Content --> <!-- Main Content -->
<main class="container mx-auto w-full px-4 my-8 flex-1"> <main class="container mx-auto w-full px-4 my-8 flex-1">

View File

@@ -3,6 +3,8 @@
{% load post_helpers %} {% load post_helpers %}
{% load admin_urls %} {% load admin_urls %}
{% block title %}FET: News{% endblock %}
{% block extraheader %} {% block extraheader %}
<meta content="{{ post.imageurl }}" property="og:image"> <meta content="{{ post.imageurl }}" property="og:image">
<meta content="{{ post.title }}" property="og:title"> <meta content="{{ post.title }}" property="og:title">

View File

@@ -1,5 +1,7 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}FET: News{% endblock %}
{% block content %} {% block content %}
<!-- Main Content --> <!-- Main Content -->
<main class="container mx-auto w-full px-4 my-8 flex-1"> <main class="container mx-auto w-full px-4 my-8 flex-1">