refactor(pages): remove unused app store fields from advanced settings
Some checks failed
Build and Release / Unit Tests (push) Successful in 6m20s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Lint (push) Successful in 6m31s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Failing after 9h1m42s
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Some checks failed
Build and Release / Unit Tests (push) Successful in 6m20s
Build and Release / Create Release (push) Successful in 0s
Build and Release / Lint (push) Successful in 6m31s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Failing after 9h1m42s
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been cancelled
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
This commit is contained in:
@@ -1533,10 +1533,6 @@ func PagesAdvancedPost(ctx *context.Context) {
|
|||||||
// Parse remaining fields
|
// Parse remaining fields
|
||||||
config.Advanced.CustomCSS = ctx.FormString("custom_css")
|
config.Advanced.CustomCSS = ctx.FormString("custom_css")
|
||||||
config.Advanced.CustomHead = ctx.FormString("custom_head")
|
config.Advanced.CustomHead = ctx.FormString("custom_head")
|
||||||
config.Advanced.GooglePlayID = ctx.FormString("google_play_id")
|
|
||||||
config.Advanced.AppStoreID = ctx.FormString("app_store_id")
|
|
||||||
config.Advanced.PublicReleases = ctx.FormBool("public_releases")
|
|
||||||
config.Advanced.HideMobileReleases = ctx.FormBool("hide_mobile_releases")
|
|
||||||
|
|
||||||
if err := savePagesLandingConfig(ctx, config); err != nil {
|
if err := savePagesLandingConfig(ctx, config); err != nil {
|
||||||
ctx.ServerError("SavePagesConfig", err)
|
ctx.ServerError("SavePagesConfig", err)
|
||||||
|
|||||||
@@ -57,33 +57,6 @@
|
|||||||
<textarea name="custom_head" rows="4" placeholder="<meta ...>">{{.Config.Advanced.CustomHead}}</textarea>
|
<textarea name="custom_head" rows="4" placeholder="<meta ...>">{{.Config.Advanced.CustomHead}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h5 class="ui dividing header">{{ctx.Locale.Tr "repo.settings.pages.app_stores"}}</h5>
|
|
||||||
<div class="two fields">
|
|
||||||
<div class="field">
|
|
||||||
<label>Google Play ID</label>
|
|
||||||
<input name="google_play_id" value="{{.Config.Advanced.GooglePlayID}}" placeholder="com.example.app">
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
|
||||||
<label>App Store ID</label>
|
|
||||||
<input name="app_store_id" value="{{.Config.Advanced.AppStoreID}}" placeholder="123456789">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="inline fields">
|
|
||||||
<div class="field">
|
|
||||||
<div class="ui checkbox">
|
|
||||||
<input type="checkbox" name="public_releases" {{if .Config.Advanced.PublicReleases}}checked{{end}}>
|
|
||||||
<label>{{ctx.Locale.Tr "repo.settings.pages.public_releases"}}</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
|
||||||
<div class="ui checkbox">
|
|
||||||
<input type="checkbox" name="hide_mobile_releases" {{if .Config.Advanced.HideMobileReleases}}checked{{end}}>
|
|
||||||
<label>{{ctx.Locale.Tr "repo.settings.pages.hide_mobile_releases"}}</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<button class="ui primary button">{{ctx.Locale.Tr "save"}}</button>
|
<button class="ui primary button">{{ctx.Locale.Tr "save"}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user