+++ /dev/null
-{% extends "base.html" %}
-{% load i18n %}
-{% load mezzanine_tags keyword_tags festival_tags %}
-
-{% block title %}
-{{ artist.name }}
-{% endblock %}
-
-{% block main %}
-<div class="artist__detail">
- <p>
- {% if artist.photo %}
- <figure class="artist__figure img__align{% if artist.photo_alignment == 'left' %}--left{% elif artist.photo_alignment == 'right' %}--right{% else %}--center{% endif %}">
- <img src="{% if artist.photo_featured %}{{ artist.photo_featured.url }}{% else %}{{ artist.photo.url }}{% endif %}" />
- <figcaption class="artist__figure__copyright">
- {{ artist.photo_credits }}
- </figcaption>
- </figure>
- {% endif %}
- {{ artist.bio|safe }}
- <br style="clear: both;" />
- </p>
-</div>
-
-<hr style="margin-top: 3rem;">
-{% if artist.events.all %}
-<h2 class="section__title">{% trans "Also discover" %}</h2> <br>
-<div class="msry__container">
- <div class="msry__sizer"></div>
- {% for event in artist.events.all|no_parents %}
- {% include 'agenda/includes/event_card.html' %}
- {% endfor %}
- {% for video in artist.videos.all %}
- {% include 'festival/inc/video_card.html' %}
- {% endfor %}
- {% with artist.events.all|unique_posts as posts %}
- {% for post in posts %}
- {% include 'blog/includes/post_card.html' %}
- {% endfor %}
- {% endwith %}
-</div>
-{% endif %}
-{% endblock %}
+++ /dev/null
-{% extends "base.html" %}
-{% load i18n %}
-{% load mezzanine_tags keyword_tags %}
-
-{% block title %}
- {% trans "Artists" %}
-{% endblock %}
-
-{% block main %}
-<div class="artist__list msry__container">
- <div class="msry__sizer"></div>
- {% for artist in object_list %}
- {% include "festival/inc/artist_card.html" %}
- {% endfor %}
-</div>
-{% endblock %}
+++ /dev/null
-{% load i18n pages_tags mezzanine_tags %}
-
-<div class="artist__item {% if not on_home %}msry__item {% endif %}">
- <div class="artist__item__inner">
- <a href="{% url 'festival-artist-detail' artist.slug %}" class="artist__item__inner">
- <figure class="artist__item__img">
- <img src="{{ MEDIA_URL }}{% thumbnail artist.featured_image 500 0 %}" alt="Portrait {{ artist.name }}">
- </figure>
- <h3 class="artist__item__name">
- <span>
- {{ artist.name }}
- </span>
- </h3>
- </a>
- </div>
-</div>
+++ /dev/null
-{% load staticfiles %}
-
-<div class="audio__block">
- {% for audio in playlist.audios.all %}
- {% if forloop.first %}
- <div class="audio__player">
- <audio id="audio" preload="auto" tabindex="0" controls="">
- <source id="primarysrc" src="{{ audio.closed_source_url }}">
- <source id="secondarysrc" src="{{ audio.open_source_url }}">
- </audio>
- <span class="audio__title">
- {{ audio.title }}
- </span>
- </div>
- <ul id="playlist" class="audio__playlist">
- {% endif %}
- <li>
- <a href="{{ audio.closed_source_url }}" class="audio__playlist__item" data-altsrc="{{ audio.open_source_url }}">
- {{ audio.title }}
- </a>
- </li>
- {% endfor %}
- {% if forloop.first %}
- </ul>
- {% endif %}
-</div>
+++ /dev/null
-{% load i18n %}
-
-<div class="video__card {% if not on_home %}msry__item {% endif %}">
- <div class="video__card__thumbnail">
- <img src="{{ video.poster_url }}" alt="">
- </div>
- <div class="video__card__info">
- <h3 class="video__card__name">{{ video.title }}</h3>
- </div>
- <a href="{% url 'festival-video-detail' video.slug %}" class="video__card__link">{% trans "Play the video" %}</a>
-</div>
+++ /dev/null
-{% extends "base.html" %}
-{% load i18n %}
-{% load mezzanine_tags keyword_tags %}
-
-{% block title %}
-{{ video.title }}
-{% endblock %}
-
-{% block main %}
-
-<div class="video-html">
- {{ video.content|safe }}
-</div>
-
-<div class="embed-responsive">
- <video width="100%" poster="{{ video.poster_url }}" controls data-title="{{ video.title }}" preload="none">
- <source src="{{ video.open_source_url }}" type="{{ video.open_source_mime_type }}" />
- <source src="{{ video.closed_source_url }}" type="{{ video.closed_source_mime_type }}" />
- </video>
-</div>
-
-{% with video as object %}
- {% include "includes/share_buttons.html" %}
-{% endwith %}
-
-{% if video.event %}
-<div class="video-event">
- <h2 class="section__title">{% trans 'Also discover' %}</h2>
- <div class="msry__container">
- <div class="msry__sizer"></div>
- {% with video.event as event %}
- {% include 'agenda/includes/event_card.html' %}
- {% for artist in video.artists.all %}
- {% include "festival/inc/artist_card.html" %}
- {% endfor %}
- {% for v in event.videos.all %}
- {% if v != video %}
- {% with v as video %}
- {% include 'festival/inc/video_card.html' %}
- {% endwith %}
- {% endif %}
- {% endfor %}
- {% for post in event.blog_posts.all %}
- {% include 'blog/includes/post_card.html' %}
- {% endfor %}
- {% endwith %}
-
-</div>
-</div>
-{% endif %}
-
-{% endblock %}
+++ /dev/null
-{% extends "base.html" %}
-{% load i18n %}
-{% load mezzanine_tags keyword_tags festival_tags %}
-
-{% block title %}
- {% trans "Videos" %}
-{% endblock %}
-
-{% block main %}
-
-{% if categories %}
-<ul class="list-inline tag-cloud">
-{% for cat in categories %}
- <li>
- <a href="{% url "festival-video-list-category" cat.slug %}" {% if category == cat %}class="is-active"{% endif %}>{{ cat }}</a> ({{ cat.count }})
- </li>
-{% endfor %}
-</ul>
-<br/>
-{% endif %}
-
-<div class="video__list msry__container">
- <div class="msry__sizer"></div>
- {% for video in object_list %}
- {% if video.status == 2 %}
- {% include 'festival/inc/video_card.html' %}
- {% endif %}
- {% endfor %}
-</div>
-{% endblock %}
--- /dev/null
+from django.contrib import admin
+
+# Register your models here.
--- /dev/null
+from __future__ import unicode_literals
+
+from django.apps import AppConfig
+
+
+class ProjectConfig(AppConfig):
+ name = 'project'
--- /dev/null
+from __future__ import unicode_literals
+
+from django.db import models
+
+# Create your models here.
--- /dev/null
+from django.test import TestCase
+
+# Create your tests here.
--- /dev/null
+from django.shortcuts import render
+
+# Create your views here.
# that doesn't appear in this setting, all pages will appear in it.
PAGE_MENU_TEMPLATES = (
- (1, _("Top navigation bar"), "pages/menus/dropdown.html"),
- # (2, _("Left-hand tree"), "pages/menus/tree.html"),
- (2, _("Footer"), "pages/menus/footer.html"),
+ (1, _("Top header"), "pages/menus/header.html"),
+ (2, _("Top navigation bar"), "pages/menus/dropdown.html"),
+ (3, _("Footer"), "pages/menus/footer.html"),
)
# A sequence of fields that will be injected into Mezzanine's (or any
--- /dev/null
+{% extends "base.html" %}
+{% load i18n %}
+{% load mezzanine_tags keyword_tags festival_tags %}
+
+{% block title %}
+{{ artist.name }}
+{% endblock %}
+
+{% block main %}
+<div class="artist__detail">
+ <p>
+ {% if artist.photo %}
+ <figure class="artist__figure img__align{% if artist.photo_alignment == 'left' %}--left{% elif artist.photo_alignment == 'right' %}--right{% else %}--center{% endif %}">
+ <img src="{% if artist.photo_featured %}{{ artist.photo_featured.url }}{% else %}{{ artist.photo.url }}{% endif %}" />
+ <figcaption class="artist__figure__copyright">
+ {{ artist.photo_credits }}
+ </figcaption>
+ </figure>
+ {% endif %}
+ {{ artist.bio|safe }}
+ <br style="clear: both;" />
+ </p>
+</div>
+
+<hr style="margin-top: 3rem;">
+{% if artist.events.all %}
+<h2 class="section__title">{% trans "Also discover" %}</h2> <br>
+<div class="msry__container">
+ <div class="msry__sizer"></div>
+ {% for event in artist.events.all|no_parents %}
+ {% include 'agenda/includes/event_card.html' %}
+ {% endfor %}
+ {% for video in artist.videos.all %}
+ {% include 'festival/inc/video_card.html' %}
+ {% endfor %}
+ {% with artist.events.all|unique_posts as posts %}
+ {% for post in posts %}
+ {% include 'blog/includes/post_card.html' %}
+ {% endfor %}
+ {% endwith %}
+</div>
+{% endif %}
+{% endblock %}
--- /dev/null
+{% extends "base.html" %}
+{% load i18n %}
+{% load mezzanine_tags keyword_tags %}
+
+{% block title %}
+ {% trans "Artists" %}
+{% endblock %}
+
+{% block main %}
+<div class="artist__list msry__container">
+ <div class="msry__sizer"></div>
+ {% for artist in object_list %}
+ {% include "festival/inc/artist_card.html" %}
+ {% endfor %}
+</div>
+{% endblock %}
--- /dev/null
+{% load i18n pages_tags mezzanine_tags %}
+
+<div class="artist__item {% if not on_home %}msry__item {% endif %}">
+ <div class="artist__item__inner">
+ <a href="{% url 'festival-artist-detail' artist.slug %}" class="artist__item__inner">
+ <figure class="artist__item__img">
+ <img src="{{ MEDIA_URL }}{% thumbnail artist.featured_image 500 0 %}" alt="Portrait {{ artist.name }}">
+ </figure>
+ <h3 class="artist__item__name">
+ <span>
+ {{ artist.name }}
+ </span>
+ </h3>
+ </a>
+ </div>
+</div>
--- /dev/null
+{% load staticfiles %}
+
+<div class="audio__block">
+ {% for audio in playlist.audios.all %}
+ {% if forloop.first %}
+ <div class="audio__player">
+ <audio id="audio" preload="auto" tabindex="0" controls="">
+ <source id="primarysrc" src="{{ audio.closed_source_url }}">
+ <source id="secondarysrc" src="{{ audio.open_source_url }}">
+ </audio>
+ <span class="audio__title">
+ {{ audio.title }}
+ </span>
+ </div>
+ <ul id="playlist" class="audio__playlist">
+ {% endif %}
+ <li>
+ <a href="{{ audio.closed_source_url }}" class="audio__playlist__item" data-altsrc="{{ audio.open_source_url }}">
+ {{ audio.title }}
+ </a>
+ </li>
+ {% endfor %}
+ {% if forloop.first %}
+ </ul>
+ {% endif %}
+</div>
--- /dev/null
+{% load i18n %}
+
+<div class="video__card {% if not on_home %}msry__item {% endif %}">
+ <div class="video__card__thumbnail">
+ <img src="{{ video.poster_url }}" alt="">
+ </div>
+ <div class="video__card__info">
+ <h3 class="video__card__name">{{ video.title }}</h3>
+ </div>
+ <a href="{% url 'festival-video-detail' video.slug %}" class="video__card__link">{% trans "Play the video" %}</a>
+</div>
--- /dev/null
+{% extends "base.html" %}
+{% load i18n %}
+{% load mezzanine_tags keyword_tags %}
+
+{% block title %}
+{{ video.title }}
+{% endblock %}
+
+{% block main %}
+
+<div class="video-html">
+ {{ video.content|safe }}
+</div>
+
+<div class="embed-responsive">
+ <video width="100%" poster="{{ video.poster_url }}" controls data-title="{{ video.title }}" preload="none">
+ <source src="{{ video.open_source_url }}" type="{{ video.open_source_mime_type }}" />
+ <source src="{{ video.closed_source_url }}" type="{{ video.closed_source_mime_type }}" />
+ </video>
+</div>
+
+{% with video as object %}
+ {% include "includes/share_buttons.html" %}
+{% endwith %}
+
+{% if video.event %}
+<div class="video-event">
+ <h2 class="section__title">{% trans 'Also discover' %}</h2>
+ <div class="msry__container">
+ <div class="msry__sizer"></div>
+ {% with video.event as event %}
+ {% include 'agenda/includes/event_card.html' %}
+ {% for artist in video.artists.all %}
+ {% include "festival/inc/artist_card.html" %}
+ {% endfor %}
+ {% for v in event.videos.all %}
+ {% if v != video %}
+ {% with v as video %}
+ {% include 'festival/inc/video_card.html' %}
+ {% endwith %}
+ {% endif %}
+ {% endfor %}
+ {% for post in event.blog_posts.all %}
+ {% include 'blog/includes/post_card.html' %}
+ {% endfor %}
+ {% endwith %}
+
+</div>
+</div>
+{% endif %}
+
+{% endblock %}
--- /dev/null
+{% extends "base.html" %}
+{% load i18n %}
+{% load mezzanine_tags keyword_tags festival_tags %}
+
+{% block title %}
+ {% trans "Videos" %}
+{% endblock %}
+
+{% block main %}
+
+{% if categories %}
+<ul class="list-inline tag-cloud">
+{% for cat in categories %}
+ <li>
+ <a href="{% url "festival-video-list-category" cat.slug %}" {% if category == cat %}class="is-active"{% endif %}>{{ cat }}</a> ({{ cat.count }})
+ </li>
+{% endfor %}
+</ul>
+<br/>
+{% endif %}
+
+<div class="video__list msry__container">
+ <div class="msry__sizer"></div>
+ {% for video in object_list %}
+ {% if video.status == 2 %}
+ {% include 'festival/inc/video_card.html' %}
+ {% endif %}
+ {% endfor %}
+</div>
+{% endblock %}