Commit f0b2f8ac authored by gijs's avatar gijs
Browse files

Show title (if it's there)

parent f1bfc911
...@@ -831,7 +831,9 @@ class Trajectory (Model): ...@@ -831,7 +831,9 @@ class Trajectory (Model):
return { return {
'produser': linkMultiReverse('produser', 'trajectories'), 'produser': linkMultiReverse('produser', 'trajectories'),
'category': fields.Single(fields.StringField(['artisttrajectory'])), 'category': fields.Single(fields.StringField(['artisttrajectory'])),
'tags': multiLinkMultiReverse('tag', 'trajectories') 'tags': multiLinkMultiReverse('tag', 'trajectories'),
'summary': fields.Single(fields.MarkdownField()),
'title': fields.Single(fields.StringField())
} }
class Pad (Model): class Pad (Model):
......
...@@ -46,9 +46,15 @@ ...@@ -46,9 +46,15 @@
<section class="trajectory-list--grid"> <section class="trajectory-list--grid">
{% for trajectory in trajectories %} {% for trajectory in trajectories %}
<section class="trajectory--item"> <section class="trajectory--item">
<h2 class="produser"> {% if trajectory.title.value %}
<a href="{{ trajectory.produser.target.link }}">{{ trajectory.produser }}</a> <h2 class="produser">
</h2> {{ trajectory.title }}
</h2>
{% else %}
<h2>
<a href="{{ trajectory.produser.target.link }}">{{ trajectory.produser }}</a>
</h2>
{% endif %}
{% if trajectory.summary %} {% if trajectory.summary %}
{{ trajectory.summary }} {{ trajectory.summary }}
{% else %} {% else %}
......
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