Forráskód Böngészése

Added Status to Profile

Yoginth 7 éve
szülő
commit
0913f0db82

+ 1 - 0
conf/locale/locale_en-GB.ini

@@ -303,6 +303,7 @@ company = Company
 description = Description
 website = Website
 location = Location
+status = Status
 private_email = This email is Private
 beta = Enroll to Beta Member
 sponsor = Display Sponsors on dashboard

+ 1 - 0
conf/locale/locale_en-US.ini

@@ -303,6 +303,7 @@ company = Company
 description = Description
 website = Website
 location = Location
+status = Status
 private_email = This email is Private
 beta = Enroll to Beta Member
 sponsor = Display Sponsors on dashboard

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 4 - 4
pkg/bindata/bindata.go


+ 5 - 0
templates/user/profile.tmpl

@@ -116,6 +116,11 @@
 					</div>
 					<div class="extra content">
 						<ul class="text black">
+							{{if .Owner.Status}}
+								<li class="ui center">
+									<p style="font-weight:500">{{.Owner.Status}} <span class="ui green basic label tiny beta-badge">Beta</span></p>
+								</li>
+							{{end}}
 							{{if or .Owner.Twitter .Owner.Linkedin .Owner.Github .Owner.Devto .Owner.Stackoverflow .Owner.Reddit .Owner.Telegram .Owner.Codepen}}
 								<li class="ui center">
 									{{if .Owner.Twitter}}<a href="https://twitter.com/{{.Owner.Twitter}}" target="_blank"><i class="twitter icon"></i></a>{{end}}

+ 1 - 1
templates/user/settings/profile.tmpl

@@ -24,7 +24,7 @@
 							<input id="full_name" name="full_name" value="{{.full_name}}">
 						</div>
 						<div class="field">
-							<label for="status">{{.i18n.Tr "settings.status"}}</label>
+							<label for="status">{{.i18n.Tr "settings.status"}}<span class="ui green basic label tiny beta-badge">Beta</span></label>
 							<input id="status" name="status" value="{{.status}}">
 						</div>
 						<div class="field {{if .Err_Description}}error{{end}}">