Skip to content

Commit

Permalink
Merge pull request #200 from jnywong/patch-submissions-access-regression
Browse files Browse the repository at this point in the history
🩹 Fix regression
  • Loading branch information
jnywong authored Nov 25, 2024
2 parents f63df7c + 539e1cf commit 607b716
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions frx_challenges/web/templates/submission/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@
<div class="row py-2">
<div class="col py-2">
<div class="row py-2">
<div class="col-8">
<div class="col-6">
<h1>{{ submission.name }}</h1>
{% if submission.description %}<p>{{ submission.description }}</p>{% endif %}
</div>
{% if is_owner %}
<div class="col-4 text-end">
<a href="{% url 'submissions-edit' submission.id %}"
class="btn btn-secondary mt-2 float-end">Edit submission</a>
<div class="col-6">
<div class=" col">
<a href="{% url 'collaborators-list' submission.id %}"
class="btn btn-secondary m-2 float-end">Manage collaborators</a>
</div>
<div class="col">
<a href="{% url 'submissions-edit' submission.id %}"
class="btn btn-primary m-2 float-end">Edit submission</a>
</div>
</div>
{% endif %}
</div>
Expand All @@ -44,10 +50,12 @@ <h1>{{ submission.name }}</h1>
</div>
</div>
<div class="row py-2 border-top">
<div class="col">
<a href="{% url 'upload' submission.id %}"
class="btn btn-primary mt-2 float-end">Upload</a>
</div>
{% if is_collaborator %}
<div class="col">
<a href="{% url 'upload' submission.id %}"
class="btn btn-primary mt-2 float-end">Upload</a>
</div>
{% endif %}
</div>
<div class="row py-2">
{% if versions %}
Expand Down

0 comments on commit 607b716

Please sign in to comment.