Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ch22: Create Profile Detail web page.
- Loading branch information
1 parent
6b8d9ef
commit de5e3e3
Showing
5 changed files
with
53 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends parent_template|default:"user/base_user.html" %} | ||
|
||
{% block title %} | ||
{{ block.super }} - | ||
{{ profile.user.get_username }}'s Profile | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="row"> | ||
<div class="offset-by-two five columns"> | ||
|
||
<h2>About {{ profile.user.get_username }}</h2> | ||
{{ profile.about|default:"No Profile"|linebreaks }} | ||
|
||
</div><!-- columns --> | ||
|
||
<div class="three columns"> | ||
<ul class="task-list"> | ||
<li><a href="{% url 'dj-auth:pw_change' %}"> | ||
Change Password</a></li> | ||
<li><a href="{% url 'dj-auth:disable' %}"> | ||
Disable Account</a></li> | ||
</ul> | ||
</div> | ||
|
||
</div><!-- row --> | ||
{% endblock %} |
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
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