Skip to content

Commit b0a28ae

Browse files
author
Michael Zhang
committed
Only show email to self.
1 parent 153d836 commit b0a28ae

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

templates/users/profile.html

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
<h2 style="margin:0px;font-weight:bold;font-size:2em;">{{ user.name }}</h2>
1616
<small style="display:block;font-size:1.5em;color:#999;">@{{ user.username }}</small>
1717
<hr>
18-
<div ng-show="user['show_email']==true">
19-
<i class="fa fa-fw fa-envelope"></i>
20-
<a style="color:#666;" href="mailto:{{ user.email }}">
21-
<span id="email">{{ user.email }}</span>
22-
</a>
23-
</div>
18+
{% if current_user == user %}
19+
<div ng-show="user['show_email']==true">
20+
<i class="fa fa-fw fa-envelope"></i>
21+
<a style="color:#666;" href="mailto:{{ user.email }}">
22+
<span id="email">{{ user.email }}</span>
23+
</a>
24+
</div>
25+
{% endif %}
2426
{% if user.joined %}
2527
<div>
2628
<i class="fa fa-fw fa-clock-o"></i>

0 commit comments

Comments
 (0)