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/challenges.html

45 lines
1.3 KiB
HTML
Raw Normal View History

{% extends 'base.html' %}
{% load markdownify %}
{% block content %}
<div class="row container">
<div class="section slogan">
<h2 class="center-align" style="font-weight:bold">Challenges<br></h2>
2017-10-08 00:11:04 +00:00
</div>
</div>
2017-10-08 00:11:04 +00:00
<div class="row container challenges">
<div class="row">
{% for challenge in challenges %}
<div class="col s12 m4">
2018-01-31 14:44:00 +00:00
<div class="card">
<div class="card-content" style="overflow: hidden; height:200px;">
2018-01-31 14:44:00 +00:00
<div class="card-title"><b>{{ challenge.name }}</b></div>
<p style="text-align: justify;">
{% if challenge.blurb %}
{{ challenge.blurb | markdownify }}
{% else %}
{{ challenge.description|slice:":500" | markdownify }}
{% endif %}
</p>
2018-01-31 14:44:00 +00:00
<div style="padding-top: 15px;">
{% for tag in challenge.tags.all %}
<div class="chip">{{ tag.name }}</div>
{% endfor %}
</div>
</div>
2018-01-31 14:44:00 +00:00
<div class="card-action">
2018-01-31 15:52:23 +00:00
<a href="/challenge/{{ challenge.id }}" class="btn-large lightlink">I can do it</a>
2018-01-31 14:44:00 +00:00
</div>
2017-10-08 00:11:04 +00:00
</div>
</div>
{% endfor %}
</div>
2017-10-08 00:11:04 +00:00
</div>
{% endblock %}