@import 'boxes/page-box';
@import 'boxes/brief-box';
@import 'boxes/person-list-box';
+@import 'boxes/event-line-box';
// Sliders
@import 'sliders/slider-page';
}
+ &__filters {
+
+ @include margin(0 0 6 0);
+
+ }
+
hr + #{$module}__block--yellow {
@include margin-top(-2);
--- /dev/null
+$module: ".event-line-box";
+
+#{$module} {
+
+ &__content {
+
+ &:after {
+
+ content: "";
+ display: block;
+ width: 100%;
+ height: 1px;
+ background: rgba(0, 0, 0, 0.5);
+
+ @include margin(1 0 2 0);
+
+ @include mq($until: sm) {
+ @include margin(1 0 1 0);
+ }
+
+ }
+
+ }
+
+ &__month {
+
+ @include font-size(l);
+ @include line-height(1);
+ @include typeface(serif);
+ font-weight: weight(heavy);
+
+ @include mq($until: sm) {
+ display: none;
+ }
+
+ }
+
+ &__image {
+
+ width: 100%;
+ height: auto;
+
+ }
+
+ &__tags {
+
+ margin-bottom: 5px;
+
+ }
+
+ &__title {
+
+ @include font-size(xxl);
+ @include line-height(1.25);
+ @include typeface(sans-serif);
+ font-weight: weight(bold);
+
+ margin-top: 0;
+ @include margin-bottom(1);
+
+ }
+
+ &__desc {
+
+ @include font-size(m);
+ @include line-height(1);
+ @include typeface(serif);
+ font-weight: weight(light);
+
+ }
+
+}
{% block breadcrumb_menu %}
{{ block.super }}
+ <li class="breadcrumb__item">
+ <a href="{% url 'event_list' %}" class="breadcrumb__link">{% trans "Agenda" %}</a>
+ </li>
<li class="breadcrumb__item active">{{ event.title }}</li>
{% endblock %}
{% block breadcrumb_menu %}
{{ block.super }}
- <li class="breadcrumb__item">
- <a href="{% url 'event_list' %}" class="breadcrumb__link">{% trans "Agenda" %}</a>
- </li>
{% if tag or location or month or week or author %}
+ <li class="breadcrumb__item">
+ <a href="{% url 'event_list' %}" class="breadcrumb__link">{% trans "Agenda" %}</a>
+ </li>
<li class="breadcrumb__item active">
{% if tag %}
{% trans "Tag:" %} {{ tag }}
{% trans "Author:" %} {{ author.get_full_name|default:author.username }}
{% endif %}
</li>
+ {% else %}
+ <li class="breadcrumb__item active">
+ {% trans "Agenda" %}
+ </li>
{% endif %}
{% endblock %}
{% block main %}
-<div class="msry__container">
- <div class="msry__sizer">
- {% for event in events.object_list %}
- {% include 'agenda/includes/event_card.html' %}
- {% endfor %}
- </div>
-</div>
-{% endblock %}
-{# <a href='{% icalendar_url %}' target="_blank" class="small push-ical">{% trans "Subscribe to all events in" %} Google Calendar/Outlook/iCal</a>#}
+ <div class="page page--{% spaceless %}{% block page_class %}{% endblock %}{% endspaceless %}">
-{% pagination_for events %}
+ <div class="container">
-{% if settings.COMMENTS_DISQUS_SHORTNAME %}
-{% include "generic/includes/disqus_counts.html" %}
-{% endif %}
+ <div class="row">
-{% block page_title %}
- <h1 class="dotted">
- {% if page %}
- {{ page.richtextpage.meta_title }}
- {% else %}
- {% trans "Agenda" %}
- {% endif %}
- </h1>
+ <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2 white-bg">
+ <h1 class="dotted">
+ {% if page %}
+ {{ page.richtextpage.meta_title }}
+ {% else %}
+ {% trans "Agenda" %}
+ {% endif %}
+ </h1>
+
+ <div class="page__filters">
+ {% keywords_for mezzanine_agenda.event as tags %}
+ {% all_events as all_events %}
+ {% if tags %}
+ <a href="{% url 'event_list' %}" class="button{% if not tag %} button--black{% else %} button--white{% endif %}">{% trans "All events" %} ({{ all_events.count }})</a>
+ {% for t in tags %}
+ <a href="{% url "event_list_tag" t.slug %}" class="button{% if tag == t %} button--black{% else %} button--white{% endif %}">
+ {{ t }} ({{ t.item_count }})
+ </a>
+ {% endfor %}
+ {% endif %}
+ </div>
+
+ </div>
+
+ </div>
+
+ <div class="row">
+
+ <div class="col-xs-12">
+
+ <div class="white-bg page__content">
+ <div class="container">
+ {% for event in events.object_list %}
+ {% include 'agenda/includes/event_linecard.html' %}
+ {% endfor %}
+ </div>
+ </div>
+
+ </div>
+
+ </div>
+
+ </div>
+
+ {% pagination_for events %}
+
+ </div>
{% endblock %}
--- /dev/null
+{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags %}
+
+<div class="row event-line-box">
+
+ <div class="col-sm-2 col-md-3 col-lg-3 event-line-box__month">
+
+ {% ifchanged event.start.month %}
+ {{ event.start|date:'F' }}
+ {% endifchanged %}
+
+ </div>
+
+ <div class="col-sm-10 col-md-9 col-lg-9 event-line-box__content">
+
+ <div class="row">
+
+ <div class="col-xs-3">
+ {% with True as unit_booking %}
+ {% with True as line_display %}
+ {% include 'agenda/includes/event_metainfo.html' %}
+ {% endwith %}
+ {% endwith %}
+ </div>
+ <div class="col-xs-3">
+ {% with event.images.all|get_type:'card' as images %}
+ {% if images %}
+ <a href="{{ event.get_absolute_url }}">
+ <img class="event-line-box__image" src="{{ MEDIA_URL }}{% thumbnail images.0.file 203 140 %}" width="203" height="140">
+ </a>
+ {% endif %}
+ {% endwith %}
+ </div>
+ <div class="col-xs-6">
+ {% keywords_for event as tags %}
+ {% if event.departments.all.0 or tags %}
+ <div class="event-line-box__tags">
+ {% if event.departments.all.0 %}
+ <div class="tag tag--small dashed dashed--gray">
+ {{ event.departments.all.0.department.name }}
+ </div>
+ {% endif %}
+ {% keywords_for event as tags %}
+ {% if tags %}
+ <div class="tag tag--small tag--category">
+ {% keywords_for event as tags %}
+ {{tags.0}}
+ </div>
+ {% endif %}
+ </div>
+ {% endif %}
+ <h2 class="event-line-box__title">
+ <a href="{{ event.get_absolute_url }}">{{ event.title }}</a>
+ </h2>
+ <div class="event-line-box__desc">
+ {{ event.description|slice:":128" }}
+ </div>
+ </div>
+
+ </div>
+
+ </div>
+
+</div>
<small><u>{{ event.location.room }}</u></small>
{% endif %}
</a>
+ {% if not line_display %}
<a href="{{ event|google_nav_url }}" target="_blank" class="">
{% google_static_map event 900 300 15 %}
- </a/>
+ </a>
+ {% endif %}
<div class="page__meta-separator"></div>
{% endif %}
</p>
{% else %}
- {% trans "Free entry. Limited seats available" %}
+ <p>
+ {% trans "Free entry. Limited seats available" %}
+ </p>
{% endif %}
{% endif %}