Skip to content

Commit

Permalink
Fixed "my competitions"
Browse files Browse the repository at this point in the history
Changed order so participation is before management (since it's the more
common case).
Fixed partials so participation is filled in correctly.
  • Loading branch information
irjudson committed Aug 7, 2013
1 parent 8814181 commit 4f2fe85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions codalab/apps/web/templates/web/my/_entered.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if not participations %}
{% if not competitions %}
<p>You have not participated in any competitions.</p>
{% else %}
{% for item in participations %}
{% for item in competitions %}
<div class="competition-tile">
<article class="subContainer">
<input id="competitionID" type="hidden" value="{{ item.competition.pk }}" />
Expand Down
19 changes: 9 additions & 10 deletions codalab/apps/web/templates/web/my/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@
<div class="large-9 push-3 columns">
<div class="section-container auto competitionsDetailTabArea " data-section data-section-resized>
<section>
<p class="title" id="managed" data-section-title>
<a href="#manage">Competitions I'm Running</a>
<p class="title active" id="participating" data-section-title>
<a href="#participate">Competitions I'm Participating In</a>
</p>
<div class="content" data-section-content>
<div class="my_managed">
{% include "web/my/_managed.html" with competitions=my_competitions %}
<div class="my_participating">
{% include "web/my/_entered.html" with competitions=competitions_im_in %}
</div>
</div>
</section>
<section>
<p class="title" id="participating" data-section-title>
<a href="#participate">Competitions I'm Participating In</a>
</section> <section>
<p class="title" id="managed" data-section-title>
<a href="#manage">Competitions I'm Running</a>
</p>
<div class="content" data-section-content>
<div class="my_participating">
{% include "web/my/_entered.html" with competitions=competitions_im_in %}
<div class="my_managed">
{% include "web/my/_managed.html" with competitions=my_competitions %}
</div>
</div>
</section>
Expand Down

0 comments on commit 4f2fe85

Please sign in to comment.