Commit 225afd4c authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Seperated lookout management page from preview section of profile page.

parent 0a9f750c
......@@ -38,6 +38,10 @@ urlpatterns = patterns('website.views',
# create new listing
url(r'^create/?$', 'create_listing', name = 'create_listing'),
#### LOOKOUT MANAGEMENT PAGES ####
# create and manage lookouts
url(r'^lookouts/?$', 'lookouts', name = 'lookouts'),
#### SEARCHES ####
# points to a SearchView Instance
url(r'^search/', include('haystack.urls')),
......
......@@ -108,7 +108,7 @@ GMU Bookshare • Homepage
<h3>No lookout results found.</h3>
<p>
You may not have set any, try
<a href="{%url 'lookouts' request.user.username%}">
<a href="{% url 'lookouts' %}">
setting some</a>.
</p>
</div>
......
......@@ -128,7 +128,7 @@ function insert_target( source, target ){
{% if seller.user = request.user %}
<div class="row">
<div class="col-md-12">
<h3>Lookouts</h3>
<h3>Lookouts (<a href="{% url 'lookouts' %}">Edit</a>)</h3>
{% if lookouts %}
<div class="table-responsive">
......@@ -144,7 +144,7 @@ function insert_target( source, target ){
</table>
</div>
{% else %}
You don't have any lookouts posted yet.
You don't have any lookouts set yet.
{% endif %}
</div>
</div>
......
......@@ -244,6 +244,16 @@ def create_listing(request):
)
@login_required
def lookouts(request):
# merely forms
return render(request, 'lookouts.html', {
},
)
@login_required
def search(request):
# merely forms
......
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