Browse Source

Added Badges to Mobile View

Yoginth 7 năm trước cách đây
mục cha
commit
08992a297c
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      templates/user/profile.tmpl

+ 8 - 0
templates/user/profile.tmpl

@@ -69,6 +69,14 @@
 				</a>
 			</div>
 		</div>
+		{{if or .Owner.GitoteDeveloper .Owner.IsBeta .Owner.IsMaker .Owner.IsBugHunter}}
+			<div style="margin-top:1rem" class="ui mini images">
+				{{if .Owner.GitoteDeveloper}}<img class="ui image" src="https://cdn.jsdelivr.net/npm/gitote@1.2.3/img/badges/gitotedeveloper.png">{{end}}
+				{{if .Owner.IsBeta}}<img class="ui image" src="https://cdn.jsdelivr.net/npm/gitote@1.2.3/img/badges/beta.png">{{end}}
+				{{if .Owner.IsMaker}}<img class="ui image" src="https://cdn.jsdelivr.net/npm/gitote@1.2.3/img/badges/maker.png">{{end}}
+				{{if .Owner.IsBugHunter}}<img class="ui image" src="https://cdn.jsdelivr.net/npm/gitote@1.2.3/img/badges/bughunter.png">{{end}}
+			</div>
+		{{end}}
 		{{if and .IsLogged (ne .LoggedUserName .Owner.Name)}}
 			<div class="follow">
 				{{if .LoggedUser.IsFollowing .Owner.ID}}