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 {
background: #99999 !important;
}
p {
line-height: 1.3;
}

View File

@ -114,7 +114,7 @@ class Content(models.Model):
if self.teaser:
value = markdownify(self.teaser)
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:
value = ''
return mark_safe(value)

View File

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

View File

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

View File

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

View File

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

View File

@ -27,6 +27,8 @@
<div class="small-6 medium-4 medium-offset-2 large-2 large-offset-2 columns">
{% if row.image_url %}
<a href="{{ row.get_absolute_url }}"> <img src="{{ row.image_url }}"> </a>
{% else %}
&nbsp;
{% endif %}
</div>
<div class="small-6 medium-4 end columns">

View File

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