|
22 | 22 | </td> |
23 | 23 | <td class="right aligned overflow-visible"> |
24 | 24 | {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} |
25 | | - <div class="ui basic jump button icon tooltip show-create-branch-modal" data-content="{{$.locale.Tr "repo.branch.new_branch_from" ($.DefaultBranch)}}" data-branch-from="{{$.DefaultBranch}}" data-branch-from-urlcomponent="{{PathEscapeSegments $.DefaultBranch}}" data-modal="#create-branch-modal" data-position="top right"> |
| 25 | + <button class="ui basic jump button icon tooltip show-create-branch-modal" data-content="{{$.locale.Tr "repo.branch.new_branch_from" ($.DefaultBranch)}}" data-branch-from="{{$.DefaultBranch}}" data-branch-from-urlcomponent="{{PathEscapeSegments $.DefaultBranch}}" data-modal="#create-branch-modal" data-position="top right"> |
26 | 26 | {{svg "octicon-git-branch"}} |
27 | | - </div> |
| 27 | + </button> |
28 | 28 | {{end}} |
29 | 29 | {{if not $.DisableDownloadSourceArchives}} |
30 | | - <div class="ui basic jump dropdown icon button tooltip" data-content="{{$.locale.Tr "repo.branch.download" ($.DefaultBranch)}}" data-position="top right"> |
| 30 | + <button class="ui basic jump dropdown icon button tooltip" data-content="{{$.locale.Tr "repo.branch.download" ($.DefaultBranch)}}" data-position="top right"> |
31 | 31 | {{svg "octicon-download"}} |
32 | 32 | <div class="menu"> |
33 | 33 | <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.DefaultBranch}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a> |
34 | 34 | <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.DefaultBranch}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a> |
35 | 35 | </div> |
36 | | - </div> |
| 36 | + </button> |
37 | 37 | {{end}} |
38 | 38 | </td> |
39 | 39 | </tr> |
|
108 | 108 | </td> |
109 | 109 | <td class="three wide right aligned overflow-visible"> |
110 | 110 | {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} |
111 | | - <div class="ui basic jump button icon tooltip show-create-branch-modal" data-branch-from="{{.Name}}" data-branch-from-urlcomponent="{{PathEscapeSegments .Name}}" data-content="{{$.locale.Tr "repo.branch.new_branch_from" .Name}}" data-position="top right" data-modal="#create-branch-modal" data-name="{{.Name}}"> |
| 111 | + <button class="ui basic jump button icon tooltip show-create-branch-modal" data-branch-from="{{.Name}}" data-branch-from-urlcomponent="{{PathEscapeSegments .Name}}" data-content="{{$.locale.Tr "repo.branch.new_branch_from" .Name}}" data-position="top right" data-modal="#create-branch-modal" data-name="{{.Name}}"> |
112 | 112 | {{svg "octicon-git-branch"}} |
113 | | - </div> |
| 113 | + </button> |
114 | 114 | {{end}} |
115 | 115 | {{if and (not .IsDeleted) (not $.DisableDownloadSourceArchives)}} |
116 | | - <div class="ui basic jump dropdown icon button tooltip" data-content="{{$.locale.Tr "repo.branch.download" (.Name)}}" data-position="top right"> |
| 116 | + <button class="ui basic jump dropdown icon button tooltip" data-content="{{$.locale.Tr "repo.branch.download" (.Name)}}" data-position="top right"> |
117 | 117 | {{svg "octicon-download"}} |
118 | 118 | <div class="menu"> |
119 | 119 | <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments .Name}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a> |
120 | 120 | <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments .Name}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a> |
121 | 121 | </div> |
122 | | - </div> |
| 122 | + </button> |
123 | 123 | {{end}} |
124 | 124 | {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} |
125 | 125 | {{if .IsDeleted}} |
126 | | - <a class="ui basic jump button icon tooltip undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID}}&name={{.DeletedBranch.Name}}" data-content="{{$.locale.Tr "repo.branch.restore" (.Name)}}" data-position="top right"><span class="text blue">{{svg "octicon-reply"}}</span></a> |
| 126 | + <button class="ui basic jump button icon tooltip undo-button" data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID}}&name={{.DeletedBranch.Name}}" data-content="{{$.locale.Tr "repo.branch.restore" (.Name)}}" data-position="top right"> |
| 127 | + <span class="text blue"> |
| 128 | + {{svg "octicon-reply"}} |
| 129 | + </span> |
| 130 | + </button> |
127 | 131 | {{else}} |
128 | | - <a class="ui basic jump button icon tooltip delete-button delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name}}" data-content="{{$.locale.Tr "repo.branch.delete" (.Name)}}" data-position="top right" data-name="{{.Name}}"> |
| 132 | + <button class="ui basic jump button icon tooltip delete-button delete-branch-button" data-url="{{$.Link}}/delete?name={{.Name}}" data-content="{{$.locale.Tr "repo.branch.delete" (.Name)}}" data-position="top right" data-name="{{.Name}}"> |
129 | 133 | {{svg "octicon-trash"}} |
130 | | - </a> |
| 134 | + </button> |
131 | 135 | {{end}} |
132 | 136 | {{end}} |
133 | 137 | </td> |
|
0 commit comments