Quellcode durchsuchen

Remove Bug Hunter and Closes #28

Yoginth vor 6 Jahren
Ursprung
Commit
b51fe71e66

+ 0 - 1
models/user.go

@@ -100,7 +100,6 @@ type User struct {
 	// Badges
 	IsVerified      bool
 	IsMaker         bool
-	IsBugHunter     bool
 	GitoteDeveloper bool
 
 	// Social

+ 0 - 1
pkg/form/admin.go

@@ -56,7 +56,6 @@ type AdminEditUser struct {
 	Suspended        bool
 	IsVerified       bool
 	IsMaker          bool
-	IsBugHunter      bool
 	GitoteDeveloper  bool
 	PrivateProfile   bool
 	IsBeta           bool

+ 0 - 1
routes/admin/users.go

@@ -231,7 +231,6 @@ func EditUserPost(c *context.Context, f form.AdminEditUser) {
 	u.Suspended = f.Suspended
 	u.IsVerified = f.IsVerified
 	u.IsMaker = f.IsMaker
-	u.IsBugHunter = f.IsBugHunter
 	u.GitoteDeveloper = f.GitoteDeveloper
 	u.IsBeta = f.IsBeta
 	u.PrivateProfile = f.PrivateProfile

+ 0 - 6
templates/admin/user/edit.tmpl

@@ -145,12 +145,6 @@
 								<input name="is_staff" type="checkbox" {{if .User.IsStaff}}checked{{end}}>
 							</div>
 						</div>
-						<div class="inline field">
-							<div class="ui checkbox">
-								<label><strong>This user is Bug Hunter</strong> <i class="bughunter octicon octicon-gist-secret"></i></label>
-								<input name="is_bug_hunter" type="checkbox" {{if .User.IsBugHunter}}checked{{end}}>
-							</div>
-						</div>
 						<div class="inline field">
 							<div class="ui checkbox">
 								<label><strong>This user is Gitote Developer</strong></label>

+ 0 - 1
templates/admin/user/list.tmpl

@@ -38,7 +38,6 @@
 										{{if .IsVerified}}<i class="admin-badge verified octicon octicon-verified"></i>{{end}}
 										{{if .IsMaker}}<i class="admin-badge maker octicon octicon-paintcan"></i>{{end}}
 										{{if .Twitch}}<i class="admin-badge streamer octicon octicon-broadcast"></i>{{end}}
-										{{if .IsBugHunter}}<i class="admin-badge bughunter octicon octicon-gist-secret"></i>{{end}}
 										{{if .IsBeta}}<i class="admin-badge developer octicon octicon-circuit-board"></i>{{end}}
 										{{if .IsStaff}}<i class="admin-badge isstaff octicon octicon-tools"></i>{{end}}
 										{{if .GitoteDeveloper}}<i class="admin-badge gitotedeveloper octicon octicon-jersey"></i>{{end}}

+ 2 - 8
templates/user/profile.tmpl

@@ -68,13 +68,12 @@
 				</a>
 			</div>
 		</div>
-		{{if or .Owner.GitoteDeveloper .Owner.IsBeta .Owner.IsMaker .Owner.IsBugHunter}}
+		{{if or .Owner.GitoteDeveloper .Owner.IsBeta .Owner.IsMaker}}
 			<div style="margin-top:1rem" class="ui mini images">
 				{{if .Owner.GitoteDeveloper}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/gitotedeveloper.png">{{end}}
 				{{if .Owner.IsBeta}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/beta.png">{{end}}
 				{{if .Owner.IsMaker}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/maker.png">{{end}}
 				{{if .Owner.Twitch}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/streamer.png">{{end}}
-				{{if .Owner.IsBugHunter}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/bughunter.png">{{end}}
 			</div>
 		{{end}}
 		{{if and .IsLogged (ne .LoggedUserName .Owner.Name)}}
@@ -202,7 +201,7 @@
 									{{.Owner.NumFollowing}} {{.i18n.Tr "user.following"}}
 								</a>
 							</li>
-							{{if or .Owner.GitoteDeveloper .Owner.IsBeta .Owner.IsMaker .Owner.Twitch .Owner.IsBugHunter}}
+							{{if or .Owner.GitoteDeveloper .Owner.IsBeta .Owner.IsMaker .Owner.Twitch}}
 								<li>
 									<div class="ui tiny images">
 										{{if .Owner.GitoteDeveloper}}
@@ -225,11 +224,6 @@
 												<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/streamer.png">
 											</a>
 										{{end}}
-										{{if .Owner.IsBugHunter}}
-											<a class="poping up" target="_blank" href="/security" data-content="Bug Hunter" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/bughunter.png">
-											</a>
-										{{end}}
 									</div>
 								</li>
 							{{end}}