Skip to content

Commit c2c2442

Browse files
committed
fix incorrect replacements
1 parent 4918b76 commit c2c2442

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

templates/package/settings.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="ui attached error table danger segment">
4141
<div class="item">
4242
<div class="ui right">
43-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
43+
<button class="ui basic red show-modal button" data-modal="#delete-package-modal">{{.locale.Tr "packages.settings.delete"}}</button>
4444
</div>
4545
<div>
4646
<h5>{{.locale.Tr "packages.settings.delete"}}</h5>

templates/repo/branch/list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</td>
2323
<td class="right aligned overflow-visible">
2424
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
25-
<button class="ui gitea-confirm-modal jump button icon show-create-branch-modal" data-tooltip-content="{{$.locale.Tr "repo.branch.new_branch_from" ($.DefaultBranch)}}" data-branch-from="{{$.DefaultBranch}}" data-branch-from-urlcomponent="{{PathEscapeSegments $.DefaultBranch}}" data-modal="#create-branch-modal">
25+
<button class="ui basic jump button icon show-create-branch-modal" data-tooltip-content="{{$.locale.Tr "repo.branch.new_branch_from" ($.DefaultBranch)}}" data-branch-from="{{$.DefaultBranch}}" data-branch-from-urlcomponent="{{PathEscapeSegments $.DefaultBranch}}" data-modal="#create-branch-modal">
2626
{{svg "octicon-git-branch"}}
2727
</button>
2828
{{end}}
@@ -109,7 +109,7 @@
109109
</td>
110110
<td class="three wide right aligned overflow-visible">
111111
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
112-
<button class="ui gitea-confirm-modal jump button icon show-create-branch-modal" data-branch-from="{{.Name}}" data-branch-from-urlcomponent="{{PathEscapeSegments .Name}}" data-tooltip-content="{{$.locale.Tr "repo.branch.new_branch_from" .Name}}" data-modal="#create-branch-modal" data-name="{{.Name}}">
112+
<button class="ui basic jump button icon show-create-branch-modal" data-branch-from="{{.Name}}" data-branch-from-urlcomponent="{{PathEscapeSegments .Name}}" data-tooltip-content="{{$.locale.Tr "repo.branch.new_branch_from" .Name}}" data-modal="#create-branch-modal" data-name="{{.Name}}">
113113
{{svg "octicon-git-branch"}}
114114
</button>
115115
{{end}}

templates/repo/migrate/migrating.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{{if and .Failed .Permission.IsAdmin}}
3636
<div class="ui divider"></div>
3737
<div class="item">
38-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#delete-repo-modal">{{.locale.Tr "repo.settings.delete"}}</button>
38+
<button class="ui basic red show-modal button" data-modal="#delete-repo-modal">{{.locale.Tr "repo.settings.delete"}}</button>
3939
</div>
4040
{{end}}
4141
</div>

templates/repo/settings/lfs.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<td>{{TimeSince .CreatedUnix.AsTime $.locale}}</td>
2727
<td class="right aligned">
2828
<a class="ui primary button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{$.locale.Tr "repo.settings.lfs_findcommits"}}</a>
29-
<button class="ui gitea-confirm-modal show-modal icon button" data-modal="#delete-{{.Oid}}">
29+
<button class="ui basic show-modal icon button" data-modal="#delete-{{.Oid}}">
3030
<span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{$.locale.Tr "repo.editor.delete_this_file"}}">{{svg "octicon-trash"}}</span>
3131
</button>
3232
</td>

templates/repo/settings/options.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@
702702
{{if .Repository.IsMirror}}
703703
<div class="item">
704704
<div class="ui right">
705-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#convert-mirror-repo-modal">{{.locale.Tr "repo.settings.convert"}}</button>
705+
<button class="ui basic red show-modal button" data-modal="#convert-mirror-repo-modal">{{.locale.Tr "repo.settings.convert"}}</button>
706706
</div>
707707
<div>
708708
<h5>{{.locale.Tr "repo.settings.convert"}}</h5>
@@ -714,7 +714,7 @@
714714
{{if and .Repository.IsFork .Repository.Owner.CanCreateRepo}}
715715
<div class="item">
716716
<div class="ui right">
717-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#convert-fork-repo-modal">{{.locale.Tr "repo.settings.convert_fork"}}</button>
717+
<button class="ui basic red show-modal button" data-modal="#convert-fork-repo-modal">{{.locale.Tr "repo.settings.convert_fork"}}</button>
718718
</div>
719719
<div>
720720
<h5>{{.locale.Tr "repo.settings.convert_fork"}}</h5>
@@ -732,7 +732,7 @@
732732
<button class="ui red button">{{.locale.Tr "repo.settings.transfer_abort"}}</button>
733733
</form>
734734
{{else}}
735-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#transfer-repo-modal">{{.locale.Tr "repo.settings.transfer"}}</button>
735+
<button class="ui basic red show-modal button" data-modal="#transfer-repo-modal">{{.locale.Tr "repo.settings.transfer"}}</button>
736736
{{end}}
737737
</div>
738738
<div>
@@ -750,7 +750,7 @@
750750

751751
<div class="item">
752752
<div class="ui right">
753-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#delete-wiki-modal">{{.locale.Tr "repo.settings.wiki_delete"}}</button>
753+
<button class="ui basic red show-modal button" data-modal="#delete-wiki-modal">{{.locale.Tr "repo.settings.wiki_delete"}}</button>
754754
</div>
755755
<div>
756756
<h5>{{.locale.Tr "repo.settings.wiki_delete"}}</h5>
@@ -763,7 +763,7 @@
763763

764764
<div class="item">
765765
<div class="ui right">
766-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#delete-repo-modal">{{.locale.Tr "repo.settings.delete"}}</button>
766+
<button class="ui basic red show-modal button" data-modal="#delete-repo-modal">{{.locale.Tr "repo.settings.delete"}}</button>
767767
</div>
768768
<div>
769769
<h5>{{.locale.Tr "repo.settings.delete"}}</h5>
@@ -776,7 +776,7 @@
776776

777777
<div class="item">
778778
<div class="ui right">
779-
<button class="ui gitea-confirm-modal red show-modal button" data-modal="#archive-repo-modal">
779+
<button class="ui basic red show-modal button" data-modal="#archive-repo-modal">
780780
{{if .Repository.IsArchived}}
781781
{{.locale.Tr "repo.settings.unarchive.button"}}
782782
{{else}}

0 commit comments

Comments
 (0)