Skip to content

Commit

Permalink
Added link to my participating competitions
Browse files Browse the repository at this point in the history
  • Loading branch information
irjudson committed Aug 7, 2013
1 parent 4f2fe85 commit 0c33075
Showing 1 changed file with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions codalab/apps/web/templates/web/my/_entered.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{% if not competitions %}
<p>You have not participated in any competitions.</p>
<p>You have not participated in any competitions.</p>
{% else %}
{% for item in competitions %}
<div class="competition-tile">
{% for item in competitions %}
<div class="competition-tile">
<a href="/competition/{{item.competition.id}}">

<article class="subContainer">
<input id="competitionID" type="hidden" value="{{ item.competition.pk }}" />
<div class="competitionTileLftStrip"></div>
<div class="articleImageContainer">
<div class="subContainerPadding">
<!-- Image-------------- -->
<figure class="articleImage">
{% if item.competition.image_url %}
<img src="{{ item.competition.image_url }}" width="115" height="90">
{% endif %}
<img src="{{ item.competition.image_url }}" width="115" height="90">
{% endif %}
</figure>
<!-- Image-------------- -->
</div>
</div>
<div class="articleTextArea">
Expand All @@ -25,27 +25,12 @@ <h3>{{ item.competition.title }}</h3>
</div>
<p>{{ item.competition.description }}</p>
<div class="competitionActions">
<label class="status{{item.status.name}}">{{ item.status.description }}</label>
</div>
</div>
</div>
{% comment %}<div class="CompetitionDetail">
<div class="CompetitionDetailBox">
<div class="CompetitionDetailTbl">
<label>deadline:</label>
<label>10-10-10</label>
</div>
<div class="CompetitionDetailTbl">
<label>rewards:</label>
<label>information</label>
</div>
<div class="CompetitionDetailTbl">
<label>applicants:</label>
<label>2,002</label>
</div>
</div>
</div>{% endcomment %}
</article>
</div>
{% endfor %}
<label class="status{{item.status.name}}">{{ item.status.description }}</label>
</div>
</div>
</div>
</article>
</a>
</div>
{% endfor %}
{% endif %}

0 comments on commit 0c33075

Please sign in to comment.