-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
285 additions
and
3 deletions.
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
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
43 changes: 43 additions & 0 deletions
43
src/CG/PlatformBundle/Resources/views/Platform/rewards.html.twig
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% trans_default_domain 'CGPlatformBundle' %} | ||
|
||
{% extends "CGPlatformBundle:Layout:layout.html.twig" %} | ||
|
||
{% block title %}{{ parent() }} | {{ 'cg.rewards.page_header'|trans }} {% endblock %} | ||
|
||
{% block stylesheets %} | ||
{{ parent() }} | ||
<link rel="stylesheet" href="{{ asset('bundles/cgplatform/css/home.css') }}"> | ||
{% endblock %} | ||
|
||
{% block body %} | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Récompense Jedi</h3> | ||
</div> | ||
<div class="panel-body"> | ||
Pour devenir un jedi, il faudra entièrement controller la Force, pour cela, il faudra avoir 10 000 points. | ||
Pour gagner des points, rien de plus simple, faire partager ce site, aider les associations humanitaires et trouver les codes cachés | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Récompense Master</h3> | ||
</div> | ||
<div class="panel-body"> | ||
Pour devenir un master, il faudra trouver la bonne ramification sur GitHub et avoir 1 000 points. | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Récompense Padawan</h3> | ||
</div> | ||
<div class="panel-body"> | ||
C'est la première récompense, la plus facile, il faut faire un geste humanitaire. Faites un don! | ||
</div> | ||
</div> | ||
|
||
{% endblock %} | ||
|
79 changes: 79 additions & 0 deletions
79
src/CG/PlatformBundle/Resources/views/Ratings/list.html.twig
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{% trans_default_domain 'CGPlatformBundle' %} | ||
|
||
{% extends "CGPlatformBundle:Layout:layout.html.twig" %} | ||
|
||
{% block title %} | ||
{{ parent() }} | {{ 'ratings.list.page_header'|trans }} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<div> | ||
<ul> | ||
<div class="row"> | ||
<h2>{{ 'ratings.list.most_donated'|trans }}</h2> | ||
{% for event in most_donated_events %} | ||
<div class="col-sm-6 col-md-4"> | ||
<div class="thumbnail"> | ||
<div class="caption"> | ||
<h4>{{ event.name }}</h4> | ||
<p>{{ 'ratings.list.event.sum'|trans }}: {{ event.getSum }}</p> | ||
<p>{{ 'ratings.list.event.donor'|trans }}: {{ event.getCount }}</p> | ||
<p>{{ 'ratings.list.event.avg'|trans }}: {{ event.getAvg }}</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="row"> | ||
<h2>{{ 'ratings.list.best_donors'|trans }}</h2> | ||
{% for user in best_donors %} | ||
<div class="col-sm-6 col-md-4"> | ||
<div class="thumbnail"> | ||
<div class="caption"> | ||
<h4>{{ user.username }}</h4> | ||
<p>{{ 'ratings.list.user.sum'|trans }}: {{ user.getSum }}</p> | ||
<p>{{ 'ratings.list.user.count_events'|trans }}: {{ user.getCount }}</p> | ||
<p>{{ 'ratings.list.user.avg'|trans }}: {{ user.getAvg }}</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="row"> | ||
<h2>{{ 'ratings.list.best_users'|trans }}</h2> | ||
{% for user in best_users %} | ||
<div class="col-sm-6 col-md-4"> | ||
<div class="thumbnail"> | ||
<div class="caption"> | ||
<h4>{{ user.username }}</h4> | ||
<p>{{ 'ratings.list.user.points'|trans }}: {{ user.points }}</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="row"> | ||
<h2>{{ 'ratings.list.less_donated'|trans }}</h2> | ||
{% for event in less_donated_events %} | ||
<div class="col-sm-6 col-md-4"> | ||
<div class="thumbnail"> | ||
<div class="caption"> | ||
<h4>{{ event.name }}</h4> | ||
<p>{{ 'ratings.list.event.sum'|trans }}: {{ event.getSum }}</p> | ||
<p>{{ 'ratings.list.event.donor'|trans }}: {{ event.getCount }}</p> | ||
<p>{{ 'ratings.list.event.avg'|trans }}: {{ event.getAvg }}</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</ul> | ||
</div> | ||
{% endblock body %} | ||
|
||
{% block javascripts %} | ||
{{ parent() }} | ||
{% endblock javascripts %} |
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