From: Guillaume Pellerin Date: Thu, 23 Feb 2017 16:46:04 +0000 (+0100) Subject: Get first host_theme for vertigo.starts.eu, adapt front builder to new paths X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c7ef8386bde866ace409239125300357d61f9dbc;p=mezzo.git Get first host_theme for vertigo.starts.eu, adapt front builder to new paths --- diff --git a/.gitignore b/.gitignore index 0479c274..3f3530c6 100644 --- a/.gitignore +++ b/.gitignore @@ -45,10 +45,10 @@ bower_components node_modules .sass-cache .bundle -app/static/js -app/static/css -app/static/img -app/static/vendors +app/themes/base/static/js +app/themes/base/static/css +app/themes/base/static/img +app/themes/base/static/vendors ### SublimeText ### ################### diff --git a/app/organization/pages/views.py b/app/organization/pages/views.py index 88c47645..d29cc9d7 100644 --- a/app/organization/pages/views.py +++ b/app/organization/pages/views.py @@ -35,6 +35,7 @@ from organization.pages.models import Home from organization.agenda.models import Event from organization.media.models import Playlist, Media from organization.network.models import Person +from django.shortcuts import redirect class HomeView(SlugMixin, ListView): @@ -55,6 +56,13 @@ class HomeView(SlugMixin, ListView): context['briefs'] = self.briefs return context + def dispatch(self, request, *args, **kwargs): + if not self.get_queryset(): + page = CustomPage.objects.first() + return redirect(reverse_lazy('page', kwargs={'slug': page.slug})) + else: + return super(HomeView, self).dispatch(request, *args, **kwargs) + class DynamicContentHomeSliderView(Select2QuerySetSequenceView): diff --git a/app/settings.py b/app/settings.py index 5ad01844..47d3d68a 100644 --- a/app/settings.py +++ b/app/settings.py @@ -138,7 +138,7 @@ LOCALE_PATHS = ['locale',] SESSION_EXPIRE_AT_BROWSER_CLOSE = False SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies" -SITE_ID = 3 +SITE_ID = 2 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. @@ -305,9 +305,9 @@ if not DEBUG: TEMPLATES[0]['APP_DIRS'] = False HOST_THEMES = [ - ('starts.eu', 'starts_eu'), - ('vertigo.starts.eu', 'vertigo_starts_eu'), - ('vertigo.ircam.fr', 'base'), + ('starts.eu', 'themes.starts_eu'), + ('vertigo.starts.eu', 'themes.vertigo_starts_eu'), + ('vertigo.ircam.fr', 'themes.base'), ] # List of middleware classes to use. Order is important; in the request phase, diff --git a/app/themes/__init__.py b/app/themes/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/app/themes/starts_eu/__init__.py b/app/themes/starts_eu/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/app/themes/starts_eu/templates/index.html b/app/themes/starts_eu/templates/index.html new file mode 100644 index 00000000..448dd29c --- /dev/null +++ b/app/themes/starts_eu/templates/index.html @@ -0,0 +1,26 @@ +{% extends "base.html" %} +{% load i18n pages_tags mezzanine_tags %} + +{% block meta_title %} + {% trans "Home" %} +{% endblock %} + +{% spaceless %} +{% block body_class %} + home +{% endblock %} +{% endspaceless %} + +{% block main %} + + {% include "home/inc/hero.html" %} + + {% include "home/inc/slider.html" %} + + {% include "home/inc/bio.html" %} + +
+ {% include "home/inc/body.html" %} +
+ +{% endblock %} diff --git a/app/themes/starts_eu/templates/start_eu/base.html b/app/themes/starts_eu/templates/start_eu/base.html new file mode 100644 index 00000000..701b6a98 --- /dev/null +++ b/app/themes/starts_eu/templates/start_eu/base.html @@ -0,0 +1,112 @@ + + +{% load i18n pages_tags mezzanine_tags staticfiles keyword_tags event_tags organization_tags %} +{% get_language_info_list for LANGUAGES as languages %} + + + + + + + {% spaceless %}{% block meta_title %}{% endblock %}{% endspaceless %}{% if settings.SITE_TITLE %} | {{ settings.SITE_TITLE }}{% endif %} + + + + + + + + + + + + + + + + {% compress css %} + + + + + + + {% endcompress %} + + {% block extra_head %}{% endblock %} + + + + {% spaceless %} + + {% block sidebar %} +
+ {% include "includes/sidebar.html" %} +
+ {% endblock %} + + {% block site_overlay %} +
+
+ {% endblock %} + + {% block header %} +
+
+
+
+ +
+
+
+
+ {% endblock %} + + {% block container %} +
+
+ {% block content_header %}{% endblock %} + {% block main %}{% endblock %} + {% block content_footer %}{% endblock %} +
+ + {% block social %} + {% include "includes/social.html" %} + {% endblock %} + + {% block footer %} +
+ {% include "includes/footer.html" %} +
+ {% endblock %} +
+ {% endblock %} + + {% block overlay_container %} +
+ + +
+
+
+
+
+ +
+
+
+
+ {% endblock %} + + {% search_form %} + + {% block footer_scripts %} + {% include "includes/footer_scripts.html" %} + {% endblock %} + + {% endspaceless %} + + + diff --git a/app/themes/vertigo_starts_eu/__init__.py b/app/themes/vertigo_starts_eu/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/app/themes/vertigo_starts_eu/templates/accounts/account_form.html b/app/themes/vertigo_starts_eu/templates/accounts/account_form.html new file mode 100644 index 00000000..6df7f222 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/account_form.html @@ -0,0 +1,25 @@ +{% extends "vertigo_starts_eu/pages/page.html" %} +{% load i18n mezzanine_tags %} + +{% block meta_title %} + {% trans "Login" %} +{% endblock %} + +{% block page_title %} +

{% trans "Login" %}

+{% endblock %} + +{% block page_content %} +{% errors_for form %} +
+
+ {{ title }} + {% fields_for form %} +
+ {% block account_form_actions %} + + {% endblock %} +
+
+
+{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/accounts/account_login.html b/app/themes/vertigo_starts_eu/templates/accounts/account_login.html new file mode 100644 index 00000000..70a79c0b --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/account_login.html @@ -0,0 +1,28 @@ +{% extends "accounts/account_form.html" %} +{% load i18n mezzanine_tags %} + +{% block meta_title %} + {% trans "Page not found" %} +{% endblock %} + +{% block page_class %} + custompage +{% endblock %} + +{% block page_title %} +

{% trans "Login" %}

+{% endblock %} + +{% block page_content %} +{% if request.user.is_authenticated %} +

{% trans "You're already logged in. If you'd like to log in as a different user, you'll need to log out first." %}

+{% else %} + {{ block.super }} + {% url "signup" as signup_url %} + {% url "mezzanine_password_reset" as password_reset_url %} + {% url "profile_update" as profile_update_url %} + {% block message %} + {% blocktrans %}

You can also reset your password if you've forgotten it.

{% endblocktrans %}

+ {% endblock %} +{% endif %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/accounts/account_password_reset.html b/app/themes/vertigo_starts_eu/templates/accounts/account_password_reset.html new file mode 100644 index 00000000..d9c35a63 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/account_password_reset.html @@ -0,0 +1,10 @@ +{% extends "accounts/account_login.html" %} +{% load i18n %} + +{% block page_content %} +{{ block.super }} +{% endblock %} + +{% block message %} +

{% trans "Enter your username or email address and you'll receive an email with a link you need to click, in order to log in and change your password." %}

+{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/accounts/account_profile.html b/app/themes/vertigo_starts_eu/templates/accounts/account_profile.html new file mode 100644 index 00000000..b97d15f8 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/account_profile.html @@ -0,0 +1,29 @@ +{% extends "vertigo_starts_eu/pages/page.html" %} +{% load i18n mezzanine_tags accounts_tags %} + +{% block meta_title %}{{ profile_user|username_or:"get_full_name" }}{% endblock %} +{% block title %}{{ profile_user|username_or:"get_full_name" }}{% endblock %} +{% block body_id %}account{% endblock %} + +{% block breadcrumb_menu %} +{{ block.super }} +
  • {{ profile_user|username_or:"get_full_name" }}
  • +{% endblock %} + +{% block main %} +
    +
    + + {% if profile_user == request.user %} +
    {% trans "Update profile" %} + {% endif %} +
    +
    +

    {{ profile_user.get_full_name }}

    + {% for field, value in profile_user|profile_fields %} +

    {{ field }}

    +

    {{ value|linebreaksbr }}

    + {% endfor %} +
    +
    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/accounts/account_profile_update.html b/app/themes/vertigo_starts_eu/templates/accounts/account_profile_update.html new file mode 100644 index 00000000..8a7dcbe4 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/account_profile_update.html @@ -0,0 +1 @@ +{% extends "accounts/account_form.html" %} diff --git a/app/themes/vertigo_starts_eu/templates/accounts/account_signup.html b/app/themes/vertigo_starts_eu/templates/accounts/account_signup.html new file mode 100644 index 00000000..d135deb9 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/account_signup.html @@ -0,0 +1,17 @@ +{% extends "accounts/account_form.html" %} +{% load i18n %} + +{% block main %} + +{% if request.user.is_authenticated %} +

    {% trans "You're already logged in. If you'd like to create a new account, you'll need to log out first." %}

    +{% else %} + {{ block.super }} + {% if settings.ACCOUNTS_APPROVAL_REQUIRED %} +

    {% trans "After signing up, your account will be reviewed for approval. You'll receive an email when your account is activated." %}

    + {% elif settings.ACCOUNTS_VERIFICATION_REQUIRED %} +

    {% trans "After signing up, you'll receive an email with a link you need to click, in order to activate your account." %}

    + {% endif %} +{% endif %} + +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/accounts/includes/user_panel.html b/app/themes/vertigo_starts_eu/templates/accounts/includes/user_panel.html new file mode 100644 index 00000000..f26b08fd --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/includes/user_panel.html @@ -0,0 +1,37 @@ +{% load i18n mezzanine_tags accounts_tags %} + +{% if request.user.is_authenticated %} +
    + {% trans "Logged in as: " %} + {% url "profile" request.user.username as profile_url %} + {% if profile_url %} + {{ request.user|username_or:"email" }} +

    + + + {% trans "Update profile" %} + + {% else %} + {{ request.user|username_or:"email" }} +

    + {% endif %} + + + {% trans "Log out" %} + +
    +{% else %} +
    + +
    +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/accounts/includes/user_panel_nav.html b/app/themes/vertigo_starts_eu/templates/accounts/includes/user_panel_nav.html new file mode 100644 index 00000000..ffc02e73 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/accounts/includes/user_panel_nav.html @@ -0,0 +1,19 @@ +{% load i18n mezzanine_tags accounts_tags %} + + + diff --git a/app/themes/vertigo_starts_eu/templates/admin/base_site.html b/app/themes/vertigo_starts_eu/templates/admin/base_site.html new file mode 100644 index 00000000..2f03ac27 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/admin/base_site.html @@ -0,0 +1,76 @@ +{% extends "admin/vertigo_starts_eu/base.html" %} +{% load mezzanine_tags i18n staticfiles %} + +{% block title %}{{ title }} | Mezzanine{% endblock %} + +{% block extrahead %} + + + + +{% if not settings.GRAPPELLI_INSTALLED %} + +{% endif %} + + +{% endblock %} + +{% block rtl_styles %} +{{ block.super }} + +{% endblock %} + +{% block before_content %} +{% if user.is_staff and not is_popup and not request.GET.pop %} +{% admin_dropdown_menu %} +{% endif %} +{% endblock %} + +{% block footer %} +{% if form.this_is_the_login_form %} + +{% else %} + {% if user.is_staff %} + {% if not is_popup and not request.GET.pop %} + + + + + {% endif %} + + {% if settings.GRAPPELLI_INSTALLED %} + + {% endif %} + {% endif %} +{% endif %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/admin/includes/app_list.html b/app/themes/vertigo_starts_eu/templates/admin/includes/app_list.html new file mode 100644 index 00000000..7d20d3db --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/admin/includes/app_list.html @@ -0,0 +1,37 @@ +{% load i18n %} + +{% if app_list %} +
    + {% for app in dashboard_app_list %} +
    + + + {% for model in app.models %} + + {% if model.perms.change or model.perms.custom %} + + {% else %} + + {% endif %} + + {% if model.perms.add %} + + {% else %} + + {% endif %} + + {% if model.perms.change %} + + {% else %} + + {% endif %} + + {% endfor %} +
    {% trans app.name %}
    {{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
    +
    + {% endfor %} +
    +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/admin/includes/content_typed_change_list.html b/app/themes/vertigo_starts_eu/templates/admin/includes/content_typed_change_list.html new file mode 100644 index 00000000..d78a185e --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/admin/includes/content_typed_change_list.html @@ -0,0 +1,32 @@ +{% load pages_tags i18n %} + + + +
    + +
    diff --git a/app/themes/vertigo_starts_eu/templates/admin/includes/dropdown_menu.html b/app/themes/vertigo_starts_eu/templates/admin/includes/dropdown_menu.html new file mode 100644 index 00000000..1d3153c6 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/admin/includes/dropdown_menu.html @@ -0,0 +1,45 @@ +{% load i18n mezzanine_tags %} +
    + +
    +
    diff --git a/app/themes/vertigo_starts_eu/templates/admin/includes/recent_actions.html b/app/themes/vertigo_starts_eu/templates/admin/includes/recent_actions.html new file mode 100644 index 00000000..c075b910 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/admin/includes/recent_actions.html @@ -0,0 +1,18 @@ +{% load i18n %} + +
    +

    {% trans 'Recent Actions' %}

    +

    {% trans 'My Actions' %}

    + {% load log %} + {% get_admin_log 10 as admin_log for_user user %} + {% if not admin_log %} +

    {% trans 'None available' %}

    + {% else %} + + {% endif %} +
    + diff --git a/app/themes/vertigo_starts_eu/templates/admin/index.html b/app/themes/vertigo_starts_eu/templates/admin/index.html new file mode 100644 index 00000000..22d2ca47 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/admin/index.html @@ -0,0 +1,26 @@ +{% extends "admin/base_site.html" %} + +{% load i18n mezzanine_tags staticfiles %} + +{% block extrahead %} +{{ block.super }} + + + +{% endblock %} + +{% block coltype %}colMS{% endblock %} +{% block bodyclass %}dashboard{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content_title %}

    {% trans "Dashboard" %}

    {% endblock %} + +{% block content %}
    {% dashboard_column 0 %}
    {% endblock %} + +{% block sidebar %} + + {% block extendedsidebar %} + + {% endblock %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/admin/login.html b/app/themes/vertigo_starts_eu/templates/admin/login.html new file mode 100644 index 00000000..d9a670ed --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/admin/login.html @@ -0,0 +1,71 @@ +{% extends "admin/base_site.html" %} +{% load i18n staticfiles %} + +{% block extrahead %} + +{{ block.super }} + + + +{% endblock %} + +{% block bodyclass %}login{% endblock %} +{% block content_title %}{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block content %} + +{% if form.non_field_errors %} +{% for error in form.non_field_errors %} +

    {{ error }}

    +{% endfor %} +{% endif %} +{% if no_site_permission %} +

    {% trans "You don't have permission to access the admin for this site." %}

    +{% endif %} + +
    + {% csrf_token %} +
    +
    + + +
    +
    + + + +
    + {% if settings.USE_L10N and LANGUAGES|length > 1 %} + {% get_language_info_list for LANGUAGES as languages %} +
    + + +
    + {% endif %} +
    + + + + + +
    +
    +
    + +
    +

    + {% trans "Forgot password?" %} +

    +
    + +{% endblock %} + diff --git a/app/themes/vertigo_starts_eu/templates/agenda/confirmation.html b/app/themes/vertigo_starts_eu/templates/agenda/confirmation.html new file mode 100644 index 00000000..21b35c76 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/confirmation.html @@ -0,0 +1,17 @@ +{% extends "vertigo_starts_eu/pages/page.html" %} +{% load i18n mezzanine_tags keyword_tags pages_tags organization_tags %} + +{% block meta_title %}{% trans "Confirmation" %}{% endblock %} + + +{% block page_class %} + Confirmation +{% endblock %} + +{% block page_title %} +

    {% trans "Confirmation" %}

    +{% endblock %} + +{% block page_content %} + +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event/includes/event_card.html b/app/themes/vertigo_starts_eu/templates/agenda/event/includes/event_card.html new file mode 100644 index 00000000..a948df61 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event/includes/event_card.html @@ -0,0 +1,74 @@ +{% extends "core/inc/generic_card.html" %} +{% load i18n pages_tags mezzanine_tags media_tags organization_tags %} + +{% block metatitle %} + {{ object.title }} +{% endblock %} + +{% block title %} + {{ object.title }} +{% endblock %} + +{% block url %} + {{ object.get_absolute_url }} +{% endblock %} + +{% block image %} +
    + {% with object.images.all|get_type:'card' as images %} + {% if images %} +
    + +
    + {% else %} +
    + {% if object.departments.first %} + {% with object.departments.first as department %} +
    + {% endwith %} + {% else %} +
    + {% endif %} +
    + {% endif %} + {% endwith %} +
    +{% endblock %} + +{% block tags %} +
    + {% if object.departments.first %} + {% with object.departments.first as department %} + {{ department.department.name }} + {% endwith %} + {% endif %} + {% if object.category %} + {{ object.category|truncatechars:15 }} + {% endif %} +
    +{% endblock %} + +{% block content %} + {{ object.description|richtext_filters|safe|truncatechars_html:200 }} +{% endblock %} + +{% block subtitle %} + + {% include 'agenda/includes/event_date_card.html' %} + + {% if object.location %} +
    {{ object.location }} + {% endif %} +{% endblock %} + +{% block btn %} + {% if object.prices.all.0|floatformat != '0' and object.prices.all|length > 0 %} + {% for price in object.prices.all %} + {% if forloop.first %} +
    + {% trans "Reserve" %} +
    + {% endif %} + {% endfor %} + {% endif %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event_base.html b/app/themes/vertigo_starts_eu/templates/agenda/event_base.html new file mode 100644 index 00000000..7aa1a0d0 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event_base.html @@ -0,0 +1,160 @@ +{% extends "vertigo_starts_eu/pages/page.html" %} +{% load i18n mezzanine_tags keyword_tags organization_tags pages_tags %} + +{% block main %} + + {% block hero %} + {% endblock %} + +
    +
    + +
    + +
    + {% block page_title %} + {{ page.title }} + {% endblock %} +
    + +
    + +
    + +
    + +
    + {% block page_sidebar %} + {% endblock %} +
    + +
    + +
    + {% block page_content %} + {{ page.content }} + {% endblock %} + {% block page_link %} + {% with object.links.all as links %} + {% if links %} + {% include 'core/inc/link.html' %} + {% endif %} + {% endwith %} + {% endblock %} + {% block page_file %} + {% with object.files.all as files %} + {% if files %} + {% include 'core/inc/files.html' %} + {% endif %} + {% endwith %} + {% endblock %} + {% block page_audio %} + {% for related in object.playlists.all %} + {% with related.playlist as playlist %} + {% if playlist.type == 'audio' %} + {% include 'media/inc/playlist_audio_detail.html' %} + {% endif %} + {% endwith %} + {% endfor %} + {% endblock %} +
    + +
    + +
    + + {% block page_slider %} + {% with object.images.all|get_type:'page_slider' as slider_images %} + {% if slider_images %} + {% include 'core/inc/slider.html' %} + {% endif %} + {% endwith %} + {% endblock %} + + {% block page_video %} + {% for related in object.playlists.all %} + {% with related.playlist as playlist %} + {% if playlist.type == 'video' %} + {% include 'media/inc/playlist_video_slider.html' %} + {% endif %} + {% endwith %} + {% endfor %} + {% endblock %} + +
    + + {% block page_sub_content %} + {% with object.blocks.all as blocks %} + {% include "core/inc/block.html" %} + {% endwith %} + {% endblock %} + + {% block page_person_list %} + {% endblock %} + + {% block page_demo %} + {% endblock %} + + {% block page_blog %} + {% endblock %} + + {% block related_project %} + {% endblock %} + + {% block products %} + {% if page.product_lists.all|length > 0 %} + {% for page_product_list in page.product_lists.all %} + {% with page_product_list.list as list %} + {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %} + {% include template %} + {% endwith %} + {% endwith %} + {% endfor %} + {% endif %} + {% endblock %} + + {% block page_sub_content_2 %} + {% endblock %} + + {% block page_person_list_team %} + {% endblock %} + + {% block page_sub_content_3 %} + {% endblock %} + + {% block logo %} + {% with page.images.all|get_type:'logo' as images %} + {% if images %} +
    +
    +
    +
    +
    +
      + {% include 'core/inc/logo.html' %} +
    +
    +
    +
    +
    +
    + {% endif %} + {% endwith %} + {% endblock %} + +
    + +
    + +
    + + {% block page_related_content %} + {% with dynamic_content=page.dynamic_content_pages.all|filter_content object=page %} + {% include "core/inc/related_content.html" %} + {% endwith %} + {% endblock %} + +
    + + +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event_booking.html b/app/themes/vertigo_starts_eu/templates/agenda/event_booking.html new file mode 100644 index 00000000..cfd4073f --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event_booking.html @@ -0,0 +1,6 @@ +{% extends "agenda/event_detail.html" %} +{% load mezzanine_tags comment_tags keyword_tags rating_tags i18n future disqus_tags event_tags organization_tags %} + +{% block event_detail_content %} + +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event_detail.html b/app/themes/vertigo_starts_eu/templates/agenda/event_detail.html new file mode 100644 index 00000000..7ff42c10 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event_detail.html @@ -0,0 +1,152 @@ +{% extends "agenda/event_vertigo_starts_eu/base.html" %} +{% load mezzanine_tags comment_tags keyword_tags rating_tags i18n future disqus_tags event_tags organization_tags pages_tags %} + +{% block meta_title %}{{ event.meta_title }}{% endblock %} + +{% block meta_keywords %}{% metablock %} +{% keywords_for event as tags %} +{% for tag in tags %} + {% if not forloop.first %}, {% endif %} + {{ tag }} +{% endfor %} +{% endmetablock %}{% endblock %} + +{% block meta_description %}{% metablock %} + {{ event.description }} +{% endmetablock %}{% endblock %} + +{% block page_class %} + event +{% endblock %} + +{% block page_title %} +

    {% trans "Back to events" %}

    + {% include 'agenda/includes/event_linecard.html' %} +{% endblock %} + +{% block breadcrumb_menu %} + {{ block.super }} + + +{% endblock %} + +{% block page_content %} + {% block event_detail_content %} + {% if event.content %} + {% editable event.content %} + {{ event.content|richtext_filters|safe }} + {% endeditable %} + {% endif %} + {% endblock %} +{% endblock %} + +{% block page_link %} + {% if event.mentions or event.links.all|length > 0 %} +
    +
    + {% if child %} + {% with child.links.all as links %} + {% if links %} +
    + {% include 'core/inc/link.html' %} +
    + {% endif %} + {% endwith %} + {% else %} + {% with event.links.all as links %} + {% if links %} +
    + {% include 'core/inc/link.html' %} +
    + {% endif %} + {% endwith %} + {% endif %} + {% if event.mentions %} +
    +
    + {{ event.mentions }} +
    +
    + {% endif %} +
    +
    + {% endif %} +{% endblock %} + +{% block page_audio %} + {% with event as object %} + {{ block.super }} + {% endwith %} +{% endblock %} + +{% block page_slider %} + {% with event as object %} + {{ block.super }} + {% endwith %} +{% endblock %} + +{% block page_video %} + {% with event as object %} + {{ block.super }} + {% endwith %} +{% endblock %} + +{% block page_person_list %} + {% if event.persons.all %} +
    +
    +
    +
    +
    +

    + {% if event.trainings.all %} + {% trans "Trainers" %}
    + {% else %} + {% trans "Persons" %}
    + {% endif %} +

    +
    +
    +
    +
    + +
    +
    +
    +
    +
    + {% for person in event.persons.all %} + {% with person.person as person %} +
    + {% include "network/inc/person/person_card_square.html" %} +
    + {% endwith %} + {% endfor %} +
    +
    +
    +
    +
    +
    + {% endif %} +{% endblock %} + +{% block page_sub_content %} + {% with event.blocks.all as blocks %} + {% include "core/inc/block.html" %} + {% endwith %} +{% endblock %} + +{% block page_sidebar %} +
    + {% include "includes/share_buttons.html" %} +
    +{% endblock %} + +{% block page_related_content %} + {% with dynamic_content=event.dynamic_content_event.all|filter_content object=event %} + {% include "core/inc/related_content.html" %} + {% endwith %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event_iframe.html b/app/themes/vertigo_starts_eu/templates/agenda/event_iframe.html new file mode 100644 index 00000000..6f0f2fb6 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event_iframe.html @@ -0,0 +1,14 @@ +{% extends "agenda/event_detail.html" %} +{% load mezzanine_tags comment_tags keyword_tags rating_tags i18n future disqus_tags event_tags %} + +{% block title %} + {{ title }} +{% endblock %} + +{% block main %} + +{% block event_detail_content %} + +{% endblock %} + +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event_list.html b/app/themes/vertigo_starts_eu/templates/agenda/event_list.html new file mode 100644 index 00000000..9fead660 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event_list.html @@ -0,0 +1,63 @@ +{% extends "vertigo_starts_eu/pages/page.html" %} +{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags staticfiles pages_tags %} + +{% block meta_title %} + {% if page %} + {{ page.title }} + {% else %} + {% trans "Events" %} + {% endif %} +{% endblock %} + +{% block meta_keywords %} + {% metablock %} + {% keywords_for page as keywords %} + {% for keyword in keywords %} + {% if not forloop.first %}, {% endif %} + {{ keyword }} + {% endfor %} + {% endmetablock %} +{% endblock %} + +{% block meta_description %} + {% metablock %} + {{ page.description }} + {% endmetablock %} +{% endblock %} + +{% block main %} +
    +
    +
    +
    +

    {% trans "Events" %}

    +
    +
    +
    +
    +
    + {% for event in events %} + {% include 'agenda/includes/event_linecard.html' %} + {% endfor %} +
    +
    +
    + {% if past_events %} +
    +
    +

    {% trans "Past events" %}

    +
    +
    +
    +
    +
    + {% for event in past_events %} + {% include 'agenda/includes/event_linecard.html' %} + {% endfor %} +
    +
    +
    + {% endif %} +
    +
    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event_location_detail.html b/app/themes/vertigo_starts_eu/templates/agenda/event_location_detail.html new file mode 100644 index 00000000..b6eaaf49 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event_location_detail.html @@ -0,0 +1,43 @@ +{% extends "vertigo_starts_eu/pages/page.html" %} +{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags %} + +{% block meta_title %}{{ location.title }}{% if location.room %} - {{ location.room }}{% endif %}{% endblock %} + +{% block page_class %} + location +{% endblock %} + +{% block breadcrumb_menu %} + {{ block.super }} + +{% endblock %} + +{% block page_title %} + {% editable location.title %} +

    {{ location.title }}{% if location.room %} - {{ location.room }}{% endif %}

    + {% endeditable %} +{% endblock %} + + + +{% block page_content %} + {% if location.description %} + {{ location.description|safe }} + {% endif %} +

    {{ location.link }}

    + +{% endblock %} + +{% block page_sidebar %} +
    +

    + {{ location.address }} +

    + + {% google_static_map location 900 300 15 %} + +

    + {% trans "Viewing events for the location" %} +

    +
    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/event_location_list.html b/app/themes/vertigo_starts_eu/templates/agenda/event_location_list.html new file mode 100644 index 00000000..21092985 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/event_location_list.html @@ -0,0 +1,48 @@ +{% extends "vertigo_starts_eu/base.html" %} +{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags %} + +{% block meta_title %}{% if page %}{{ page.richtextpage.meta_title }}{% else %}{% trans "Locations" %}{% endif %}{% endblock %} + +{% block meta_keywords %}{% metablock %} +{% keywords_for page as keywords %} +{% for keyword in keywords %} + {% if not forloop.first %}, {% endif %} + {{ keyword }} +{% endfor %} +{% endmetablock %}{% endblock %} + +{% block meta_description %}{% metablock %} +{{ page.description }} +{% endmetablock %}{% endblock %} + +{% block title %} +{% if page %} +{{ page.title }} +{% else %} +{% trans "Locations" %} +{% endif %} +{% endblock %} + +{% block breadcrumb_menu %} +{% endblock %} + +{% block main %} +
    +
    + {% for location in object_list %} + + {{ location.title }}{% if location.room %} - {{ location.room }}{% endif %} +
    + {% endfor %} +
    + {% for location in object_list %} +
    + {% include "agenda/includes/event_location.html" %} +
    + {% endfor %} +
    +{% endblock %} + +{% block right_panel %} +{% include "agenda/includes/filter_panel.html" %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date.html new file mode 100644 index 00000000..e7d77c9b --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date.html @@ -0,0 +1,85 @@ +{% load event_tags pages_tags mezzanine_tags organization_tags i18n %} +{% with event.periods.all as periods %} + + {% if event.start and not event.end %} + {{ event.start|date:"DATE_EVENT_FORMAT" }},
    + + {% if event.start and event.start|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + + {% else %} + + {% if event.start|date:"d.m.y" == event.end|date:"d.m.y" %} + {% if not periods %} + {{ event.start|date:"DATE_EVENT_FORMAT" }},
    + + {% if event.end and event.end|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} - {{ event.end|time:"TIME_FORMAT" }} + {% else %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + {% else %} + {{ event.start|date:"DATE_EVENT_FORMAT" }},
    + {% for period in periods %} + {% if period.date_to and period.date_to|date:"H:i" != "23:59" %} + {{ period.date_from|time:"TIME_FORMAT" }} - {{ period.date_to|time:"TIME_FORMAT" }} + {% else %} + {% if forloop.last or periods|length == 2 %} {% trans "and"%} {% elif not forloop.first %}, {% endif %} + {{ period.date_from|time:"TIME_FORMAT" }} + {% endif %} + {% endfor %} + {% endif %} + + {% elif event.start|date:"m.y" == event.end|date:"m.y" %} + {% if periods %} + {% with periods|same_time_in_periods as same_time_in_periods %} + {% for period in periods %} + {% if period.date_to and period.date_to|date:"H:i" != "23:59" %} + {{ period.date_from|date:"WEEK_DAY_FORMAT" }},
    + {% if period|period_is_more_than_hours:4 %} + {{ period.date_from|time:"DATE_EVENT_FORMAT" }} {% trans "through" %} {{ period.date_to|time:"TIME_FORMAT" }} + {% else %} + {{ period.date_from|time:"TIME_FORMAT" }} + {% endif %} + {% else %} + {% if periods|length > 1 and not forloop.last %} + {{ period.date_from|date:"DATE_EVENT_FORMAT" }}{% if periods|length == 2 %} {% trans "and" %} {% else %},{% endif %} + {% else %} + {{ period.date_from|date:"DATE_EVENT_FORMAT" }}, + {% if periods|length > 1 and forloop.first %}{% trans "and" %}{% endif %} + {% endif %} + {% if same_time_in_periods and forloop.last %} + {{ period.date_from|time:"TIME_FORMAT" }} + {% elif not same_time_in_periods %} +
    {{ period.date_from|time:"TIME_FORMAT" }} + {% endif %} + {% endif %} +
    + {% endfor %} + {% endwith %} + {% else %} + {{ event.start|date:"WEEK_DAY_FORMAT" }} + {% if event.end|subtract:event.start|get_attr:"days" > 1 %} + {% trans "through" %} + {% else %} + {% trans "and" %} + {% endif %} + {{ event.end|date:"DATE_EVENT_FORMAT" }},
    {{ event.start|time:"TIME_FORMAT" }} + {% if event.end and event.end|date:"H:i" != "23:59" %} + - {{ event.end|time:"TIME_FORMAT" }} + {% endif %} + {% endif %} + + {% else %} + {{ event.start|date:"DATE_EVENT_FORMAT" }} {% trans "through" %} {{ event.end|date:"DATE_EVENT_FORMAT" }},
    + + {% if event.end and event.end|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} - {{ event.end|time:"TIME_FORMAT" }} + {% else %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + {% endif %} + + {% endif %} +{% endwith %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_card.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_card.html new file mode 100644 index 00000000..4aaa9a36 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_card.html @@ -0,0 +1,12 @@ +{% load i18n %} +{% load event_tags %} + +{% if object.start and not object.end %} + {{ object.start|date:"l j F" }}
    +{% else %} + {% if object.start|date:"d.m.y" == object.end|date:"d.m.y" %} + {{ object.start|date:"l j F" }}
    + {% else %} + {{ object.start|date:"j F" }} {% trans "to" %} {{ object.end|date:"j F" }} + {% endif %} +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_line.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_line.html new file mode 100644 index 00000000..fa29a3db --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_line.html @@ -0,0 +1,59 @@ +{% load event_tags pages_tags mezzanine_tags organization_tags i18n %} +{% with event.periods.all as periods %} + + {% if event.start and not event.end %} + {{ event.start|date:"DATE_EVENT_FORMAT" }} + + {% if event.start and event.start|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + + {% else %} + + {% if event.start|date:"d.m.y" == event.end|date:"d.m.y" %} + {% if not periods %} + {{ event.start|date:"DATE_EVENT_FORMAT" }} + + {% if event.end and event.end|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} - {{ event.end|time:"TIME_FORMAT" }} + {% else %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + {% else %} + {{ event.start|date:"DATE_EVENT_FORMAT" }} + {% for period in periods %} + {% if period.date_to and period.date_to|date:"H:i" != "23:59" %} + {{ period.date_from|time:"TIME_FORMAT" }} - {{ period.date_to|time:"TIME_FORMAT" }} + {% else %} + {% if forloop.last or periods|length == 2 %} {% trans "and"%} {% elif not forloop.first %}, {% endif %} + {{ period.date_from|time:"TIME_FORMAT" }} + {% endif %} + {% endfor %} + {% endif %} + + {% elif event.start|date:"m.y" == event.end|date:"m.y" %} + {{ event.start|date:"WEEK_DAY_FORMAT" }} + {% if event.end|subtract:event.start|get_attr:"days" > 1 %} + {% trans "through" %} + {% else %} + {% trans "and" %} + {% endif %} + {{ event.end|date:"DATE_EVENT_FORMAT" }} + {% if event.end and event.end|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} - {{ event.end|time:"TIME_FORMAT" }} + {% else %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + + {% else %} + {{ event.start|date:"DATE_EVENT_FORMAT" }} {% trans "through" %} {{ event.end|date:"DATE_EVENT_FORMAT" }} + + {% if event.end and event.end|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} - {{ event.end|time:"TIME_FORMAT" }} + {% else %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + {% endif %} + + {% endif %} +{% endwith %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_slider.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_slider.html new file mode 100644 index 00000000..6a41de20 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_date_slider.html @@ -0,0 +1,54 @@ +{% load event_tags pages_tags mezzanine_tags organization_tags i18n %} +{% with event.periods.all as periods %} + + {% if event.start and not event.end %} + {{ event.start|date:"DATE_EVENT_FORMAT" }},
    + + {% if event.start and event.start|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + + {% else %} + + {% if event.start|date:"d.m.y" == event.end|date:"d.m.y" %} + {% if not periods %} + {{ event.start|date:"DATE_EVENT_FORMAT" }},
    + + {% if event.end and event.end|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} - {{ event.end|time:"TIME_FORMAT" }} + {% else %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + {% else %} + {{ event.start|date:"DATE_EVENT_FORMAT" }},
    + {% for period in periods %} + {% if period.date_to and period.date_to|date:"H:i" != "23:59" %} + {{ period.date_from|time:"TIME_FORMAT" }} - {{ period.date_to|time:"TIME_FORMAT" }} + {% else %} + {% if forloop.last or periods|length == 2 %} {% trans "and"%} {% elif not forloop.first %}, {% endif %} + {{ period.date_from|time:"TIME_FORMAT" }} + {% endif %} + {% endfor %} + {% endif %} + + {% elif event.start|date:"m.y" == event.end|date:"m.y" %} + {{ event.start|date:"WEEK_DAY_FORMAT" }} + {% if event.end|subtract:event.start|get_attr:"days" > 1 %} + {% trans "through" %} + {% else %} + {% trans "and" %} + {% endif %} + {{ event.end|date:"DATE_EVENT_FORMAT" }} + + {% else %} + {{ event.start|date:"DATE_EVENT_FORMAT" }} {% trans "through" %} {{ event.end|date:"DATE_EVENT_FORMAT" }},
    + + {% if event.end and event.end|date:"H:i" != "23:59" %} + {{ event.start|time:"TIME_FORMAT" }} - {{ event.end|time:"TIME_FORMAT" }} + {% else %} + {{ event.start|time:"TIME_FORMAT" }} + {% endif %} + {% endif %} + + {% endif %} +{% endwith %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_linecard.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_linecard.html new file mode 100644 index 00000000..b8bad92b --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_linecard.html @@ -0,0 +1,80 @@ +{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags %} + +
    + + + +
    diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_location.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_location.html new file mode 100644 index 00000000..41c3ed5c --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_location.html @@ -0,0 +1,17 @@ +{% load i18n future mezzanine_tags event_tags %} + +
    +

    {{ location.title }}{% if location.room %} - {{ location.room }}{% endif %}

    + {% block event_detail_location %} +

    {{ location.address }}

    +

    {% trans "Room" %} {{ event.location.room }}

    +

    {{ location.link }}

    +

    {{ location.description|safe }}

    + + {% google_static_map location 900 300 15 %} +
    + {% trans "Click to get the interactive map" %} +
    + {% trans "Viewing events for the location" %} + {% endblock %} +
    diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo.html new file mode 100644 index 00000000..00f5ae72 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo.html @@ -0,0 +1,80 @@ +{% load i18n mezzanine_tags event_tags organization_tags %} + +
    + {% include 'agenda/includes/event_date.html' %} +
    + +
    + +{% if event.location %} +
    {{ event.location }}
    + {% if event.location.room %} + {{ event.location.room }} + {% endif %} + + {% google_static_map event 194 194 15 %} + + +
    +{% endif %} + +{% with event.trainings.all.0 as training %} + {% if training %} +
    {% trans "Language" %}
    +

    {{ training.get_language_display }}

    + {% comment %} +
    {% trans "Public type" %}
    +

    {{ training.public_type }}

    + {% endcomment %} +
    {% trans "Level" %}
    +

    {{ training.level }}

    + {% endif %} +{% endwith %} + +{% if event.brochure %} +
    {% trans "Downloads" %}
    +

    + + {{ event.brochure.filename }} + +

    +{% endif %} + +{% if unit_booking %} + {% if event.prices.all %} + {% if event.prices.all.0|floatformat != '0' %} + {% for price in event.prices.all %} + {% if forloop.first %} +
    {% trans "Prices" %}
    +

    + {% endif %} + {% if price.event_price_description.description %} + {{ price.event_price_description.description }} : + {% endif %} + {{ price.value|floatformat:"-2" }} {{ price.unit }} {% if not forloop.last %}
    {% endif %} + {% if forloop.last %} +

    + {% endif %} + {% endfor %} + {% else %} +

    + {{ event.no_price_comments }} +

    + {% endif %} +

    + {% if event.trainings.all|length %} + {% with event.links.all as links %} + {% if links %} + + {% trans "Reserve" %} + + {% endif %} + {% endwith %} + {% else %} + + {% trans "Reserve" %} + + {% endif %} +

    + {% endif %} +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo_line.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo_line.html new file mode 100644 index 00000000..39ba95b8 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo_line.html @@ -0,0 +1,35 @@ +{% load i18n mezzanine_tags event_tags organization_tags %} + +
    + + {% include 'agenda/includes/event_date_line.html' with object=event %} + +
    + +
    + +{% if event.location %} +
    {{ event.location }}
    +{% endif %} + +{% if unit_booking %} + + {% if event.prices.all and not is_archive %} +

    + {% if event.trainings.all|length %} + {% with event.links.all as links %} + {% if links %} + + {% trans "Reserve" %} + + {% endif %} + {% endwith %} + {% else %} + + {% trans "Reserve" %} + + {% endif %} +

    + {% endif %} + +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo_slider.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo_slider.html new file mode 100644 index 00000000..fe8f1dd1 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_metainfo_slider.html @@ -0,0 +1,29 @@ +{% load i18n mezzanine_tags event_tags %} +
    +
    +
    +
    + {{ event.start }} + {% if event.end %} + {% if event.end|date == event.start|date and event.end.hour|subtract:event.start.hour > 3 %}{{ event.end|time:"TIME_FORMAT" }}{% endif %} + {% endif %} + {% for child in event.children.all %} + {% with child as event %} + / {{ event.start }} + {% if event.end %} + {% if event.end|date == event.start|date and event.end.hour|subtract:event.start.hour > 3 %}{{ event.end|time:"TIME_FORMAT" }}{% endif %} + {% endif %} + {% endwith %} + {% endfor %} + {% if event.location %} + {{ event.location }} + {% endif %} +
    + +
    +
    +
    diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/event_search.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_search.html new file mode 100644 index 00000000..45f304d7 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/event_search.html @@ -0,0 +1,65 @@ +{% extends "core/inc/search_card.html" %} +{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags %} + +{% block title %} + {{ event.title }} +{% endblock %} + +{% block icon %}calendar-o{% endblock %} + +{% block subtitle %} +
    + {% include 'agenda/includes/event_date_line.html' with object=event %} + {% if event.prices.all.0|floatformat != '0' and event.prices.all|length > 0 and not is_archive %} + + {% trans "Reserve" %} + + {% endif %} +
    +{% endblock %} + +{% block image %} + {% with event.images.all|get_type:'card' as images %} + {% if images %} + +
    + +
    +
    + {% else %} + {% with event.parent.images.all|get_type:'card' as images %} + {% if images %} + +
    + +
    +
    + {% endif %} + {% endwith %} + {% endif %} + {% endwith %} +{% endblock %} + +{% block tags %} + {% keywords_for event as tags %} + {% if event.departments.all.0 or tags %} + {% if event.departments.all.0 %} +
    + {{ event.departments.all.0.department.name }} +
    + {% endif %} + {% endif %} + {% if event.category %} +
    + {{ event.category|truncatechars:15 }} +
    + {% endif %} +{% endblock %} + +{% block url %} + {{ event.get_absolute_url }} +{% endblock %} + +{% block content %} + {{ event.description|slice:":100" }} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/agenda/includes/filter_panel.html b/app/themes/vertigo_starts_eu/templates/agenda/includes/filter_panel.html new file mode 100644 index 00000000..809bbadb --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/agenda/includes/filter_panel.html @@ -0,0 +1,125 @@ +{% load event_tags keyword_tags i18n future %} + +{% block upcoming_events %} +{% upcoming_events 5 as upcoming_events %} +{% if upcoming_events %} + + +{% endif %} +{% endblock %} + +{% block recent_events %} +{% recent_events 5 as recent_events %} +{% if recent_events %} + + +{% endif %} +{% endblock %} + +{% block event_months %} +{% event_months as months %} +{% if months %} + +{% for month in months %} + {% ifchanged month.date.year %} + {% if not forloop.first %}{% endif %} +

    {{ month.date.year }}

    + +{% endif %} +{% endblock %} + +{% block event_locations %} +{% event_locations as locations %} +{% if locations %} + + +{% endif %} +{% endblock %} + +{% block event_keywords %} +{% keywords_for mezzanine_agenda.event as tags %} +{% if tags %} + + +{% endif %} +{% endblock %} + +{% comment %} +{% block event_authors %} +{% event_authors as authors %} +{% if authors %} + + +{% endif %} +{% endblock %} + +{% block event_feeds %} +
    +{% if tag %} + {% trans "RSS" %} / + {% trans "Atom" %} +{% endif %} +{% if location %} + {% trans "RSS" %} / + {% trans "Atom" %} +{% endif %} +{% if author %} + {% trans "RSS" %} / + {% trans "Atom" %} +{% endif %} +{% if not tag and not location and not author %} + {% trans "RSS" %} / + {% trans "Atom" %} +{% endif %} +{% endblock %} +{% endcomment %} diff --git a/app/themes/vertigo_starts_eu/templates/base.html b/app/themes/vertigo_starts_eu/templates/base.html new file mode 100644 index 00000000..701b6a98 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/base.html @@ -0,0 +1,112 @@ + + +{% load i18n pages_tags mezzanine_tags staticfiles keyword_tags event_tags organization_tags %} +{% get_language_info_list for LANGUAGES as languages %} + + + + + + + {% spaceless %}{% block meta_title %}{% endblock %}{% endspaceless %}{% if settings.SITE_TITLE %} | {{ settings.SITE_TITLE }}{% endif %} + + + + + + + + + + + + + + + + {% compress css %} + + + + + + + {% endcompress %} + + {% block extra_head %}{% endblock %} + + + + {% spaceless %} + + {% block sidebar %} +
    + {% include "includes/sidebar.html" %} +
    + {% endblock %} + + {% block site_overlay %} +
    +
    + {% endblock %} + + {% block header %} +
    +
    +
    +
    + +
    +
    +
    +
    + {% endblock %} + + {% block container %} +
    +
    + {% block content_header %}{% endblock %} + {% block main %}{% endblock %} + {% block content_footer %}{% endblock %} +
    + + {% block social %} + {% include "includes/social.html" %} + {% endblock %} + + {% block footer %} +
    + {% include "includes/footer.html" %} +
    + {% endblock %} +
    + {% endblock %} + + {% block overlay_container %} +
    + + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + {% endblock %} + + {% search_form %} + + {% block footer_scripts %} + {% include "includes/footer_scripts.html" %} + {% endblock %} + + {% endspaceless %} + + + diff --git a/app/themes/vertigo_starts_eu/templates/core/admin/base_site.html b/app/themes/vertigo_starts_eu/templates/core/admin/base_site.html new file mode 100644 index 00000000..08d0fac1 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/admin/base_site.html @@ -0,0 +1,77 @@ +{% extends "admin/vertigo_starts_eu/base.html" %} +{% load mezzanine_tags i18n staticfiles %} + +{% block title %}{{ title }} | Mezzanine{% endblock %} + +{% block extrahead %} + + + + +{% if not settings.GRAPPELLI_INSTALLED %} + +{% endif %} + + + +{% endblock %} + +{% block rtl_styles %} +{{ block.super }} + +{% endblock %} + +{% block before_content %} +{% if user.is_staff and not is_popup and not request.GET.pop %} +{% admin_dropdown_menu %} +{% endif %} +{% endblock %} + +{% block footer %} +{% if form.this_is_the_login_form %} + +{% else %} + {% if user.is_staff %} + {% if not is_popup and not request.GET.pop %} + + + + + {% endif %} + + {% if settings.GRAPPELLI_INSTALLED %} + + {% endif %} + {% endif %} +{% endif %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/block.html b/app/themes/vertigo_starts_eu/templates/core/inc/block.html new file mode 100644 index 00000000..8ef77828 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/block.html @@ -0,0 +1,37 @@ +{% load i18n mezzanine_tags keyword_tags pages_tags organization_tags %} +{% if blocks %} +
    + {% for block in blocks %} + {% if block.content %} + {% if block.with_separator %} +
    + {% endif %} +
    +
    +
    +
    + {% editable block.title %} +
    +

    {{ block.title }}

    +
    + {% endeditable %} + {% if block.description %} +
    + {% editable block.description %} + {{ block.description }} + {% endeditable %} +
    + {% endif %} + {% if block.content %} + {% editable block.content %} + {{ block.content|richtext_filters|safe }} + {% endeditable %} + {% endif %} +
    +
    +
    +
    + {% endif %} + {% endfor %} +
    +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/files.html b/app/themes/vertigo_starts_eu/templates/core/inc/files.html new file mode 100644 index 00000000..8127a688 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/files.html @@ -0,0 +1,17 @@ +{% load i18n %} +

    + {% trans "Downloads" %} +

    + diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/generic_card.html b/app/themes/vertigo_starts_eu/templates/core/inc/generic_card.html new file mode 100644 index 00000000..f3ebad5c --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/generic_card.html @@ -0,0 +1,32 @@ +{% load i18n pages_tags mezzanine_tags media_tags organization_tags %} + + +
    + + {% block image %} + {% endblock %} + + {% block btn %} + {% endblock %} + +
    + +
    +
    + {% block title %} + {% endblock %} +
    +
    + {% block tags %} + {% endblock %} +
    +
    + {% block subtitle %} + {% endblock %} +
    +
    + {% block content %} + {% endblock %} +
    +
    +
    diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/link.html b/app/themes/vertigo_starts_eu/templates/core/inc/link.html new file mode 100644 index 00000000..ebb7bdfc --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/link.html @@ -0,0 +1,6 @@ +{% load mezzanine_tags i18n %} + diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/logo.html b/app/themes/vertigo_starts_eu/templates/core/inc/logo.html new file mode 100644 index 00000000..a3167990 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/logo.html @@ -0,0 +1,6 @@ +{% load mezzanine_tags i18n %} +{% if images %} + {% for image in images %} +
  • {{ image.title }}
  • + {% endfor %} +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/messages.html b/app/themes/vertigo_starts_eu/templates/core/inc/messages.html new file mode 100644 index 00000000..1f5e4473 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/messages.html @@ -0,0 +1,7 @@ +{% if messages %} + +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/related_content.html b/app/themes/vertigo_starts_eu/templates/core/inc/related_content.html new file mode 100644 index 00000000..fd8f4502 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/related_content.html @@ -0,0 +1,63 @@ +{% load i18n mezzanine_tags keyword_tags organization_tags pages_tags %} + +{% if dynamic_content.event|length > 0 %} + +
    +
    +
    +

    {% trans "Linked events" %}

    +
    +
    +
    +
    + {% for content in dynamic_content.event %} + {% with event=content.content_object %} + {% include 'agenda/includes/event_linecard.html' %} + {% endwith %} + {% endfor %} +
    + +
    +
    + +{% endif %} + +{% if dynamic_content.other|length > 0 %} +
    +
    +
    +
    +

    {% if object.related_title.title %}{{ object.related_title.title }}{% else %}{% trans "Also discover" %}{% endif %}

    +
    +
    +
    +
    +
    + + {% for content in dynamic_content.other %} + {% if forloop.counter0 == 0 or forloop.counter|divisibleby:3 %} +
    +
    + {% endif %} +
    + {% if content.content_type.model == "article" %} + {% include "magazine/article/includes/article_card.html" with object=content.content_object %} + {% elif content.content_type.model == "event" %} + {% include "agenda/event/includes/event_card.html" with object=content.content_object %} + {% elif content.content_type.model == "custompage" %} + {% include "pages/page/includes/page_card.html" with object=content.content_object %} + {% endif %} +
    + {% if forloop.last or forloop.counter|divisibleby:2 %} +
    +
    + {% endif %} + {% endfor %} + +
    +
    + +
    +
    +
    +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/related_content_dynamic.html b/app/themes/vertigo_starts_eu/templates/core/inc/related_content_dynamic.html new file mode 100644 index 00000000..e226b2b4 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/related_content_dynamic.html @@ -0,0 +1,39 @@ +{% load i18n mezzanine_tags keyword_tags organization_tags pages_tags %} +{% if concrete_objects %} +
    +
    +
    +
    +

    {% if object.related_title.title %}{{ object.related_title.title }}{% else %}{% trans "Also discover" %}{% endif %}

    +
    +
    +
    +
    +
    + + {% for concrete_object in concrete_objects %} + {% if forloop.counter0 == 0 or forloop.counter|divisibleby:3 %} +
    +
    + {% endif %} + +
    + {% with app_label=concrete_object|app_label_short classname=concrete_object|classname|lower object=concrete_object %} + {% with app_label|add:"/"|add:classname|add:"/includes/"|add:classname|add:"_card.html" as template %} + {% include template %} + {% endwith %} + {% endwith %} +
    + + {% if forloop.last or forloop.counter|divisibleby:2 %} +
    +
    + {% endif %} + {% endfor %} + +
    +
    +
    +
    +
    +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/search_card.html b/app/themes/vertigo_starts_eu/templates/core/inc/search_card.html new file mode 100644 index 00000000..036dd095 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/search_card.html @@ -0,0 +1,29 @@ + diff --git a/app/themes/vertigo_starts_eu/templates/core/inc/slider.html b/app/themes/vertigo_starts_eu/templates/core/inc/slider.html new file mode 100644 index 00000000..16eba10a --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/core/inc/slider.html @@ -0,0 +1,21 @@ +{% load mezzanine_tags %} +
    + +
    diff --git a/app/themes/vertigo_starts_eu/templates/email/account_approve.html b/app/themes/vertigo_starts_eu/templates/email/account_approve.html new file mode 100644 index 00000000..809a825b --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/account_approve.html @@ -0,0 +1,13 @@ +{% load i18n accounts_tags %} +{% block main %} +

    {% trans "Hey there, a new account has been created and requires activation." %}

    +
    +

    {% trans "Name" %}: {{ user.get_full_name }}

    +

    {% trans "Email" %}: {{ user.email }}

    +{% for field, value in user|profile_fields %} +

    {{ field }}: {{ value|linebreaksbr }}

    +{% endfor %} +
    +

    {% trans "Please use the link below to activate it." %}

    +

    http://{{ request.get_host }}{{ change_url }}

    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/account_approve.txt b/app/themes/vertigo_starts_eu/templates/email/account_approve.txt new file mode 100644 index 00000000..763f0ce7 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/account_approve.txt @@ -0,0 +1,11 @@ +{% load i18n accounts_tags %} +{% block main %} +{% trans "Hey there, a new account has been created and requires activation." %} + +{% trans "Name" %}: {{ user.get_full_name }} +{% trans "Email" %}: {{ user.email }} +{% for field, value in user|profile_fields %}{{ field }}: {{ value|linebreaksbr }} +{% endfor %} +{% trans "Please use the link below to activate it." %} +http://{{ request.get_host }}{{ change_url }} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/account_approve_subject.txt b/app/themes/vertigo_starts_eu/templates/email/account_approve_subject.txt new file mode 100644 index 00000000..94b70f82 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/account_approve_subject.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% trans "An account requires activation" %} diff --git a/app/themes/vertigo_starts_eu/templates/email/account_approved.html b/app/themes/vertigo_starts_eu/templates/email/account_approved.html new file mode 100644 index 00000000..44642ab7 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/account_approved.html @@ -0,0 +1,6 @@ +{% load i18n %} +{% block main %} +

    {% trans "Hey there, your account has been activated." %}

    +

    {% trans "Please use the link below to log in." %}

    +

    http://{{ request.get_host }}{% url "login" %}

    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/account_approved.txt b/app/themes/vertigo_starts_eu/templates/email/account_approved.txt new file mode 100644 index 00000000..746cecc0 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/account_approved.txt @@ -0,0 +1,6 @@ +{% load i18n %} +{% block main %} +{% trans "Hey there, your account has been activated." %} +{% trans "Please use the link below to log in." %} +http://{{ request.get_host }}{% url "login" %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/account_approved_subject.txt b/app/themes/vertigo_starts_eu/templates/email/account_approved_subject.txt new file mode 100644 index 00000000..e6ce5be5 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/account_approved_subject.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% trans "Your account has been activated" %} diff --git a/app/themes/vertigo_starts_eu/templates/email/application_notification.html b/app/themes/vertigo_starts_eu/templates/email/application_notification.html new file mode 100644 index 00000000..b8c71773 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/application_notification.html @@ -0,0 +1,24 @@ + + + + + + + + +

    Bonjour,

    + +

    Une nouvelle candidature a été soumise :

    +

    Nom : {{ last_name }}

    +

    Prénom : {{ first_name }}

    +

    Email :{{ email }}

    +

    Message :

    +

    {{ message }}

    +
    +
    +

    Le curriculum vitae ainsi que la lettre de motivation sont en pièces jointes.

    +

    Ces informations sont disponibles sur le backoffice de http://www.ircam.fr dans l'édition de l'offre d'emploi correspondante.

    + +

    Bonne journée ! :)

    + + diff --git a/app/themes/vertigo_starts_eu/templates/email/base.html b/app/themes/vertigo_starts_eu/templates/email/base.html new file mode 100644 index 00000000..6030db4b --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/base.html @@ -0,0 +1,3 @@ +{% block main %}{% endblock %} + +
    http://{{ request.get_host }} diff --git a/app/themes/vertigo_starts_eu/templates/email/base.txt b/app/themes/vertigo_starts_eu/templates/email/base.txt new file mode 100644 index 00000000..a8416a37 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/base.txt @@ -0,0 +1,3 @@ +{% block main %}{% endblock %} + +http://{{ request.get_host }} diff --git a/app/themes/vertigo_starts_eu/templates/email/comment_notification.html b/app/themes/vertigo_starts_eu/templates/email/comment_notification.html new file mode 100644 index 00000000..659db47d --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/comment_notification.html @@ -0,0 +1,17 @@ +{% extends "email/vertigo_starts_eu/base.html" %} +{% load i18n %} + +{% block main %} +

    + {% trans "A new comment has been posted on" %} + {{ obj }} +

    +

    + {% blocktrans with submit_date=comment.submit_date user_name=comment.user_name %} + At {{ submit_date }} {{ user_name }} wrote: + {% endblocktrans %} +

    +

    + {{ comment.comment|linebreaksbr|urlize }} +

    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/comment_notification.txt b/app/themes/vertigo_starts_eu/templates/email/comment_notification.txt new file mode 100644 index 00000000..d19ba84b --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/comment_notification.txt @@ -0,0 +1,12 @@ +{% extends "email/base.txt" %} +{% load i18n %} + +{% block main %} +A new comment has been posted on {{ obj }} [http://{{ request.get_host }}{{ comment_url }}] + +{% blocktrans with submit_date=comment.submit_date user_name=comment.user_name %} +At {{ submit_date }} {{ user_name }} wrote: +{% endblocktrans %} + +{{ comment.comment }} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/form_response.html b/app/themes/vertigo_starts_eu/templates/email/form_response.html new file mode 100644 index 00000000..d035c329 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/form_response.html @@ -0,0 +1,13 @@ +{% extends "email/vertigo_starts_eu/base.html" %} + +{% block main %} +{% if message %}

    {{ message }}

    {% endif %} + +{% for field, value in fields %} + + + + +{% endfor %} +
    {{ field }}:{{ value|linebreaks }}
    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/form_response.txt b/app/themes/vertigo_starts_eu/templates/email/form_response.txt new file mode 100644 index 00000000..d4409e17 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/form_response.txt @@ -0,0 +1,9 @@ +{% extends "email/base.txt" %} + +{% block main %}{% if message %} +{{ message }} + +{% endif %}{% for field, value in fields %} +{{ field }}: {{ value|safe }} +{% endfor %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/form_response_copies.html b/app/themes/vertigo_starts_eu/templates/email/form_response_copies.html new file mode 100644 index 00000000..22fdee75 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/form_response_copies.html @@ -0,0 +1,5 @@ +{% extends "email/form_response.html" %} + +{% block main %} +{{ block.super }} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/form_response_copies.txt b/app/themes/vertigo_starts_eu/templates/email/form_response_copies.txt new file mode 100644 index 00000000..fa358d62 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/form_response_copies.txt @@ -0,0 +1,5 @@ +{% extends "email/form_response.txt" %} + +{% block main %} +{{ block.super }} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/password_reset_verify.html b/app/themes/vertigo_starts_eu/templates/email/password_reset_verify.html new file mode 100644 index 00000000..015c2d17 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/password_reset_verify.html @@ -0,0 +1,8 @@ +{% load i18n %} +{% block main %} +

    {% trans "Hey there, the password reset form was used for your account." %}

    +

    {% trans "Please use the link below to log in and update your password." %}

    +

    http://{{ request.get_host }}{{ verify_url }}

    +

    {% trans "If you didn't request for your password to be reset, please ignore this email." %}

    +{% endblock %} + diff --git a/app/themes/vertigo_starts_eu/templates/email/password_reset_verify.txt b/app/themes/vertigo_starts_eu/templates/email/password_reset_verify.txt new file mode 100644 index 00000000..48b52500 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/password_reset_verify.txt @@ -0,0 +1,7 @@ +{% load i18n %} +{% block main %} +{% trans "Hey there, the password reset form was used for your account." %} +{% trans "Please use the link below to log in and update your password." %} +http://{{ request.get_host }}{{ verify_url }} +{% trans "If you didn't request for your password to be reset, please ignore this email." %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/password_reset_verify_subject.txt b/app/themes/vertigo_starts_eu/templates/email/password_reset_verify_subject.txt new file mode 100644 index 00000000..72060ab7 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/password_reset_verify_subject.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% trans "Reset your password" %} diff --git a/app/themes/vertigo_starts_eu/templates/email/signup_verify.html b/app/themes/vertigo_starts_eu/templates/email/signup_verify.html new file mode 100644 index 00000000..93ff38ff --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/signup_verify.html @@ -0,0 +1,6 @@ +{% load i18n %} +{% block main %} +

    {% trans "Hey there, thanks for creating your account." %}

    +

    {% trans "Please use the link below to activate it." %}

    +

    http://{{ request.get_host }}{{ verify_url }}

    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/signup_verify.txt b/app/themes/vertigo_starts_eu/templates/email/signup_verify.txt new file mode 100644 index 00000000..491d0124 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/signup_verify.txt @@ -0,0 +1,6 @@ +{% load i18n %} +{% block main %} +{% trans "Hey there, thanks for creating your account." %} +{% trans "Please use the link below to activate it." %} +http://{{ request.get_host }}{{ verify_url }} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/email/signup_verify_subject.txt b/app/themes/vertigo_starts_eu/templates/email/signup_verify_subject.txt new file mode 100644 index 00000000..54999b2f --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/email/signup_verify_subject.txt @@ -0,0 +1,2 @@ +{% load i18n %} +{% trans "Activate your account" %} diff --git a/app/themes/vertigo_starts_eu/templates/errors/404.html b/app/themes/vertigo_starts_eu/templates/errors/404.html new file mode 100644 index 00000000..ee499990 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/errors/404.html @@ -0,0 +1,21 @@ +{% extends "vertigo_starts_eu/pages/page.html" %} + +{% load i18n %} + +{% block meta_title %} + {% trans "Page not found" %} +{% endblock %} + +{% block page_class %} + custompage +{% endblock %} + +{% block page_title %} +

    {% trans "Page not found" %}

    +{% endblock %} + +{% block page_content %} +

    + {% trans "The page you requested does not exist." %} +

    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/errors/500.html b/app/themes/vertigo_starts_eu/templates/errors/500.html new file mode 100644 index 00000000..454fa98c --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/errors/500.html @@ -0,0 +1,32 @@ +{% extends "vertigo_starts_eu/base.html" %} + +{% load i18n %} + +{% block meta_title %} +{% trans "Error" %} +{% endblock %} + +{% block title %} +{% trans "Error" %} +{% endblock %} + +{% block main %} +
    +

    {% trans "Error" %}

    +
    {% trans "Sorry, an error occurred." %}
    +
    +{% endblock %} + +{% block page_class %} + custompage +{% endblock %} + +{% block page_title %} +

    {% trans "Error" %}

    +{% endblock %} + +{% block page_content %} +

    + {% trans "Sorry, an error occurred." %} +

    +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/generic/comments.html b/app/themes/vertigo_starts_eu/templates/generic/comments.html new file mode 100644 index 00000000..3394768e --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/generic/comments.html @@ -0,0 +1,18 @@ +{% extends "vertigo_starts_eu/base.html" %} + +{% load mezzanine_tags comment_tags keyword_tags %} + +{% block meta_title %}{{ obj }}{% endblock %} + +{% block meta_keywords %}{% metablock %} +{% keywords_for obj as tags %} +{% for tag in tags %}{% if not forloop.first %}, {% endif %}{{ tag }}{% endfor %} +{% endmetablock %}{% endblock %} + +{% block meta_description %}{% metablock %} +{{ obj.description }} +{% endmetablock %}{% endblock %} + +{% block main %} +{% comments_for obj %} +{% endblock %} diff --git a/app/themes/vertigo_starts_eu/templates/generic/includes/comment.html b/app/themes/vertigo_starts_eu/templates/generic/includes/comment.html new file mode 100644 index 00000000..260d52ca --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/generic/includes/comment.html @@ -0,0 +1,73 @@ +{% load i18n mezzanine_tags comment_tags rating_tags %} + +{% for comment in comments_for_thread %} + +
    + + {% editable comment.is_public comment.is_removed %} + {% if not comment.is_removed and comment.is_public or request.user.is_staff %} + {% if comment.url %} + + + +
    +

    {{ comment.user_name }} + {% else %} + +
    +

    {{ comment.user_name }} + {% endif %} + + {% blocktrans with sometime=comment.submit_date|timesince %}{{ sometime }} ago{% endblocktrans %} + +

    +

    {{ comment.comment|comment_filter }}

    + {% endif %} + + {% if not comment.is_removed and comment.is_public %} + + {% trans "Link" %} + | + + {% trans "Reply" %} + + {% if settings.COMMENTS_USE_RATINGS %} +
    + {% rating_for comment %} +
    + {% endif %} +
    + {% if replied_to == comment.id %} + {% fields_for posted_comment_form %} + {% else %} + {% fields_for unposted_comment_form %} + {% endif %} + + +
    + + {% else %} +

    + {% if comment.is_removed %} + {% trans "Comment deleted" %} + {% else %} + {% trans "Comment awaiting approval" %} + {% endif %} + {% blocktrans with sometime=comment.submit_date|timesince %}{{ sometime }} ago{% endblocktrans %} +

    + {% endif %} + + {% comment_thread comment %} + + {% if not comment.is_removed and comment.is_public or request.user.is_staff %}
    {% endif %} + {% endeditable %} +

    +{% endfor %} + +{% if no_comments %} +

    {% trans "There are currently no comments" %}

    +{% endif %} + diff --git a/app/themes/vertigo_starts_eu/templates/generic/includes/comments.html b/app/themes/vertigo_starts_eu/templates/generic/includes/comments.html new file mode 100644 index 00000000..56932e3f --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/generic/includes/comments.html @@ -0,0 +1,29 @@ +{% load i18n mezzanine_tags comment_tags %} +
    +

    {% trans "Comments" %}

    +{% if settings.COMMENTS_DISQUS_SHORTNAME %} +{% include "generic/includes/disqus_comments.html" %} +{% else %} + + +{% comment_thread object_for_comments %} +

    {% trans "New Comment" %}

    +
    + {% if not request.POST.replied_to %} + {% fields_for posted_comment_form %} + {% else %} + {% fields_for unposted_comment_form %} + {% endif %} +
    + +
    +
    +{% endif %} +
    diff --git a/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_comments.html b/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_comments.html new file mode 100644 index 00000000..76b206ba --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_comments.html @@ -0,0 +1,15 @@ +{% load disqus_tags %} + +
    +{% disqus_sso_script %} + diff --git a/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_counts.html b/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_counts.html new file mode 100644 index 00000000..793ab3ed --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_counts.html @@ -0,0 +1,12 @@ + diff --git a/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_sso.html b/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_sso.html new file mode 100644 index 00000000..f266c4a7 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/generic/includes/disqus_sso.html @@ -0,0 +1,6 @@ + diff --git a/app/themes/vertigo_starts_eu/templates/generic/includes/rating.html b/app/themes/vertigo_starts_eu/templates/generic/includes/rating.html new file mode 100644 index 00000000..99c91bfd --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/generic/includes/rating.html @@ -0,0 +1,20 @@ +{% load mezzanine_tags rating_tags i18n %} + + + {% if rating_average %} + {% trans "Current rating" %}: {{ rating_average|floatformat }} + {% else %} + {% trans "Currently unrated" %} + {% endif %} + + +{% if not rated or request.user.is_authenticated %} +
    + {% nevercache %} + {% csrf_token %} + {% endnevercache %} +
      {{ rating_form.as_ul }}
    + +
    +{% endif %} diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/bio.html b/app/themes/vertigo_starts_eu/templates/home/inc/bio.html new file mode 100644 index 00000000..5c2b9d87 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/bio.html @@ -0,0 +1,17 @@ +{% load i18n %} +
    +
    +
    +
    + {% if host_organization.bio %} + {{ host_organization.bio|safe }} + {% else %} + « LES FORMES DU DIGITAL » questionnera les enjeux des mutations + formelles au sein d’un monde digitalisé dans les domaines de la musique, de l’art, du + design et de l’architecture au regard des avancées des technosciences. Comment les + champs de création se sont-ils emparés des technologies numériques ? + {% endif %} +
    +
    +
    +
    diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/body.html b/app/themes/vertigo_starts_eu/templates/home/inc/body.html new file mode 100644 index 00000000..017ca7ad --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/body.html @@ -0,0 +1,27 @@ +{% load i18n pages_tags mezzanine_tags media_tags organization_tags %} +
    +
    +
    +
    + Autres articles +
    +
    + {% for content in home.dynamiccontenthomebody_set.all %} +
    + {% if content.content_type.model == "brief" %} + {% include "magazine/brief/inc/brief_card.html" %} + {% elif content.content_type.model == "article" %} + {% include "magazine/article/includes/article_card.html" with object=content.content_object %} + {% elif content.content_type.model == "event" %} + {% include "agenda/event/includes/event_card.html" with object=content.content_object %} + {% elif content.content_type.model == "custompage" %} + {% include "pages/page/includes/page_card.html" with object=content.content_object %} + {% elif content.content_type.model == "media" %} + {% include "media/media/includes/media_card.html" with object=content.content_object %} + {% endif %} +
    + {% endfor %} +
    +
    +
    +
    diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/hero-small.html b/app/themes/vertigo_starts_eu/templates/home/inc/hero-small.html new file mode 100644 index 00000000..06cee32f --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/hero-small.html @@ -0,0 +1,25 @@ +{% load i18n pages_tags mezzanine_tags staticfiles keyword_tags event_tags organization_tags %} + +
    + +
    + +
    + +
    + +
    + +
    + + + +
    + +
    + +
    + +
    diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/hero.html b/app/themes/vertigo_starts_eu/templates/home/inc/hero.html new file mode 100644 index 00000000..8c3e9d08 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/hero.html @@ -0,0 +1,46 @@ +{% load i18n pages_tags mezzanine_tags staticfiles keyword_tags event_tags organization_tags %} + +
    + +
    + +
    + +
    + +
    + +
    + + +
    + +
    + + +

    + +

    +
    + +
    + +
    + +
    + + + +
    + +
    + +
    + +
    + +
    + +
    diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/service.html b/app/themes/vertigo_starts_eu/templates/home/inc/service.html new file mode 100644 index 00000000..d6648f9a --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/service.html @@ -0,0 +1,13 @@ +{% load staticfiles i18n organization_tags %} + diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/services.html b/app/themes/vertigo_starts_eu/templates/home/inc/services.html new file mode 100644 index 00000000..6b851a4e --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/services.html @@ -0,0 +1,15 @@ +{% load staticfiles i18n organization_tags %} + +
    +
    + {% for service in host_organization.services.all|slice_ng:"0:2" %} + {% include "home/inc/service.html" %} + {% endfor %} +
    + +
    + {% for service in host_organization.services.all|slice_ng:"2:5" %} + {% include "home/inc/service.html" %} + {% endfor %} +
    +
    diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/shutter_card.html b/app/themes/vertigo_starts_eu/templates/home/inc/shutter_card.html new file mode 100644 index 00000000..fe09e65c --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/shutter_card.html @@ -0,0 +1,6 @@ + diff --git a/app/themes/vertigo_starts_eu/templates/home/inc/slider.html b/app/themes/vertigo_starts_eu/templates/home/inc/slider.html new file mode 100644 index 00000000..ffa21b73 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/home/inc/slider.html @@ -0,0 +1,123 @@ +{% load i18n pages_tags mezzanine_tags media_tags organization_tags %} +{% if home.dynamiccontenthomeslider_set.all|length > 0 %} + +{% endif %} + +{% load i18n pages_tags mezzanine_tags media_tags organization_tags %} +
    +
    +
    +
    + {% for slider in home.dynamiccontenthomeslider_set.all %} + {% with slider.content_object.images.all|get_type:'slider' as images %} + {% if images %} +
    + {% if slider.content_type.model == "brief" %} + {% include "magazine/brief/inc/brief_card.html" %} + {% elif slider.content_type.model == "article" %} + {% include "magazine/article/includes/article_card.html" with object=slider.content_object %} + {% elif slider.content_type.model == "event" %} + {% include "agenda/event/includes/event_card.html" with object=slider.content_object %} + {% elif slider.content_type.model == "custompage" %} + {% include "pages/page/includes/page_card.html" with object=slider.content_object %} + {% elif slider.content_type.model == "media" %} + {% include "media/media/includes/media_card.html" with object=slider.content_object %} + {% elif slider.content_type.model == "person" %} + {% include "network/person/includes/person_card.html" with object=slider.content_object %} + {% endif %} +
    + {% endif %} + {% endwith %} + {% endfor %} +
    +
    +
    +
    diff --git a/app/themes/vertigo_starts_eu/templates/includes/editable_form.html b/app/themes/vertigo_starts_eu/templates/includes/editable_form.html new file mode 100644 index 00000000..d4ac0396 --- /dev/null +++ b/app/themes/vertigo_starts_eu/templates/includes/editable_form.html @@ -0,0 +1,28 @@ +{% load i18n %} + +{# Edit form #} +