}
+ &__separator {
+
+ @include margin(2 0);
+
+ }
+
&__link {
display: block;
@include padding-left(2);
background: lighten($color_main, 20%);
color: $color-black-light;
+
+ &.active {
+ padding: 4px 20px;
+ @include padding-left(2);
+ color: $color-black-light;
+ background: lighten($color_main, 20%);
+ font-weight: weight(bold);
+ }
}
}
<div class="row">
<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 }}
{% endif %}
</h1>
- <div class="page__filters">
+ </div>
+
+ </div>
+
+ <div class="row">
+
+ <div class="col-sm-3 col-lg-2 page__sidebar">
+
+ <ul class="nav-tree nav-tree--level-{{ branch_level }}" data-sticky data-sticky-parent="row" data-sticky-offset="100" data-sticky-detach-at="971">
+ <li class="nav-tree__item">
+ <a class="nav-tree__link active" href="{{ page.get_absolute_url }}">{% trans 'Agenda' %}</a>
+
+ <ul class="nav-tree" data-summary>
+ <li class="nav-tree__item nav-tree__item--sub hide">
+ <a class="nav-tree__link nav-tree__link--sub" href="#"></a>
+ </li>
+ </ul>
+ </li>
+
+ <li class="nav-tree__separator">
+
+ </li>
+
{% 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" %}</a>
{% endcomment %}
{% for t in tags %}
- <a href="{% if tag == t %}{% url 'event_list' %}{% else %}{% url "event_list_tag" t.slug %}{% endif %}" class="button{% if tag == t %} button--black{% else %} button--white{% endif %}{% if t|tag_is_excluded %} button--tournees{% endif %}">
- {{ t }} {% if tag == t %}<i class="fa fa-times"></i>{% endif %}
- </a>
+ {% if not t|tag_is_excluded %}
+ <li class="nav-tree__item">
+ <a class="nav-tree__link{% if tag == t %} active{% endif %}" href="{% if tag == t %}{% url 'event_list' %}{% else %}{% url "event_list_tag" t.slug %}{% endif %}">
+ {{ t }} {% if tag == t %}<i class="fa fa-times"></i>{% endif %}
+ </a>
+ </li>
+ {% endif %}
{% endfor %}
{% endif %}
- </div>
+ </ul>
</div>
- </div>
-
- <div class="row">
-
- <div class="col-xs-12">
+ <div class="mb2 col-sm-9 col-lg-8 white-bg page__content" data-summary-content>
<div class="white-bg page__content">
<div class="container">
<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 %}
- {% ifchanged event.start.month %}
- {{ event.start|date:'F' }}
- {% endifchanged %}
+ <div class="col-sm-12 col-md-12 col-lg-12 event-line-box__month">
- </div>
+ <h2>{{ event.start|date:'F' }}</h2>
+
+ </div>
+
+ {% endifchanged %}
- <div class="col-sm-10 col-md-9 col-lg-9 event-line-box__content">
+ <div class="col-sm-12 col-md-12 col-lg-12 event-line-box__content">
<div class="row">
{% endif %}
</div>
{% endif %}
- <h2 class="event-line-box__title">
+ <h3 class="event-line-box__title">
<a href="{{ event.get_absolute_url }}">{{ event.title }}</a>
- </h2>
+ </h3>
<div class="event-line-box__desc">
{{ event.description|slice:":100" }}
</div>