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
509fdc2c
Commit
509fdc2c
authored
Nov 13, 2019
by
gijs
Browse files
Remove names at produser overview.
parent
3ba04ec6
Changes
4
Hide whitespace changes
Inline
Side-by-side
generator/models.py
View file @
509fdc2c
...
@@ -819,6 +819,11 @@ class Produser (Model):
...
@@ -819,6 +819,11 @@ class Produser (Model):
'bibliography'
:
multiLinkMultiReverse
(
'bibliography'
,
'produsers'
),
'bibliography'
:
multiLinkMultiReverse
(
'bibliography'
,
'produsers'
),
}
}
@
property
def
content_without_name
(
self
):
name
=
self
.
name
.
value
if
self
.
name
.
value
else
self
.
produser
.
value
return
mark_safe
(
re
.
sub
(
'^<p>'
+
name
,
'<p>'
,
self
.
content
,
re
.
I
))
class
Trajectory
(
Model
):
class
Trajectory
(
Model
):
contentType
=
'trajectory'
contentType
=
'trajectory'
...
...
generator/templates/produsers.html
View file @
509fdc2c
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<section
class=
"produser--item"
>
<section
class=
"produser--item"
>
<h2
class=
"produser"
><a
href=
"produsers/{{ produser.key }}.html"
>
{% if produser.name %}{{ produser.name }}{% else %}{{ produser.produser }}{% endif %}
</a></h2>
<h2
class=
"produser"
><a
href=
"produsers/{{ produser.key }}.html"
>
{% if produser.name %}{{ produser.name }}{% else %}{{ produser.produser }}{% endif %}
</a></h2>
{% if produser.content %}
{% if produser.content %}
{{ produser.content|truncatechars_html:200 }}
{{ produser.content
_without_name
|truncatechars_html:200 }}
{% endif %}
{% endif %}
</section>
</section>
{% endfor %}
{% endfor %}
...
...
generator/templates/static/styles.simple.css
View file @
509fdc2c
...
@@ -657,9 +657,6 @@ section.audio {
...
@@ -657,9 +657,6 @@ section.audio {
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
}
}
.taglist
h3
{
margin-top
:
1em
;
}
.taglist
:first-child
h3
{
.taglist
:first-child
h3
{
margin-top
:
0
;
margin-top
:
0
;
}
}
...
...
generator/templates/trajectories.html
View file @
509fdc2c
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
{% if trajectory.summary %}
{% if trajectory.summary %}
{{ trajectory.summary }}
{{ trajectory.summary }}
{% else %}
{% else %}
{{ trajectory.content }}
{{ trajectory.content
|truncatechars_html:250
}}
{% endif %}
{% endif %}
</section>
</section>
{% endfor %}
{% endfor %}
...
...
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