This commit is contained in:
root 2018-08-21 10:43:37 +00:00
parent 89e0dfc0eb
commit ab7a4d3b99
8 changed files with 20 additions and 6 deletions

View File

@ -193,3 +193,8 @@ label, button {
button { button {
background: #99999 !important; background: #99999 !important;
} }
p {
line-height: 1.3;
}

View File

@ -114,7 +114,7 @@ class Content(models.Model):
if self.teaser: if self.teaser:
value = markdownify(self.teaser) value = markdownify(self.teaser)
elif self.header: elif self.header:
value = ox.strip_tags(ox.decode_html(markdownify(self.header)))[:100] value = ox.sanitize_html(ox.decode_html(markdownify(self.header)))
else: else:
value = '' value = ''
return mark_safe(value) return mark_safe(value)

View File

@ -16,7 +16,9 @@
<h4 class="sidebar-h4"> Past Events </h4> <h4 class="sidebar-h4"> Past Events </h4>
{% include "event_preview.html" with events=past_events %} {% include "event_preview.html" with events=past_events %}
{% endif %} {% endif %}
<a href="index/">more</a> <a href="/events/index/">All Events</a>
<br>
<br>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -33,6 +33,4 @@
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<br>
<br>
</div> </div>

View File

@ -26,6 +26,9 @@
<h4 class="sidebar-h4"> Past Events </h4> <h4 class="sidebar-h4"> Past Events </h4>
{% include "event_preview.html" with events=past_events %} {% include "event_preview.html" with events=past_events %}
{% endif %} {% endif %}
<a href="/events/index/">All Events</a>
<br>
<br>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -8,7 +8,9 @@
{% endfor %} {% endfor %}
{% with section|lower|add:'_list' as section_list %} {% with section|lower|add:'_list' as section_list %}
{% if has_more_content %} {% if has_more_content %}
<a href="{% url section_list %}">more</a> <a href="/{{section|lower}}/index/">All {{ section }}</a>
<br>
<br>
{% endif %} {% endif %}
{% endwith %} {% endwith %}
</div> </div>

View File

@ -27,6 +27,8 @@
<div class="small-6 medium-4 medium-offset-2 large-2 large-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>
{% else %}
&nbsp;
{% endif %} {% endif %}
</div> </div>
<div class="small-6 medium-4 end columns"> <div class="small-6 medium-4 end columns">

View File

@ -21,7 +21,9 @@
</div> </div>
{% endfor %} {% endfor %}
{% if more_content %} {% if more_content %}
<a href="index/">more</a> <a href="/{{section|lower}}/index/">All {{ section }}</a>
<br>
<br>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}