Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mymusiclist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Brian Guadalupe
mymusiclist
Commits
0e718e46
Commit
0e718e46
authored
Oct 30, 2017
by
Brian Guadalupe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restrict viewing of profile pages to users only
parent
c46efa41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
profile.html
templates/profile.html
+7
-4
No files found.
templates/profile.html
View file @
0e718e46
...
...
@@ -3,8 +3,8 @@
{% block title %}{{profile.username}}'s Profile{% endblock %}
{% block content %}
<div
class=
"boxified main profile"
>
<div
class=
"boxified main profile"
>
{% if user.is_authenticated %}
<h2>
{{profile.username}}'s Profile
</h2>
<ul>
<li><strong>
First Name:
</strong>
{{profile.first_name}}
</li>
...
...
@@ -12,7 +12,10 @@
<li><strong>
Email Address:
</strong>
{{profile.email}}
</li>
</ul>
{% if profile.username == user.username and user.is_authenticated %}
<a
href=
"#"
class=
"buttoned"
>
Edit user profile
</a>
</div>
<a
href=
"edit"
class=
"buttoned"
>
Edit user profile
</a>
{% endif %}
{% else %}
<p>
Please
<a
href=
"/login"
>
log in
</a>
to your account to view {{profile.username}}'s profile.
</p>
{% endif %}
</div>
{% endblock %}
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