Commit f6a6ed5c authored by Daniel W Bond's avatar Daniel W Bond
Browse files

patching per git's requirements

parents 0f974d09 33aefe7a
{% extends 'base.html' %}
{% block content %}
{% for opportunity in all_opportunity %}
{{ opportunity }} </br>
{% endfor %}
{% endblock %}
{% include 'pagination.html' %}
{% extends 'base.html' %}
{% block content %}
{% for opportunity in all_opportunity %}
{{ opportunity }} </br>
{% endfor %}
{% endblock %}
{% include 'pagination.html' %}
{% extends 'base.html' %}
{% block content %}
{% for opportunity in all_opportunity %}
{{ opportunity }} </br>
{% endfor %}
{% endblock %}
{% include 'pagination.html' %}
......@@ -70,32 +70,6 @@
</div><!-- /.container -->
<!-- Pagination -->
<br>
<div>
{% if opportunities.object_list and opportunities.paginator.num_pages > 1 %}
<div>
<ul class = "pager">
{% if posts.has_previous %}
<li class = "previous">
<a href= "?page={{ opportunities.previous_page_number }}">&larr; Newer</a></li>
{% else %}
<li class = "previous disabled">
<a href= "?page= {{opportunities.previous_page_number }}">&larr; Newer</a></li>
{% endif %}
<li><span>Page {{ opportunities.number }} of {{ opportunities.paginator.num_page }}</span></li>
{% if opportunities.has_next %}
<li class = "next">
<a href= "?page={{ opportunities.next_page_number }}">Older &rarr;</a></li>
{% else %}
<li class = "next disabled">
<a href= "?page={{ opportunities.next_page_number }}">Older &rarr;</a></li>
{% endif %}
</ul>
</div>
{% endif %}
</div>
{% include 'pagination.html' %}
{% endblock %}
<br>
<div>
{% if opportunities.object_list and opportunities.paginator.num_pages > 1 %}
<div>
<ul class = "pager">
{% if posts.has_previous %}
<li class = "previous">
<a href= "?page={{ opportunities.previous_page_number }}">&larr; Newer</a></li>
{% else %}
<li class = "previous disabled">
<a href= "?page= {{opportunities.previous_page_number }}">&larr; Newer</a></li>
{% endif %}
<li><span>Page {{ opportunities.number }} of {{ opportunities.paginator.num_page }}</span></li>
{% if opportunities.has_next %}
<li class = "next">
<a href= "?page={{ opportunities.next_page_number }}">Older &rarr;</a></li>
{% else %}
<li class = "next disabled">
<a href= "?page={{ opportunities.next_page_number }}">Older &rarr;</a></li>
{% endif %}
</ul>
</div>
{% endif %}
</div>
......@@ -23,13 +23,22 @@ urlpatterns = patterns('stepup.views',
# person
url(r'^person/(?P<slug>[^\.]+)', 'person', name = 'view_person'),
# all persons
url(r'^person/', 'all_person', name = 'view_all_person'),
# opportunity
url(r'^opportunity/(?P<slug>[^\.]+)', 'opportunity', name = 'view_opportunity'),
# all opportunities
url(r'^opportunity/', 'all_opportunity', name = 'view_all_opportunity'),
# organization
url(r'^organization/(?P<slug>[^\.]+)', 'organization', name = 'view_organization'),
url(r'^tag/(?P<slug>[^\.]+)', 'tag', name = 'view_tag'),
# all organizations
url(r'^organization/', 'all_organizations', name = 'view_all_organization'),
# comments
url(r'^comments/', include('django.contrib.comments.urls')),
......
......@@ -95,6 +95,15 @@ def opportunity(request, slug):
context_instance = RequestContext(request),
)
# what seems to be a usability issue
@login_required
def all_opportunity(request):
return render_to_response('all_opportunity.html', {
all_opportunity = Opportunity.objects.all(),
},
context_instance = RequestContext(request),
)
@login_required
def person(request, slug):
return render_to_response('person.html', {
......@@ -113,6 +122,15 @@ def person(request, slug):
context_instance = RequestContext(request),
)
# ux display all thing continued
@login_required
def all_person(request):
return render_to_response('all_person.html', {
all_person = Person.objects.all(),
},
context_instance = RequestContext(request),
)
@login_required
def organization(request, slug):
return render_to_response('organization.html', {
......@@ -131,6 +149,15 @@ def organization(request, slug):
context_instance = RequestContext(request),
)
# ux display all things continued
@login_required
def all_organization(request):
return render_to_response('all_organization.html', {
all_organization = Organization.objects.all(),
},
context_instance = RequestContext(request),
)
@login_required
def search(request):
return render_to_response('search.html', {
......
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