Skip to content
GitLab
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
a6082dc1
Commit
a6082dc1
authored
Nov 19, 2019
by
gijs
Browse files
Test if a trajectory has a produser
parent
0f4b817d
Changes
2
Hide whitespace changes
Inline
Side-by-side
generator/models.py
View file @
a6082dc1
...
...
@@ -842,7 +842,10 @@ class Trajectory (Model):
# if self.title.value:
# return os.path.join(SITE_URL, self.prefix, '{}.html'.format(keyFilter(self.title.value)))
# else:
return
self
.
produser
.
target
.
link
if
self
.
produser
.
resolved
:
return
self
.
produser
.
target
.
link
else
:
return
None
class
Reflection
(
Model
):
contentType
=
'reflection'
...
...
generator/templates/trajectories.html
View file @
a6082dc1
...
...
@@ -21,7 +21,7 @@
</a>
</li>
{% endfor %}
{% if re
l
flections %}
{% if reflections %}
<a
href=
"#reflections"
>
Reflections
</a>
{% endif %}
</ul>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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