Skip to content

Commit

Permalink
Remove useless "Cancel" buttons (#21872)
Browse files Browse the repository at this point in the history
* Continues #21381

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

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
  • Loading branch information
yardenshoham authored Dec 5, 2022
1 parent a08584e commit 77f5035
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion templates/org/create.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<button class="ui green button">
{{.locale.Tr "org.create_org"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/org/team/new.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
<div class="field">
{{if .PageIsOrgTeamsNew}}
<button class="ui green button">{{.locale.Tr "org.create_team"}}</button>
<a class="ui button" href="{{.OrgLink}}/teams">{{.locale.Tr "cancel"}}</a>
{{else}}
<button class="ui green button">{{.locale.Tr "org.teams.update_settings"}}</button>
{{if not (eq .Team.LowerName "owners")}}
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/codebase.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/git.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/gitbucket.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/gitea.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/github.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/gitlab.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/gogs.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/migrate/onedev.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
<button class="ui green button">
{{.locale.Tr "repo.migrate_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/repo/pulls/fork.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
<button class="ui green button">
{{.locale.Tr "repo.fork_repo"}}
</button>
<a class="ui button" href="{{.ForkRepo.Link}}">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down
1 change: 0 additions & 1 deletion templates/user/project.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
<button class="ui green button">
{{.locale.Tr "repo.projects.create"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.locale.Tr "cancel"}}</a>
</div>
</div>
</form>
Expand Down

0 comments on commit 77f5035

Please sign in to comment.