Skip to content
This repository
Browse code

Adding in more entries into submitting a game once a user is logged in

  • Loading branch information...
commit 70abfb3e45e5466ce5923a8a1973e9f8794e2427 1 parent dba57f2
Ross Bruniges authored December 10, 2012
3  gameon/base/static/base/css/master.css
@@ -342,6 +342,9 @@ nav li a {
342 342
 .entries .cta {
343 343
     margin-top: 0.5em;
344 344
 }
  345
+.filter {
  346
+    margin-bottom: 1em;
  347
+}
345 348
 .filter ul {
346 349
     padding-left: 0;
347 350
 }
8  gameon/submissions/templates/submissions/list.html
@@ -67,7 +67,7 @@ <h1 class="busta shout">All Entries</h1>
67 67
             </div>
68 68
             <aside class="meta mini-col">
69 69
                 <h2 class="whimper">Filter entries</h2>
70  
-                <nav class="filter">
  70
+                <nav class="filter cf">
71 71
                     <ul>
72 72
                         <li>
73 73
                             {% if not category %}
@@ -87,6 +87,12 @@ <h2 class="whimper">Filter entries</h2>
87 87
                         {% endfor %}
88 88
                     </ul>
89 89
                 </nav>
  90
+                {% if request.challenge.has_started() %}
  91
+                {% if not request.challenge.has_closed() %}
  92
+                    <h2 class="whimper">Add your own game</h2>
  93
+                    {% include '_signup_login.html' %}
  94
+                {% endif %}
  95
+            {% endif %}
90 96
             </aside>
91 97
         </div>
92 98
     </div>
6  gameon/submissions/templates/submissions/single.html
@@ -50,6 +50,12 @@ <h2 class="whimper">Submitted by</h2>
50 50
                 <h2 class="whimper">Category</h2>
51 51
                 <p><a href="{{ url('submissions.entry_list', category=entry.category.slug) }}">{{ entry.category }}</a></p>
52 52
                 {% endif %}
  53
+                {% if request.challenge.has_started() %}
  54
+                    {% if not request.challenge.has_closed() %}
  55
+                        <h2 class="whimper">Add your own game</h2>
  56
+                        {% include '_signup_login.html' %}
  57
+                    {% endif %}
  58
+                {% endif %}
53 59
             </aside>
54 60
         </div>
55 61
     </div>
6  gameon/users/templates/users/profile.html
@@ -42,6 +42,12 @@ <h1 class="busta shout">{{ profile.display_name }}</h1>
42 42
                 </li>
43 43
                 {% endfor %}
44 44
             </ol>
  45
+            {% if request.challenge.has_started() %}
  46
+                {% if not request.challenge.has_closed() %}
  47
+                    <h2 class="exclaim">Submit another game</h2>
  48
+                    {% include '_signup_login.html' %}
  49
+                {% endif %}
  50
+            {% endif %}
45 51
             {% else %}
46 52
                 <h2 class="announce">No entries yet</h2>
47 53
                 {% if request.challenge %}

0 notes on commit 70abfb3

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