dates to events & UI changes

This commit is contained in:
vaishk 2017-12-24 02:34:44 +05:30
parent f4f6b440b8
commit b797e8e90d
3 changed files with 18 additions and 6 deletions

View File

@ -179,7 +179,11 @@ table thead, table tbody, table tfoot {
font-weight: 600; font-weight: 600;
} }
.content-date {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
}

View File

@ -8,6 +8,14 @@
{% endif %} {% endif %}
<div class="index-text"> <div class="index-text">
<h4><a href="{{ content.get_absolute_url }}" class="big-title">{{content.title}}</a></h4> <h4><a href="{{ content.get_absolute_url }}" class="big-title">{{content.title}}</a></h4>
{% if content.type.name == 'events' %}
<h6 class="content-date">
<font color="#ef4e5c">
<b> {{ content.datestart }} {% if content.dateend %} - {{content.dateend}} {% endif %} </b>
</font>
{% if content.place %}<br/>{{content.place}}{% endif%}
</h6>
{% endif %}
<p> {{content.formatted_header|safe}} </p> <p> {{content.formatted_header|safe}} </p>
<p> {{content.formatted_body|safe}} </p> <p> {{content.formatted_body|safe}} </p>
{% include "opt.html" %} {% include "opt.html" %}

View File

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="row"> <div class="row">
<div class="small-4 small-offset-2 columns results-title"> <div class="medium-8 medium-offset-2 columns results-title">
{% if section %} {% if section %}
<h3> {{section }}</h3> <h3> {{section }}</h3>
{% else %} {% else %}
@ -15,7 +15,7 @@
{% for row in content %} {% for row in content %}
{% if row.type.name == 'news' %} {% if row.type.name == 'news' %}
<div class="row"> <div class="row">
<div class= "small-4 small-offset-2 columns"> <div class= "medium-8 medium-offset-2 columns">
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{row.datestart}} </b> <h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{row.datestart}} </b>
{{ row.title }} <br /> {{ row.title }} <br />
{{ row.formatted_header|striptags|safe }} </font> {{ row.formatted_header|striptags|safe }} </font>
@ -24,12 +24,12 @@
</div> </div>
{% else %} {% else %}
<div class="row results"> <div class="row results">
<div class="small-4 small-offset-2 columns"> <div class="small-6 medium-4 medium-offset-2 large-2 large-offset-2 columns">
{% if row.image_url %} {% if row.image_url %}
<a href="{{ row.get_absolute_url }}"> <img src="{{ row.image_url }}"> </a> <a href="{{ row.get_absolute_url }}"> <img src="{{ row.image_url }}"> </a>
{% endif %} {% endif %}
</div> </div>
<div class="small-4 end columns"> <div class="small-6 medium-4 end columns">
<a href="{{ row.get_absolute_url }}" class="sidebar-title">{{ row.title }}</a> <a href="{{ row.get_absolute_url }}" class="sidebar-title">{{ row.title }}</a>
{% if row.type.name == 'events' %} {% if row.type.name == 'events' %}
<h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{ row.datestart }} {% if row.dateend %} - {{row.dateend}} {% endif %} </b></font> <h6 class="sidebar-date"> <font color="#ef4e5c"> <b> {{ row.datestart }} {% if row.dateend %} - {{row.dateend}} {% endif %} </b></font>
@ -45,7 +45,7 @@
<br> <br>
{% if content.has_other_pages %} {% if content.has_other_pages %}
<div class="row"> <div class="row">
<div class="small-4 small-offset-4 columns"> <div class="medium-8 medium-offset-2 end columns">
<ul class="pagination"> <ul class="pagination">
{% if content.has_previous %} {% if content.has_previous %}
<li><a href="?{{ base_query }}&page={{ content.previous_page_number }}">&laquo;</a></li> <li><a href="?{{ base_query }}&page={{ content.previous_page_number }}">&laquo;</a></li>