Improve schedule - speaker nav

Add link to speaker profile from presentation detail page.
Include twitter and homepage on speaker profile.
This commit is contained in:
Joel Addison 2019-10-21 09:21:25 +10:00
parent 4f28eb00a1
commit 249adba527
2 changed files with 14 additions and 4 deletions

View file

@ -28,7 +28,7 @@
{% speaker_photo speaker 120 as speaker_photo_url %}
<img src="{{ speaker_photo_url }}" alt="{{ speaker }}" class="rounded-circle img-fluid">
<p>
<strong>{{ speaker }}</strong><br />
<strong><a href="{% url "speaker_profile" speaker.pk %}">{{ speaker }}</a></strong><br />
{% if speaker.twitter_username %}
<a href="https://twitter.com/{{ speaker.twitter_username }}">{{ speaker.twitter_username|twitter_handle }}</a><br />
{% endif %}

View file

@ -2,10 +2,20 @@
{% load i18n %}
{% load lca2018_tags %}
{% load lca2019_tags %}
{% load thumbnail %}
{% block head_title %}{{ speaker.name }}{% endblock %}
{% block page_title %}{{ speaker.name }}{% endblock %}
{% block head_title %}Speaker - {{ speaker.name }}{% endblock %}
{% block page_title %}Speaker - {{ speaker.name }}{% endblock %}
{% block page_lead %}
{% if speaker.twitter_username %}
<a href="https://twitter.com/{{ speaker.twitter_username }}">{{ speaker.twitter_username|twitter_handle }}</a>
{% endif %}
{% if speaker.twitter_username and speaker.homepage %} | {% endif %}
{% if speaker.homepage %}
<a href="{{ speaker.homepage }}">{{ speaker.homepage }}</a>
{% endif %}
{% endblock %}
{% block content %}
<div class="row">
@ -18,7 +28,7 @@
<div class="bio">{{ speaker.biography_html|safe }}</div>
<h3>Presentations</h3>
<h3 class="my-4">Presentations</h3>
<ul>
{% for presentation in presentations %}