ソースを参照

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/>