SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 349b328b authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Change detail display

parent e2525df0
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<h5>asymmetric:</h5> <h5>asymmetric:</h5>
<ul> <ul>
{% for rel in relations_asym %} {% for rel in relations_asym %}
<li>{% if rel.A != topic %}<a href="{% url 'ontology:topic_details' slug=rel.A.slug %}">{{ rel.A}}</a>{% else %}{{ rel.A }}{% endif %} {{ rel.get_relation_display }} {% if rel.B != topic %}<a href="{% url 'ontology:topic_details' slug=rel.B.slug %}">{{ rel.B }}</a>{% else %}{{ rel.B }}{% endif %}</li> <li>{% if rel.A != topic %}<a href="{% url 'ontology:topic_details' slug=rel.A.slug %}">{{ rel.A}}</a>{% else %}{{ rel.A }}{% endif %} <em>{{ rel.get_relation_display }}</em> {% if rel.B != topic %}<a href="{% url 'ontology:topic_details' slug=rel.B.slug %}">{{ rel.B }}</a>{% else %}{{ rel.B }}{% endif %}</li>
{% empty %} {% empty %}
<li>No relations have been defined</li> <li>No relations have been defined</li>
{% endfor %} {% endfor %}
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<h5>symmetric:</h5> <h5>symmetric:</h5>
<ul> <ul>
{% for rel in topic.relationsym_set.all %} {% for rel in topic.relationsym_set.all %}
<li>{% for reltopic in rel.topics.all %}{% if reltopic != topic %}<a href="{% url 'ontology:topic_details' slug=reltopic.slug %}">{{ reltopic }}</a>{% else %}{{ reltopic }}{% endif %}, {% endfor %} {{ rel.get_relation_display }}</li> <li>{% for reltopic in rel.topics.all %}{% if reltopic != topic %}<a href="{% url 'ontology:topic_details' slug=reltopic.slug %}">{{ reltopic }}</a>{% else %}{{ reltopic }}{% endif %}, {% endfor %} <em>{{ rel.get_relation_display }}</em></li>
{% empty %} {% empty %}
<li>No symmetric relations have been defined</li> <li>No symmetric relations have been defined</li>
{% endfor %} {% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment