Commit 93cc017f authored by gijs's avatar gijs
Browse files

Read further link fr trajectory descriptions

parent 5805bfeb
...@@ -510,7 +510,6 @@ a.tag { ...@@ -510,7 +510,6 @@ a.tag {
margin: 0; margin: 0;
} }
5
.trajectory-list { .trajectory-list {
margin-bottom: 1.5em; margin-bottom: 1.5em;
/*! margin-left: -1em; */ /*! margin-left: -1em; */
...@@ -529,7 +528,7 @@ a.tag { ...@@ -529,7 +528,7 @@ a.tag {
} }
.trajectory-list section.trajectory--item { .trajectory-list section.trajectory--item {
max-height: 300px; /* max-height: 300px; */
overflow: hidden; overflow: hidden;
/* border-top: 2px solid; /* border-top: 2px solid;
*//* background: linear-gradient(transparent 81.2%, var(--font-size-small) 98.5%); *//* background: linear-gradient(transparent 81.2%, var(--font-size-small) 98.5%);
...@@ -540,6 +539,9 @@ a.tag { ...@@ -540,6 +539,9 @@ a.tag {
outline-offset: 0px; outline-offset: 0px;
padding: 1em; padding: 1em;
} }
.trajectory-list section.trajectory--item img:nth-child(n+2) {
display: none;
}
.trajectory-list section.trajectory--item:hover { .trajectory-list section.trajectory--item:hover {
background: white; background: white;
} }
...@@ -707,4 +709,13 @@ section.audio { ...@@ -707,4 +709,13 @@ section.audio {
} }
.taglist li.letter:before { .taglist li.letter:before {
content: ''; content: '';
}
.read-further:after {
content: '';
background: url(images/jump-arrow.svg) no-repeat;
display: inline-block;
height: -7px;
width: 41px;
padding-bottom: 20px;
margin-left: 7px;
} }
\ No newline at end of file
...@@ -52,8 +52,9 @@ ...@@ -52,8 +52,9 @@
{% if trajectory.summary %} {% if trajectory.summary %}
{{ trajectory.summary }} {{ trajectory.summary }}
{% else %} {% else %}
{{ trajectory.content|truncatewords_html:30 }} {{ trajectory.content|truncatewords_html:60 }}
{% endif %} {% endif %}
<a href="{{ trajectory.produser.target.link }}" class="read-further">read further</a>
</section> </section>
{% endfor %} {% endfor %}
</section> </section>
......
...@@ -4,6 +4,8 @@ from django import template ...@@ -4,6 +4,8 @@ from django import template
from django.template.defaultfilters import stringfilter from django.template.defaultfilters import stringfilter
from django.conf import settings from django.conf import settings
import re
register = template.Library() register = template.Library()
# @register.filter # @register.filter
...@@ -24,3 +26,8 @@ def link_target_iterator (field): ...@@ -24,3 +26,8 @@ def link_target_iterator (field):
if link: if link:
yield link.target yield link.target
@register.filter
def cut_from_start (value, arg):
print(value)
print('should be removed', arg)
return re.sub('^' + str(arg), '', re.I)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment