2017-10-09 08:29:29 +00:00
|
|
|
{% extends 'base.html' %}
|
2017-12-02 19:24:54 +00:00
|
|
|
|
|
|
|
{% load markdownify %}
|
|
|
|
|
2017-10-09 08:29:29 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="row container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col m8">
|
|
|
|
<h3 class="">{{ challenge.name }}</h3>
|
|
|
|
|
2018-01-31 16:27:35 +00:00
|
|
|
{% if challenge.description %}
|
|
|
|
<p style="">{{ challenge.description | markdownify }}</p>
|
|
|
|
{% else %}
|
|
|
|
<p style="">{{ challenge.blurb | markdownify }}</p>
|
|
|
|
{% endif %}
|
2017-10-08 09:17:51 +00:00
|
|
|
|
2017-10-09 08:29:29 +00:00
|
|
|
<div class="section">
|
2017-12-02 19:24:54 +00:00
|
|
|
{% if challenge.creator.profile.contact_info %}
|
|
|
|
<p>{{ challenge.creator.profile.contact_info }}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if challenge.creator.email %}
|
|
|
|
<div class="valign-wrapper"><i class="material-icons">email</i> {{ challenge.creator.email }}</div>
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if challenge.creator.profile.phone_number %}
|
2017-12-03 13:46:54 +00:00
|
|
|
<div class="valign-wrapper"><i
|
|
|
|
class="material-icons">phone</i> {{ challenge.creator.profile.phone_number }}</div>
|
2017-12-02 19:24:54 +00:00
|
|
|
{% endif %}
|
2017-10-08 09:17:51 +00:00
|
|
|
</div>
|
2017-10-07 17:55:52 +00:00
|
|
|
</div>
|
|
|
|
|
2017-10-09 08:29:29 +00:00
|
|
|
<div class="col m4">
|
|
|
|
<ul class="collection">
|
|
|
|
<li class="collection-item avatar">
|
2017-12-02 19:24:54 +00:00
|
|
|
<img src="/media/{{ challenge.creator.profile.icon }}"
|
2017-10-09 08:29:29 +00:00
|
|
|
alt="" class="circle">
|
|
|
|
<span class="title">Author</span>
|
2018-01-31 14:44:00 +00:00
|
|
|
<p><b>{{ challenge.creator.get_full_name }}</b></p>
|
2017-10-09 08:29:29 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2017-12-02 19:24:54 +00:00
|
|
|
|
2018-01-31 14:44:00 +00:00
|
|
|
{% if challenge.tags.all %}
|
|
|
|
<p>Relevant keywords:</p>
|
|
|
|
<ul class="browser-default">
|
2017-12-03 13:46:54 +00:00
|
|
|
{% for tag in challenge.tags.all %}
|
|
|
|
<li class="collection-item">
|
|
|
|
<span class="">{{ tag.name }}</span>
|
2017-12-02 19:24:54 +00:00
|
|
|
</li>
|
2017-12-03 13:46:54 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2018-01-31 14:44:00 +00:00
|
|
|
{% endif %}
|
2017-12-02 19:24:54 +00:00
|
|
|
|
2018-01-31 14:44:00 +00:00
|
|
|
{% if challenge.required_items.all %}
|
|
|
|
<p>Relevant inventory:</p>
|
2017-12-03 13:46:54 +00:00
|
|
|
|
2018-01-31 14:44:00 +00:00
|
|
|
<ul class="browser-default">
|
2017-12-03 13:46:54 +00:00
|
|
|
{% for item in challenge.required_items.all %}
|
|
|
|
{% if not item.hidden %}
|
2017-12-02 19:24:54 +00:00
|
|
|
<li class="collection-item">
|
2017-12-03 13:46:54 +00:00
|
|
|
<span class="">{{ item.item_name }}</span>
|
2017-12-02 19:24:54 +00:00
|
|
|
</li>
|
2017-12-03 13:46:54 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2018-01-31 14:44:00 +00:00
|
|
|
{% endif %}
|
2017-10-08 00:11:04 +00:00
|
|
|
</div>
|
2017-10-07 17:55:52 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-09 08:29:29 +00:00
|
|
|
{% endblock %}
|