Skip to content
This repository
Browse code

Merge pull request #125 from rossbruniges/wrap-up-push

Closes #123 - adding messaging that the challenge is closed, when it is closed
  • Loading branch information...
commit f91c4fc8d4a502cc28dcb7b0539a68924186de63 2 parents c6170bc + ecdd5ac
Ross Bruniges authored February 20, 2013
12  gameon/static_site/templates/static_site/landing.html
@@ -26,7 +26,7 @@ <h1 class="logo"><a href="{{ url('static_site.home') }}"><img src="{{ static('ba
26 26
                     <p>Submissions open on {{ request.challenge.start_date.strftime('%B %e, %Y') }}</p>
27 27
                 {% endif %}
28 28
                 {% if request.challenge.has_closed() %}
29  
-                    <p><a href="{{ url('submissions.entry_list') }}">See what people submitted</a></p>
  29
+                    <p>Submissions for the competition are now closed. Thank you to all who submitted! Play <a href="{{ url('submissions.entry_list') }}">all the games</a> here and find out who the winners are in March.</p>
30 30
                 {% endif %}
31 31
             {% endif %}
32 32
         {% endif %}
@@ -34,7 +34,13 @@ <h1 class="logo"><a href="{{ url('static_site.home') }}"><img src="{{ static('ba
34 34
 </section>
35 35
 <section class="build cf">
36 36
     <div class="busta">
37  
-        <h2 class="exclaim">Submit your game prototype by {{ request.challenge.end_date.strftime('%B %e, %Y') }}</h2>
  37
+        {% if request.challenge.is_open() %}
  38
+            <h2 class="exclaim">Submit your game prototype by {{ request.challenge.end_date.strftime('%B %e, %Y') }}</h2>
  39
+        {% else %}
  40
+            <h2>Mozilla Game On</h2>
  41
+            <p><a href="https://donate.mozilla.org/page/signup/gameon-2012">Signup for our newsletter</a> or <a href="https://twitter.com/mozgames" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @mozgames</a></p>
  42
+            <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  43
+        {% endif %}
38 44
         <ul>
39 45
             <li class="make whimper">Make web-only, hackable or multi-device games.</li>
40 46
             <li class="invent whimper"><a href="{{ url('events.list') }}">Attend a Game Jam near you</a> or host your own! Our <a href="https://webmaker.org/events/guides/game-jam/">handy Event Kits</a> make it easy.</li>
@@ -63,6 +69,7 @@ <h2 class="announce">In partnership with:</h2>
63 69
         </section>
64 70
     </div>
65 71
 </section>
  72
+{% if not request.challenge.has_closed() %}
66 73
 <section class="participate cf">
67 74
     <div class="busta cf">
68 75
         <div class="wrapper">
@@ -113,4 +120,5 @@ <h2 class="exclaim">Come to a Game Jam!</h2>
113 120
         </div>
114 121
     </div>
115 122
 </section>
  123
+{% endif %}
116 124
 {% endblock %}

0 notes on commit f91c4fc

Please sign in to comment.
Something went wrong with that request. Please try again.