We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cca7af commit 5f02024Copy full SHA for 5f02024
1 file changed
hackathon/templates/hackathon/hackathon_list.html
@@ -5,8 +5,12 @@
5
{% if hackathons %}
6
<h2 class="p-orange text-center mb-4">Hackathons</h2>
7
{% for hackathon in hackathons %}
8
- {% include 'hackathon/includes/hackathon_card.html' %}
9
- <hr>
+ {% if hackathon.status == 'published' or user == hackathon.created_by %}
+ {% if not hackathon.status == 'deleted' %}
10
+ {% include 'hackathon/includes/hackathon_card.html' %}
11
+ <hr>
12
+ {% endif %}
13
14
{% endfor %}
15
{% else %}
16
<h2 class="text-center">There aren't any Hackathons at the moment!</h2>
@@ -16,4 +20,4 @@ <h2 class="text-center">There aren't any Hackathons at the moment!</h2>
20
{% include 'hackathon/includes/paginator.html' %}
17
21
</nav>
18
22
</section>
19
-{% endblock %}
23
+{% endblock %}
0 commit comments