浏览代码

Added Email Security in Mobile view

Yoginth 7 年之前
父节点
当前提交
a1b4e391ae
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      templates/user/profile.tmpl

+ 7 - 1
templates/user/profile.tmpl

@@ -36,9 +36,15 @@
 				{{if .Owner.IsStaff}}<span class="staff">Staff</span>{{end}}
 			{{end}}
 			{{if and .Owner.Email .IsLogged}}
+				{{if not .Owner.PrivateEmail}}
+					<br/>
+					<i class="menu-icon octicon">📧</i>
+					<a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a>
+				{{end}}
+			{{else}}
 				<br/>
 				<i class="menu-icon octicon">📧</i>
-				<a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a>
+				<a class="pro-truncate" href="{{AppURL}}login" rel="nofollow">Login to view email</a>
 			{{end}}
 			{{if .Owner.Website}}
 				<br/>