Преглед изворни кода

Added Following and Followers to Mobile view profile page

Yoginth пре 7 година
родитељ
комит
012e91dbdd
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      templates/user/profile.tmpl

+ 10 - 0
templates/user/profile.tmpl

@@ -52,6 +52,16 @@
 				<i class="menu-icon octicon">⭐</i>
 				{{.Owner.NumStars}} {{.i18n.Tr "user.starred"}}
 			{{end}}
+			<div>
+				<i class="menu-icon octicon">🤵</i>
+				<a href="{{.Owner.HomeLink}}/followers">
+					{{.Owner.NumFollowers}} {{.i18n.Tr "user.followers"}}
+				</a>
+				-
+				<a href="{{.Owner.HomeLink}}/following">
+					{{.Owner.NumFollowing}} {{.i18n.Tr "user.following"}}
+				</a>
+			</div>
 		</div>
 		{{if and .IsLogged (ne .LoggedUserName .Owner.Name)}}
 			<div class="follow">