Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
bookshare
Commits
225afd4c
Commit
225afd4c
authored
Dec 18, 2013
by
Jean Michel Rouly
Browse files
Seperated lookout management page from preview section of profile page.
parent
0a9f750c
Changes
4
Hide whitespace changes
Inline
Side-by-side
bookshare/settings/urls.py
View file @
225afd4c
...
...
@@ -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'
)),
...
...
bookshare/templates/index.html
View file @
225afd4c
...
...
@@ -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>
...
...
bookshare/templates/profile.html
View file @
225afd4c
...
...
@@ -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>
...
...
bookshare/website/views.py
View file @
225afd4c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment