Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
93cc017f
Commit
93cc017f
authored
Nov 13, 2019
by
gijs
Browse files
Read further link fr trajectory descriptions
parent
5805bfeb
Changes
3
Show whitespace changes
Inline
Side-by-side
generator/templates/static/styles.simple.css
View file @
93cc017f
...
...
@@ -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
generator/templates/trajectories.html
View file @
93cc017f
...
...
@@ -52,8 +52,9 @@
{% if trajectory.summary %}
{{ trajectory.summary }}
{% else %}
{{ trajectory.content|truncatewords_html:
3
0 }}
{{ trajectory.content|truncatewords_html:
6
0 }}
{% endif %}
<a
href=
"{{ trajectory.produser.target.link }}"
class=
"read-further"
>
read further
</a>
</section>
{% endfor %}
</section>
...
...
generator/templatetags/generator_utils.py
View file @
93cc017f
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment