]> git.parisson.com Git - teleforma.git/commitdiff
fix no professor.user.username
authoryomguy <yomguy@parisson.com>
Tue, 2 Aug 2016 16:41:20 +0000 (18:41 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 2 Aug 2016 16:41:20 +0000 (18:41 +0200)
teleforma/templates/teleforma/inc/conference_list.html

index 753fcea1e1cbcc5515f2cbdf8299bf145195808f..3e02bce0c3ba7fc9c479ca719fd2b045dc0f9f82 100644 (file)
@@ -24,7 +24,7 @@
                     <dl class="listing" style="font-size: 1.2em;">
                     <dt>{% trans "Title" %}</dt><dd>{{ stream.conference.course.title }}</dd>
                     <dt>{% trans "Session" %}</dt><dd>{{ stream.conference.session }}</dd>
-                    <dt>{% trans "Professor" %}</dt><dd><a href="{% url telemeta-profile-detail stream.conference.professor.user.username %}" target="_blank">{{ stream.conference.professor }}</a></dd>
+                    <dt>{% trans "Professor" %}</dt><dd>{% if stream.conference.professor.user.username %}<a href="{% url telemeta-profile-detail stream.conference.professor.user.username %}" target="_blank">{{ stream.conference.professor }}</a>{% endif %}</dd>
                     <dt>{% trans "Begin" %}</dt><dd>{{ stream.conference.date_begin }}</dd>
                     </dl>
                  </div>
@@ -48,4 +48,4 @@
     </table>
 </div>
 {% endif %}
-{% endwith %}
\ No newline at end of file
+{% endwith %}