Commit 509fdc2c authored by gijs's avatar gijs
Browse files

Remove names at produser overview.

parent 3ba04ec6
......@@ -819,6 +819,11 @@ class Produser (Model):
'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):
contentType = 'trajectory'
......
......@@ -39,7 +39,7 @@
<section class="produser--item">
<h2 class="produser"><a href="produsers/{{ produser.key }}.html">{% if produser.name %}{{ produser.name }}{% else %}{{ produser.produser }}{% endif %}</a></h2>
{% if produser.content %}
{{ produser.content|truncatechars_html:200 }}
{{ produser.content_without_name|truncatechars_html:200 }}
{% endif %}
</section>
{% endfor %}
......
......@@ -657,9 +657,6 @@ section.audio {
margin: 0;
padding: 0;
}
.taglist h3 {
margin-top: 1em;
}
.taglist :first-child h3 {
margin-top: 0;
}
......
......@@ -52,7 +52,7 @@
{% if trajectory.summary %}
{{ trajectory.summary }}
{% else %}
{{ trajectory.content }}
{{ trajectory.content|truncatechars_html:250 }}
{% endif %}
</section>
{% endfor %}
......
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