-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added anchor tags on some profile help pages and refactored sidebar f…
…or unauthenticated users
- Loading branch information
James Wallace
authored and
James Wallace
committed
Apr 2, 2020
1 parent
4ee833c
commit 836464a
Showing
5 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
{% extends 'gnt/profile_base.html' %} | ||
|
||
{% block profile_content %} | ||
<div class="content-section"> | ||
{% if user.is_authenticated %} | ||
{% if drinks %} | ||
<div class="container title"> | ||
<h1>Disliked Drinks</h1> | ||
</div> | ||
{% include 'gnt/disliked_drinks_with_remove.html' %} | ||
{% endif %} | ||
{% if not drinks %} | ||
<div> | ||
You haven't disliked any drinks! | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% if user.is_authenticated %} | ||
|
||
{% if drinks %} | ||
<div class="container title"> | ||
<h1>Disliked Drinks</h1> | ||
</div> | ||
{% include 'gnt/disliked_drinks_with_remove.html' %} | ||
{% endif %} | ||
|
||
{% if not drinks %} | ||
<div> | ||
<article class="content-section"> | ||
You haven't disliked any drinks yet! <a href="{% url 'home' %}">Search a drink</a> and dislike any drink you don't want to try. We'll save those drinks here! | ||
</article> | ||
</div> | ||
{% endif %} | ||
|
||
{% endif %} | ||
</div> | ||
{% endblock profile_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
{% extends 'gnt/profile_base.html' %} | ||
|
||
{% block profile_content %} | ||
<div class="content-section"> | ||
|
||
{% if drinks %} | ||
<div class="container title"> | ||
<h1>Liked Drinks</h1> | ||
</div> | ||
{% include 'gnt/liked_drinks_with_remove.html' %} | ||
{% endif %} | ||
|
||
{% if not drinks %} | ||
<div> | ||
You haven't Liked any drinks! Make a query and give feedback on anything you try! We'll save it for you for later. | ||
<article class="content-section"> | ||
You haven't liked any drinks! <a href="{% url 'home' %}">Search a drink</a> and vote on any drinks you would like to try! We'll save it here for you later. | ||
</article> | ||
</div> | ||
{% endif %} | ||
|
||
</div> | ||
{% endblock profile_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes