2465f2645e
I've looked through the database and I can't find any accepted proposals that actually contain anything to linkify - but I've had several requests from people that I think are reasonable, things like being able to link to their project (we ask them to provide a project url but we don't use that link) This seems like a reasonably fast way to let those people add a link. We still have to manually accept changes to their proposal so we have a chance to look at the content of the url if we want. The urlize filter adds rel=nofollow to the link automatically.
76 lines
3.1 KiB
HTML
76 lines
3.1 KiB
HTML
{% extends "symposion/schedule/public_base.html" %}
|
|
|
|
{% load lca2018_tags %}
|
|
{% load sitetree %}
|
|
{% load staticfiles %}
|
|
{% load thumbnail %}
|
|
|
|
{% block head_title %}Presentation: {{ presentation.title }}{% endblock %}
|
|
|
|
{% block breadcrumbs %}{% sitetree_breadcrumbs from "main" %}{% endblock %}
|
|
|
|
{% block header_inset_image %}{% with audience=presentation.proposal.get_target_audience_display %}{% if audience == "Business" %}{% illustration "falls.svg" %}{% elif audience == "Community" %}{% illustration "bridge.svg" %}{% elif audience == "Developer"%}{% illustration "hobart.svg" %}{% elif audience == "User" %}{% illustration "antarctica.svg" %}{% else %}{% illustration "casino.svg" %}{% endif %}{% endwith %}{% endblock %}
|
|
|
|
{% block header_background_image %}{% presentation_bg_number presentation 4 as bg_number %}{% if bg_number == 0 %}{% static "lca2018/images/mt_anne_bg_optimised.jpg" %}{% elif bg_number == 1 %}{% static "lca2018/images/the_neck_bg_optimised.jpg" %}{% elif bg_number == 2 %}{% static "lca2018/images/snug_falls_bg_optimised.jpg" %}{% elif bg_number == 3 %}{% static "lca2018/images/sleepy_bay_bg_optimised.jpg" %}{% endif %}{% endblock %}
|
|
|
|
{% block header_title %}{{ presentation.title }}{% endblock %}
|
|
|
|
{% block header_paragraph %}
|
|
<p>
|
|
Presented by
|
|
{% for speaker in presentation.speakers %}
|
|
<a href="{% url "speaker_profile" speaker.pk %}">{{ speaker }}</a>{% if not forloop.last %}, {% endif %}
|
|
{% endfor %}
|
|
<br />
|
|
{% if presentation.slot %}
|
|
{{ presentation.slot.day.date|date:"l" }}
|
|
{{ presentation.slot.start}}–{{ presentation.slot.end }}
|
|
<br />
|
|
{% endif %}
|
|
{% if presentation.proposal.get_target_audience_display %}
|
|
<strong>Target audience:</strong>
|
|
{{ presentation.proposal.get_target_audience_display }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if presentation.unpublish %}
|
|
<p><strong>Presentation not published.</strong></p>
|
|
{% endif %}
|
|
|
|
<h2>Abstract</h2>
|
|
|
|
<div class="abstract">{{ presentation.abstract_html|urlize|safe }}</div>
|
|
|
|
<h2>Presented by</h2>
|
|
<div class="presenters">
|
|
{% for speaker in presentation.speakers %}
|
|
{% speaker_photo speaker 512 as speaker_photo_url %}
|
|
{% include "_right_floating_image.html" with image_url=speaker_photo_url %}
|
|
|
|
<h3>
|
|
<a href="{% url "speaker_profile" speaker.pk %}">{{ speaker }}</a>
|
|
|
|
{% if speaker.homepage or speaker.twitter_username %}
|
|
<div class="btn-group">
|
|
{% if speaker.homepage %}
|
|
<a href="{{ speaker.homepage}}" class="btn-svg" title="Homepage">
|
|
{% include "cms_pages/home_page_blocks/btn_generic_link.html" %}
|
|
</a>
|
|
{% endif %}
|
|
{% if speaker.twitter_username %}
|
|
<a href="https://twitter.com/{{ speaker.twitter_username }}" class="btn-svg" title="{{ speaker}} on twitter">
|
|
{% include "cms_pages/home_page_blocks/btn_twitter.html" %}
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</h3>
|
|
|
|
<div class="bio">{{ speaker.biography_html|safe}}</div>
|
|
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% endblock %}
|