Permalink
Browse files

Figured out the place where my media roots were wrong. Changed header…

… text in prizes.
  • Loading branch information...
keokilee committed Apr 17, 2012
1 parent 07a7897 commit 7814fec6336d32601229f23fe68640b83e5e0b12
@@ -33,20 +33,20 @@ <h3>{{prize.title}}</h3>
{% if raffle.tickets.available > 0 %}
<form action="{% url raffle_add_ticket prize.id %}" method="POST">
{% csrf_token %}
- <a class="enabled" href="#"
+ <a class="enabled ticket-add" href="#"
onclick="$(this).parent().submit(); return false;">+1</a>
</form>
{% else %}
- <div class="disabled">+1</div>
+ <div class="disabled ticket-add">+1</div>
{% endif %}
{% if user_tickets > 0 %}
<form action="{% url raffle_remove_ticket prize.id %}" method="POST">
{% csrf_token %}
- <a class="enabled" href="#"
+ <a class="enabled ticket-remove" href="#"
onclick="$(this).parent().submit(); return false;">-1</a>
</form>
{% else %}
- <div class="disabled">-1</div>
+ <div class="disabled ticket-remove">-1</div>
{% endif %}
</td>
</tr>
@@ -73,14 +73,17 @@ th {
width: 28px;
height: 28px;
display: block;
- margin: .2em .5em;
+ margin: .2em .5em .2em 0;
color: #FFF;
font-weight: bold;
line-height: 28px;
text-decoration: none;
text-align: center;
float: left;
- margin-right: 0;
+}
+
+.ticket-remove: {
+ margin-right: 0;
}
.enabled {
@@ -91,6 +94,10 @@ th {
background: transparent url(/site_media/static/css/default/images/circle-.png) top center no-repeat;
}
+#prizes-raffle #prizes-raffle-options-header {
+ text-align: left;
+}
+
#prizes-raffle-footer {
margin: .5em .5em 0 .5em;
text-align: center;
View
@@ -14,7 +14,7 @@
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# Absolute path to the directory that holds media.
-MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'site_media')
+MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'site_media', 'media')
# URL that handles the media served from MEDIA_ROOT.
MEDIA_URL = '/site_media/media/'
View
@@ -62,6 +62,6 @@
if settings.SERVE_MEDIA:
urlpatterns += patterns('',
- (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
+ (r'^site_media/media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)

0 comments on commit 7814fec

Please sign in to comment.