Skip to content

Commit

Permalink
Remove unneeded links and banners (#31)
Browse files Browse the repository at this point in the history
* Remove redundant banners and links
* Update footer
  • Loading branch information
k1rill-fedoseev committed Nov 26, 2021
1 parent 2b06afe commit 62f305b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion handlers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ func GetUserPremiumByPackage(pkg string) PremiumUser {
MaxNodes: 1,
WidgetSupport: false,
NotificationThresholds: false,
NoAds: false,
NoAds: true,
}

if pkg == "" || pkg == "standard" {
Expand Down
2 changes: 1 addition & 1 deletion handlers/pageData.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func InitPageData(w http.ResponseWriter, r *http.Request, active, path, title st
ClientsUpdated: ethclients.ClientsUpdated(),
Phase0: utils.Config.Chain.Phase0,
Lang: "en-US",
NoAds: user.Authenticated && user.Subscription != "",
NoAds: true,
DefaultCurrency: utils.Config.Frontend.Eth1Currency,
DefaultCurrencyName: utils.Config.Frontend.Eth1CurrencyName,
Eth1Label: utils.Config.Frontend.Eth1Label,
Expand Down
2 changes: 1 addition & 1 deletion templates/index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
{{if and (and (not .ShowSyncingMessage) .Genesis) (not .GenesisPeriod)}}
{{ template "participationWarning" .}}
{{end}}
{{ template "hero" . }}
{{if not $.NoAds}} {{ template "hero" . }} {{end}}
{{end}}
{{if not .NoAds}} {{template "banner"}} {{end}}
{{with .Data}}
Expand Down
1 change: 0 additions & 1 deletion templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,6 @@
</li>
</ul>
</div>
<!-- </div> -->
</div>
</nav>
{{template "css" .Data}}
Expand Down

0 comments on commit 62f305b

Please sign in to comment.