-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkbox to hide games that have already been rated; general code cle…
…anup
- Loading branch information
Showing
11 changed files
with
101 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version: '3.2' | ||
services: | ||
app: | ||
build: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[% IF c.user.get_object.can_vote_for(entry) %] | ||
|
||
<div class="rating-controls" style="float: right;"> | ||
<p>Your rating: <select data-entry="[% entry.id %]" class="rating-select"> | ||
<span>Your rating: <select data-entry="[% entry.id %]" class="rating-select" aria-label="Rating for [% entry.title %]"> | ||
<option value="0">None</option> | ||
[% number = 1 %] | ||
[% WHILE number <= 10 %] | ||
<option value="[% number %]" [% IF rating_for_entry.${entry.id} == number %] selected="1" [% END %] >[% number %]</option> | ||
<option value="[% number %]"[% IF rating_for_entry.${entry.id} == number %] selected[% END %]>[% number %]</option> | ||
[% number = number + 1 %] | ||
[% END %] | ||
</select> | ||
|
@@ -15,7 +15,7 @@ | |
<span id="rating-status-[% entry.id %]-spinner" class="label label-default waiting" style="display:none">Submitting...</span> | ||
<span id="rating-status-[% entry.id %]-success" class="label label-success success" style="display:none">Rating recorded!</span> | ||
<span id="rating-status-[% entry.id %]-failure" class="label label-danger danger" style="display:none">Rating not recorded! (Uh oh. Contact [email protected] about this, please.)</span> | ||
</p> | ||
</span> | ||
</div> | ||
|
||
[% END %] |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
<style> | ||
.rating-controls { display: none } | ||
</style> | ||
|
||
<div class="container"> | ||
|
||
<div class="jumbotron"> | ||
|
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
|
||
.rating-controls { display: none } | ||
|
||
.play-button { display: inline-block } | ||
|
||
.error { | ||
color: #F11; | ||
|
Oops, something went wrong.