Commit 805989a1 authored by Abdullah Abdurrah's avatar Abdullah Abdurrah
Browse files

Merge branch 'master' of github.com:jrouly/srct-vahack

parents 875c98b3 ff40f86e
......@@ -44,26 +44,26 @@
<div class="row">
<div class="col-md-6 text-left">
<h2>Schedule of Availability</h2>
{% if sunday %}
<p>sunday: {{sunday}}</p>
{% if sunday > 0 %}
<p>sunday: Available</p>
{% endif %}
{% if monday %}
<p>monday: {{monday}}</p>
{% if monday > 0 %}
<p>monday: Available</p>
{% endif %}
{% if tuesday %}
<p>tuesday: {{tuesday}}</p>
{% if tuesday > 0 %}
<p>tuesday: Available</p>
{% endif %}
{% if wednesday %}
<p>wednesday: {{wednesday}}</p>
{% if wednesday > 0 %}
<p>wednesday: Available</p>
{% endif %}
{% if thursday %}
<p>thursday: {{thursday}}</p>
{% if thursday > 0 %}
<p>thursday: Available</p>
{% endif %}
{% if friday %}
<p>friday: {{friday}}</p>
{% if friday > 0 %}
<p>friday: Available</p>
{% endif %}
{% if saturday %}
<p>saturday: {{saturday}}</p>
{% if saturday > 0 %}
<p>saturday: Available</p>
{% endif %}
</div>
<div class="col-md-6 text-left">
......
......@@ -75,13 +75,13 @@ def person(request, slug):
"requested_tags" : Person.objects.get(user__username=slug).tags.all(),
#"global_tags" : Tag.objects.all(),
"global_events" : Opportunity.objects.all(),
"sunday" : Person.objects.get(user__username=slug).sunday,
"monday" : Person.objects.get(user__username=slug).monday,
"tuesday" : Person.objects.get(user__username=slug).tuesday,
"wednesday" : Person.objects.get(user__username=slug).wednesday,
"thursday" : Person.objects.get(user__username=slug).thursday,
"friday" : Person.objects.get(user__username=slug).friday,
"saturday" : Person.objects.get(user__username=slug).saturday,
"sunday" : len(Person.objects.get(user__username=slug).sunday),
"monday" : len(Person.objects.get(user__username=slug).monday),
"tuesday" : len(Person.objects.get(user__username=slug).tuesday),
"wednesday" : len(Person.objects.get(user__username=slug).wednesday),
"thursday" : len(Person.objects.get(user__username=slug).thursday),
"friday" : len(Person.objects.get(user__username=slug).friday),
"saturday" : len(Person.objects.get(user__username=slug).saturday),
},
context_instance = RequestContext(request),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment