|
23 | 23 | {{end}}
|
24 | 24 | {{end}}
|
25 | 25 | </td>
|
| 26 | + <td class="right aligned overflow-visible"> |
| 27 | + <div class="ui basic jump dropdown icon button poping up" data-content="{{$.i18n.Tr "repo.branch.download" ($.DefaultBranch|EscapePound)}}" data-variation="tiny inverted" data-position="top right"> |
| 28 | + <i class="download icon"></i> |
| 29 | + <div class="menu"> |
| 30 | + <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound $.DefaultBranch}}.zip"><i class="octicon octicon-file-zip"></i> ZIP</a> |
| 31 | + <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound $.DefaultBranch}}.tar.gz"><i class="octicon octicon-file-zip"></i> TAR.GZ</a> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + </td> |
26 | 35 | </tr>
|
27 | 36 | </tbody>
|
28 | 37 | </table>
|
|
50 | 59 | <p class="info"><i class="octicon octicon-git-commit"></i><a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · <span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span> · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
|
51 | 60 | {{end}}
|
52 | 61 | </td>
|
53 |
| - <td class="two wide ui"> |
| 62 | + <td class="three wide ui"> |
54 | 63 | {{if not .IsDeleted}}
|
55 | 64 | <div class="commit-divergence">
|
56 | 65 | <div class="bar-group">
|
|
82 | 91 | {{end}}
|
83 | 92 | {{end}}
|
84 | 93 | </td>
|
85 |
| - {{if and $.IsWriter (not $.IsMirror)}} |
86 |
| - <td class="one wide right aligned"> |
87 |
| - {{if and .IsDeleted (not .IsProtected)}} |
88 |
| - <a class="ui basic jump button icon poping up undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID | urlquery}}&name={{.DeletedBranch.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.restore" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right"><i class="octicon octicon-reply text blue"></i></a> |
89 |
| - {{else if (not .IsProtected)}} |
90 |
| - <a class="ui basic jump button icon poping up delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.delete" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right" data-name="{{.Name}}"><i class="trash icon text red"></i></a> |
| 94 | + <td class="two wide right aligned overflow-visible"> |
| 95 | + {{if (not .IsDeleted)}} |
| 96 | + <div class="ui basic jump dropdown icon button poping up" data-content="{{$.i18n.Tr "repo.branch.download" (.Name|EscapePound)}}" data-variation="tiny inverted" data-position="top right"> |
| 97 | + <i class="download icon"></i> |
| 98 | + <div class="menu"> |
| 99 | + <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound .Name}}.zip"><i class="octicon octicon-file-zip"></i> ZIP</a> |
| 100 | + <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound .Name}}.tar.gz"><i class="octicon octicon-file-zip"></i> TAR.GZ</a> |
| 101 | + </div> |
| 102 | + </div> |
91 | 103 | {{end}}
|
92 |
| - </td> |
93 |
| - {{end}} |
| 104 | + {{if and $.IsWriter (not $.IsMirror) (not .IsProtected)}} |
| 105 | + {{if .IsDeleted}} |
| 106 | + <a class="ui basic jump button icon poping up undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID | urlquery}}&name={{.DeletedBranch.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.restore" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right"><i class="octicon octicon-reply text blue"></i></a> |
| 107 | + {{else}} |
| 108 | + <a class="ui basic jump button icon poping up delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.delete" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right" data-name="{{.Name}}"><i class="trash icon text red"></i></a> |
| 109 | + {{end}} |
| 110 | + {{end}} |
| 111 | + </td> |
94 | 112 | </tr>
|
95 | 113 | {{end}}
|
96 | 114 | {{end}}
|
|
0 commit comments