Commit 9470f2b4 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

michel

parent 7163c0fd
......@@ -3,7 +3,8 @@
{% block content %}
{% for result in results %}
<li><a href="{{ result.get_absolute_url }}
<li><a href="{{ result.get_absolute_url }}"><h2>{{ result.title }}</h2></a></li>
</br></br>
{% endfor %}
{% endblock %}
# Create your views here.
from stepup.models import *
from django.shortcuts import render_to_response, get_object_or_404
from django.shortcuts import render_to_response
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from django.core.urlresolvers import reverse
from django.contrib.auth import authenticate, login
......@@ -54,7 +54,7 @@ def index(request):
# opportunities = paginator.page(paginator.num_pages)
return render_to_response('index.html', {
# "everything" : Objects.opportunities.all(),
},
context_instance = RequestContext(request),
)
......@@ -70,18 +70,7 @@ def opportunity(request, slug):
@login_required
def person(request, slug):
return render_to_response('person.html', {
"current_user" : request.user,
"requested_user" : Person.objects.get(user__username=slug),
"requested_tags" : Person.objects.get(user__username=slug).tags.all(),
#"global_tags" : Tag.objects.all(),
"global_events" : Opportunity.objects.all(),
"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),
)
......@@ -94,6 +83,14 @@ def organization(request, slug):
context_instance = RequestContext(request),
)
@login_required
def search(request):
return render_to_response('search.html', {
},
context_instance = RequestContext(request),
)
def about(request):
return render_to_response('about.html', {
# put the variables you need here
......
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