This repository has been archived by the owner on Aug 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Point frontpage to LAN, add news to navbar, fix navbar overflow * Add alternative LAN schedule link
- Loading branch information
Showing
15 changed files
with
193 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2022-08-03 15:18 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('lan', '0024_auto_20220803_1317'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='lan', | ||
name='schedule_link', | ||
field=models.CharField(blank=True, help_text='URL to an alternative schedule page.', max_length=300, verbose_name='schedule link'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-08-03 13:17+0200\n" | ||
"POT-Creation-Date: 2022-08-03 15:18+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -525,6 +525,12 @@ msgstr "regellenke" | |
msgid "URL to rules which users have to accept to buy tickets." | ||
msgstr "URL til regler som brukere må akseptere for å kjøpe billetter." | ||
|
||
msgid "schedule link" | ||
msgstr "tidsplanslenke" | ||
|
||
msgid "URL to an alternative schedule page." | ||
msgstr "URL til en alternativ tidsplanslenke." | ||
|
||
msgid "upcoming" | ||
msgstr "kommende" | ||
|
||
|
@@ -1655,7 +1661,7 @@ msgid "No raffles for this LAN." | |
msgstr "Ingen trekninger for dette LAN-et." | ||
|
||
msgid "No schedule for this LAN." | ||
msgstr "Ingen timetabell for dette LAN-et." | ||
msgstr "Ingen tidsplan for dette LAN-et." | ||
|
||
msgid "Support" | ||
msgstr "Brukerstøtte" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% load markdown_deux_tags %} | ||
|
||
{% if stream %} | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<div class="stream"> | ||
{% if stream.visible_title %} | ||
<h3 class="stream-title">{{ stream.visible_title }}</h3> | ||
{% endif %} | ||
<div class="embed-responsive embed-responsive-16by9"> | ||
<iframe class="embed-responsive-item" title="Stream" src="{{ stream.link | safe }}" allowfullscreen></iframe> | ||
</div> | ||
{% if stream.description %} | ||
<div class="stream-desc"> | ||
{{ stream.description | markdown }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
{% load i18n %} | ||
{% block navigation %} | ||
<ul id="navbar" class="nav navbar-nav"> | ||
<li class="navbar-item"><a href="{% url 'lan_home' %}">{% trans "LAN" %}</a></li> | ||
<li class="navbar-item"><a href="{% url 'lan_tickets_home' %}">{% trans "Tickets" %}</a></li> | ||
<li class="navbar-item"><a href="{% url 'seatings' %}">{% trans "Seating" %}</a></li> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{% trans "Esports" %}<span class="caret"></span></a> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li><a href="{% url 'competitions' %}">{% trans "Competitions" %}</a></li> | ||
<li><a href="{% url 'teams' %}">{% trans "Teams" %}</a></li> | ||
<li><a href="{% url 'schedule' %}">{% trans "Schedule" %}</a></li> | ||
</ul> | ||
</li> | ||
<li class="navbar-item"><a href="{% url 'sponsors' %}">{% trans "Partners" %}</a></li> | ||
<li class="navbar-item"><a href="{% url 'news_main' %}">{% trans "News" %}</a></li> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{% trans "LAN" %}<span class="caret"></span></a> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li class="navbar-item"><a href="{% url 'lan_tickets_home' %}">{% trans "Tickets" %}</a></li> | ||
<li class="navbar-item"><a href="{% url 'seatings' %}">{% trans "Seating" %}</a></li> | ||
</ul> | ||
</li> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{% trans "Esports" %}<span class="caret"></span></a> | ||
<ul class="dropdown-menu" role="menu"> | ||
<li><a href="{% url 'competitions' %}">{% trans "Competitions" %}</a></li> | ||
<li><a href="{% url 'teams' %}">{% trans "Teams" %}</a></li> | ||
<li><a href="{% url 'schedule' %}">{% trans "Schedule" %}</a></li> | ||
</ul> | ||
</li> | ||
<li class="navbar-item"><a href="{% url 'sponsors' %}">{% trans "Partners" %}</a></li> | ||
</ul> | ||
{% endblock navigation %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load i18n %} | ||
{% load markdown_deux_tags %} | ||
|
||
{% block title %} | ||
{% trans "Home" %} | ||
{% endblock title %} | ||
|
||
{% block content %} | ||
{% if stream %} | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<div class="stream"> | ||
{% if stream.visible_title %} | ||
<h3 class="stream-title">{{ stream.visible_title }}</h3> | ||
{% endif %} | ||
<div class="embed-responsive embed-responsive-16by9"> | ||
<iframe class="embed-responsive-item" title="Stream" src="{{ stream.link | safe }}" allowfullscreen></iframe> | ||
</div> | ||
{% if stream.description %} | ||
<div class="stream-desc"> | ||
{{ stream.description | markdown }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="row"> | ||
<div class="col-md-9"> | ||
{% if lans.count == 1 %} | ||
<h1 class="page-header"><a href="{{ lans.0.get_absolute_url }}">{{ lans.0 }}</a></h1> | ||
{% else %} | ||
<h1 class="page-header">{% trans "LANs" %}</h1> | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
{% if lans.count == 1 %} | ||
{% if lans.0.frontpage_media_link %} | ||
{% with lan=lans.0 %} | ||
{% include "lan/media.html" with media_type=lan.frontpage_media_type media_link=lan.frontpage_media_link frontpage=1 %} | ||
{% endwith %} | ||
{% endif %} | ||
|
||
<div class="row"> | ||
<div class="col-md-6 col-xs-7"> | ||
<p class="lead">{{ lans.0.start_date|date }} – {{ lans.0.end_date|date }}</p> | ||
</div> | ||
<div class="col-md-3 col-xs-5"> | ||
<a class="btn btn-primary pull-right" href="{{ lans.0.get_absolute_url }}">{% trans "Show LAN" %}</a> | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<table class="table table-bordered table-hover click-table"> | ||
<tbody> | ||
{% for lan in lans %} | ||
<tr onclick="document.location='{{ lan.get_absolute_url }}';"> | ||
<td class="col-md-6 underline">{{ lan }}</td> | ||
<td class="col-md-3">{{ lan.start_date|date }} – {{ lan.end_date|date }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="row"> | ||
<div class="col-md-9"> | ||
{% for article in articles.object_list %} | ||
<hr /> | ||
{% include "news/article_card.html" %} | ||
{% empty %} | ||
<div class="alert alert-info">{% trans "No news." %}</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
<div class="row news-pagination-container"> | ||
<div class="col-md-6"> | ||
{% include "news/pagination.html" with news_area='news' %} | ||
</div> | ||
<div class="col-md-3"> | ||
<a class="btn btn-primary pull-right" href="{% url 'archive_main' %}"> | ||
<span class="glyphicon glyphicon-folder-close" aria-hidden="true"></span> | ||
{% trans "News archive" %} | ||
</a> | ||
</div> | ||
</div> | ||
{% endblock content %} |
Oops, something went wrong.