This repository was archived by the owner on Apr 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathtalk.html
More file actions
83 lines (75 loc) · 3.2 KB
/
Copy pathtalk.html
File metadata and controls
83 lines (75 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{% extends "ep19/bs/base.html" %}
{% load static meta %}
{% block meta %}
{% render_meta title=talk.title %}
{% endblock meta %}
{% block content %}
<style type="text/css">
.speakers {
margin-top: 2em;
padding-top: 2em;
border-top: 1px solid #eee;
}
.speaker { margin-bottom: 2em; }
</style>
<div class="container page" id="talk_page">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">{# TODO: replace hardcoded paths by generated ones! #}
<li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-item"><a href="/events/sessions/#Talks">Talks</a></li>
<li class="breadcrumb-item active">{{ talk_as_dict.title }}<li>
</ol>
</nav>
<div class="row">
<div class="col-md-12">
<div class="talk">
<h1>{{ talk.title }}</h1>
<h3>{{ talk.sub_title }}</h3>
<h5>{% for speaker in talk_as_dict.speakers %}
<a href="{% url 'profiles:profile' profile_slug=speaker.slug %}">{{ speaker.name }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
</h5>
<p>
{% for tag in talk_as_dict.tags %}
<span class="badge badge-secondary">{{ tag }}</span>
{% endfor %}
</p>
{% if talk_as_dict.schedule_url %}
<a class="btn btn-primary" href="{{ talk_as_dict.schedule_url }}">See in schedule</a>
{% endif %}
{% if talk_as_dict.slides_file_url %}
<a class="btn btn-primary" href="{% get_media_prefix %}{{ talk_as_dict.slides_file_url }}">Download Slides</a>
{% endif %}
{% if talk_as_dict.slides_remote_url %}
<a class="btn btn-primary" href="{{ talk_as_dict.slides_remote_url }}">View Slides</a>
{% endif %}
{% if talk_as_dict.video_url %}
<a class="btn btn-primary" href="{{ talk_as_dict.video_url }}">View Recording</a>
{% endif %}
<p>{{ talk_as_dict.abstract|urlize|linebreaks }}</p>
<p>
<code>Type: {{ talk.get_type_display }}; Python level: {{ talk.get_level_display }}; Domain level: {{ talk.get_domain_level_display }}</code>
</p>
{% if can_update_talk %}
<a href='{% url "talks:update_talk" talk.slug %}' class='btn btn-outline-success'>Update Talk</a>
{% endif %}
{% if can_submit_slides %}
<a href='{% url "talks:submit_slides" talk.slug %}' class='btn btn-outline-success'>Submit slides</a>
{% endif %}
<br />
</div>
<div class="speakers">
{% for speaker in talk_as_dict.speakers %}
<div class="speaker">
<h3>{{ speaker.name }}</h3>
<h4><a href="{{ speaker.company_homepage }}" target="_blank">{{ speaker.company }}</a></h4>
<p>
{{ speaker.bio|linebreaks }}
</p>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}