This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from stenington/34-badge-index
Show all available badges on GET /
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,41 @@ | |||
{% extends "public/layout.html" %} | |||
{% block head %} | |||
<link rel="stylesheet" href="/stylesheets/criteria.css"> | |||
{% endblock %} | |||
{% block body %} | |||
<div class="row"> | |||
<div class="span7"> | |||
<h2>Mozilla Webmaker Badges</h2> | |||
</div> | |||
<div class="span10"> | |||
<strong>Webmaker Badges are here!</strong> | |||
<p> | |||
Badges are digital records of skills, achievements and participation. Now you can earn Webmaker Badges to recognize the skills that you learn while making awesome webmaking projects, as well as for participating in the Webmaker community and events. | |||
</p> | |||
<p> | |||
Head over to <a href="https://thimble.webmaker.org">Thimble</a>, pick a project and sign in to start earning! | |||
</p> | |||
</div> | |||
</div> | |||
{% for badge in badges %} | |||
<div class="media card"> | |||
<img class="img badge" src="{{ badge.relativeUrl('image')}}"> | |||
<div class="bd"> | |||
<hgroup> | |||
<span class="wordmark">Mozilla</span> | |||
<h1>{{ badge.name }}</h1> | |||
</hgroup> | |||
<dl class="dl-horizontal narrow-dt"> | |||
<dt>Description:</dt> | |||
<dd> | |||
{% if badge.criteria.content %} | |||
{{ badge.criteria.content | markdown }} | |||
{% else %} | |||
{{ badge.description | stupidSafe }} | |||
{% endif %} | |||
</dd> | |||
</dl> | |||
</div> | |||
</div> | |||
{% endfor %} | |||
{% endblock %} |