This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
homepage-2017/templates/challenge.html

70 lines
2.1 KiB
HTML
Raw Normal View History

{% extends 'base.html' %}
{% load markdownify %}
{% block content %}
<div class="row container">
<div class="row">
<div class="col m8">
<h3 class="">{{ challenge.name }}</h3>
{% 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
<div class="section">
{% 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>&nbsp;{{ challenge.creator.email }}</div>
<br>
{% endif %}
{% if challenge.creator.profile.phone_number %}
<div class="valign-wrapper"><i
class="material-icons">phone</i>&nbsp;{{ challenge.creator.profile.phone_number }}</div>
{% endif %}
2017-10-08 09:17:51 +00:00
</div>
2017-10-07 17:55:52 +00:00
</div>
<div class="col m4">
<ul class="collection">
<li class="collection-item avatar">
<img src="/media/{{ challenge.creator.profile.icon }}"
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>
</li>
</ul>
2018-01-31 14:44:00 +00:00
{% if challenge.tags.all %}
<p>Relevant keywords:</p>
<ul class="browser-default">
{% for tag in challenge.tags.all %}
<li class="collection-item">
<span class="">{{ tag.name }}</span>
</li>
{% endfor %}
</ul>
2018-01-31 14:44:00 +00:00
{% endif %}
2018-01-31 14:44:00 +00:00
{% if challenge.required_items.all %}
<p>Relevant inventory:</p>
2018-01-31 14:44:00 +00:00
<ul class="browser-default">
{% for item in challenge.required_items.all %}
{% if not item.hidden %}
<li class="collection-item">
<span class="">{{ item.item_name }}</span>
</li>
{% 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>
{% endblock %}