forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the current version, the main page is a portal. We want a mainpage to be a separate entity. Change-Id: I7e6ef9406cfa44ee53a1e2039f08ac25a4ff2fde
- Loading branch information
Showing
51 changed files
with
3,634 additions
and
1,539 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.current-language { | ||
position: absolute; | ||
right: 5px; | ||
font-weight: bold; | ||
font-size: 18px; | ||
margin: 0px 5px 0px 0px; | ||
color: $brand-success; | ||
} |
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
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,3 @@ | ||
{% load staticfiles %} | ||
|
||
<link rel="shortcut icon" href="{% static "favicon.ico" %}"/> |
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,12 +1,24 @@ | ||
{% if LANGUAGES|length > 1 %} | ||
{% load i18n %} | ||
<li class="divider" role="separator"></li> | ||
{% for lang_short, lang_name in LANGUAGES %} | ||
<li> | ||
<a href="#" class="lang-select" lang="{{ lang_short }}"> | ||
<img title="{{ lang_short|language_name_local }}" src="{{ STATIC_URL }}images/flags/{{ lang_short }}.png"/> | ||
{{ lang_short|language_name_local }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
{% load i18n %} | ||
{% get_current_language as LANGUAGE_CODE %} | ||
|
||
<div class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> | ||
<img title="{{ LANGUAGE_CODE|language_name_local }}" src="{{ STATIC_URL }}images/flags/{{ LANGUAGE_CODE }}.png"/> | ||
<span class="caret"></span> | ||
</a> | ||
<ul class="dropdown-menu pull-right"> | ||
{% for lang_short, lang_name in LANGUAGES %} | ||
<li> | ||
<a href="#" class="lang-select" lang="{{ lang_short }}"> | ||
<img title="{{ lang_short|language_name_local }}" src="{{ STATIC_URL }}images/flags/{{ lang_short }}.png"/> | ||
{{ lang_short|language_name_local }} | ||
{% if lang_short == LANGUAGE_CODE %} | ||
<span class="current-language">✓</span> | ||
{% endif %} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% include "ingredients/navbar-logo.html" with always_visible=False %} | ||
|
||
<div class="oioioi-navbar__menu dropdown"> | ||
{% include "ingredients/navbar-menu.html" %} | ||
</div> |
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,3 @@ | ||
<a class="oioioi-navbar__brand {% if always_visible %}oioioi-navbar__brand--always{% endif %}" href="{% url 'index' contest_id=None %}"> | ||
{{ site_name }} | ||
</a> |
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
Binary file not shown.
Oops, something went wrong.