formating

This commit is contained in:
root 2017-12-18 15:03:10 +00:00
parent e553567b6c
commit f6494c6adb
2 changed files with 11 additions and 6 deletions

View File

@ -39,7 +39,12 @@
</div> </div>
<div class="small-6 columns"> <div class="small-6 columns">
<a href="{{ events.get_absolute_url }}/" class="sidebar-title" >{{ events.title }}</a> <a href="{{ events.get_absolute_url }}/" class="sidebar-title" >{{ events.title }}</a>
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{ events.datestart }} </b></font> <br/></h6> <h6 class="sidebar-date">
<font color="#ef4e5c">
<b> {{ events.datestart }} {% if events.dateend %} - {{events.dateend}} {% endif %} </b>
</font>
{% if events.place %}<br/>{{events.place}}{% endif%}
</h6>
<p> {{ events.formatted_teaser }} </p> <p> {{ events.formatted_teaser }} </p>
</div> </div>
</div> </div>

View File

@ -5,15 +5,15 @@
{% endif %} {% endif %}
</div> </div>
<div class="small-6 columns"> <div class="small-6 columns">
<h6><a href="{{ content.get_absolute_url }}" class="sidebar-title"> {{content.title}} </a> </h6> <a href="{{ content.get_absolute_url }}" class="sidebar-title"> {{content.title}} </a>
{% if content.type.name == 'events' %}
<h6 class="sidebar-date"> <h6 class="sidebar-date">
{% if content.type.name == 'events' %}
<font color="#ef4e5c"> <font color="#ef4e5c">
<b> {{ content.datestart }} {% if content.dateend %} - {{content.dateend}} {% endif %} </b> <b> {{ content.datestart }} {% if content.dateend %} - {{content.dateend}} {% endif %} </b>
</font> </font>
{% if content.place %}<br/>{{content.place}}{% endif%} {% if content.place %}<br/>{{content.place}}{% endif%}
{% endif %} </h6>
</h6> {% endif %}
<p> {{ content.formatted_teaser }} </p> <p> {{ content.formatted_teaser }} </p>
</div> </div>
</div> </div>