forked from gitea/gitea
1
0
Fork 0

Remove useless "Cancel" buttons (#21872)

* Continues #21381

These buttons have no real use. To cancel, one would simply navigate
away.

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
This commit is contained in:
Yarden Shoham 2022-12-05 14:38:34 +02:00 committed by GitHub
parent a08584ee36
commit 77f50356f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 0 additions and 12 deletions

View File

@ -48,7 +48,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "org.create_org"}} {{.locale.Tr "org.create_org"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -134,7 +134,6 @@
<div class="field"> <div class="field">
{{if .PageIsOrgTeamsNew}} {{if .PageIsOrgTeamsNew}}
<button class="ui green button">{{.locale.Tr "org.create_team"}}</button> <button class="ui green button">{{.locale.Tr "org.create_team"}}</button>
<a class="ui button" href="{{.OrgLink}}/teams">{{.locale.Tr "cancel"}}</a>
{{else}} {{else}}
<button class="ui green button">{{.locale.Tr "org.teams.update_settings"}}</button> <button class="ui green button">{{.locale.Tr "org.teams.update_settings"}}</button>
{{if not (eq .Team.LowerName "owners")}} {{if not (eq .Team.LowerName "owners")}}

View File

@ -107,7 +107,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -81,7 +81,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -123,7 +123,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -119,7 +119,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -121,7 +121,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -118,7 +118,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -121,7 +121,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -107,7 +107,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}} {{.locale.Tr "repo.migrate_repo"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -61,7 +61,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.fork_repo"}} {{.locale.Tr "repo.fork_repo"}}
</button> </button>
<a class="ui button" href="{{.ForkRepo.Link}}">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>

View File

@ -60,7 +60,6 @@
<button class="ui green button"> <button class="ui green button">
{{.locale.Tr "repo.projects.create"}} {{.locale.Tr "repo.projects.create"}}
</button> </button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div> </div>
</div> </div>
</form> </form>