Bläddra i källkod

Removed Sponsors Completely

Yoginth 7 år sedan
förälder
incheckning
6389db30bb

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

@@ -304,7 +304,7 @@ location = Location
 status = Status
 private_email = This email is Private
 beta = Enroll to Beta Member
-sponsor = Display Sponsors on dashboard
+ads = Display Ads on dashboard
 update_profile = Update Profile
 update_profile_success = Your profile has been updated successfully.
 update_social = Update Social

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

@@ -304,7 +304,7 @@ location = Location
 status = Status
 private_email = This email is Private
 beta = Enroll to Beta Member
-sponsor = Display Sponsors on dashboard
+ads = Display Ads on dashboard
 update_profile = Update Profile
 update_profile_success = Your profile has been updated successfully.
 update_social = Update Social

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 6 - 6
pkg/bindata/bindata.go


+ 1 - 1
templates/misc/ad.tmpl

@@ -1,4 +1,4 @@
-{{if .Owner.ShowSponsors}}
+{{if .Owner.ShowAds}}
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitote@1.2.5/css/ads.css">
     <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7D52J7&placement=gitotein" id="_carbonads_js"></script>
 {{end}}

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

@@ -58,10 +58,10 @@
 							<input type="text" id="theme_color" name="theme_color" class="jscolor {hash:true} jscolor-active" value="{{.themecolor}}" placeholder="#161616" autocomplete="off">
 						</div>
 						<div class="inline field">
-							<label for="location">Sponsors: </label>
+							<label for="location">Ads: </label>
 							<div class="ui checkbox">
-								<label><strong>{{.i18n.Tr "settings.sponsor"}}</strong></label>
-								<input name="show_sponsors" type="checkbox" {{if .show_sponsors}}checked{{end}}>
+								<label><strong>{{.i18n.Tr "settings.ads"}}</strong></label>
+								<input name="show_ads" type="checkbox" {{if .show_ads}}checked{{end}}>
 							</div>
 						</div>
 						<div class="inline field">