cleanups
This commit is contained in:
parent
89e0dfc0eb
commit
ab7a4d3b99
|
@ -193,3 +193,8 @@ label, button {
|
|||
button {
|
||||
background: #99999 !important;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -33,6 +33,4 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="small-6 medium-4 end columns">
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user