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

Read further link fr trajectory descriptions

parent 5805bfeb
......@@ -510,7 +510,6 @@ a.tag {
margin: 0;
}
5
.trajectory-list {
margin-bottom: 1.5em;
/*! margin-left: -1em; */
......@@ -529,7 +528,7 @@ a.tag {
}
.trajectory-list section.trajectory--item {
max-height: 300px;
/* max-height: 300px; */
overflow: hidden;
/* border-top: 2px solid;
*//* background: linear-gradient(transparent 81.2%, var(--font-size-small) 98.5%);
......@@ -540,6 +539,9 @@ a.tag {
outline-offset: 0px;
padding: 1em;
}
.trajectory-list section.trajectory--item img:nth-child(n+2) {
display: none;
}
.trajectory-list section.trajectory--item:hover {
background: white;
}
......@@ -708,3 +710,12 @@ section.audio {
.taglist li.letter:before {
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 @@
{% if trajectory.summary %}
{{ trajectory.summary }}
{% else %}
{{ trajectory.content|truncatewords_html:30 }}
{{ trajectory.content|truncatewords_html:60 }}
{% endif %}
<a href="{{ trajectory.produser.target.link }}" class="read-further">read further</a>
</section>
{% endfor %}
</section>
......
......@@ -4,6 +4,8 @@ from django import template
from django.template.defaultfilters import stringfilter
from django.conf import settings
import re
register = template.Library()
# @register.filter
......@@ -24,3 +26,8 @@ def link_target_iterator (field):
if link:
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