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
f0b2f8ac
Commit
f0b2f8ac
authored
Nov 13, 2019
by
gijs
Browse files
Show title (if it's there)
parent
f1bfc911
Changes
2
Hide whitespace changes
Inline
Side-by-side
generator/models.py
View file @
f0b2f8ac
...
@@ -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
):
...
...
generator/templates/trajectories.html
View file @
f0b2f8ac
...
@@ -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 %}
...
...
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