Skip to content

Commit

Permalink
Add 'Vote' button to take judges to the voting page
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmusante committed Sep 3, 2024
1 parent 5df2422 commit 57199dd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 9 additions & 7 deletions IFComp/root/src/_current_entry_row.tt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@

[% IF entry.main_file %]
<div class="play-button">
<a itemprop="downloadUrl" href="[% c.uri_for_action( '/play/download', [ entry.id] ) %]" class="btn btn-default btn-lg">
<a itemprop="downloadUrl" href="[% c.uri_for_action( '/play/download', [ entry.id] ) %]" class="btn btn-default btn">
<span class="glyphicon glyphicon-cloud-download"></span> Download
</a>
</div>
Expand All @@ -141,7 +141,7 @@
&& entry.id != 2783 && entry.id != 2803 && entry.id != 2873
%]
<div class="play-button">
<a itemprop="url" href="[% c.uri_for_action( '/play/play_online', [ entry.id ] ) %]" class="btn btn-default btn-lg" target="_blank">
<a itemprop="url" href="[% c.uri_for_action( '/play/play_online', [ entry.id ] ) %]" class="btn btn-default btn" target="_blank">
<span class="glyphicon glyphicon-chevron-right"></span> Play online
</a>
</div>
Expand All @@ -150,17 +150,19 @@

[% IF entry.walkthrough_file %]
<div class="play-button">
<a href="[% c.uri_for( '/' _ entry.id _ '/walkthrough/' _ entry.walkthrough_file.basename ) %]" target="_blank" class="btn btn-default btn-lg">
<a href="[% c.uri_for( '/' _ entry.id _ '/walkthrough/' _ entry.walkthrough_file.basename ) %]" target="_blank" class="btn btn-default btn">
<span class="glyphicon glyphicon-question-sign"></span> Walkthrough
</a>
</div>
[% END %]

<!-- INCLUDE _rating_controls.tt -->

</div>

[% IF current_comp.status == 'open_for_judging' %]
<div class="play-button">
<a href="/ballot/vote" class="btn btn-default"><span class="glyphicon glyphicon-edit"></span>Vote</a>
</div>
[% END %]

</div>
</div>

<style>
Expand Down
6 changes: 5 additions & 1 deletion IFComp/root/src/ballot/index.tt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
</div>

<h1 class="page-header">Welcome, [% IF user_is_author %]author![% ELSE %]judge! <small>You are judging, right?</small>[% END %]</h1>
<p>From this page, you can download and play all of this year's IFComp entries — either <a href="#browse">browsing them as a list</a>, or downloading the whole set at once.[% IF current_comp.status == 'open_for_judging' %] You can also <a href="/ballot/vote">jump to the ballot</a> to start rating the games you have played so far.[% END %]</p>
<p>From this page, you can download and play all of this year's IFComp entries
— either <a href="#browse">browsing them as a list</a>, or downloading the
whole set at once.[% IF current_comp.status == 'open_for_judging' %] You can
also <a href="/ballot/vote">jump to the ballot</a> to start rating the games
you have played so far.[% END %]</p>

[% IF zip_file_mb %]

Expand Down

0 comments on commit 57199dd

Please sign in to comment.