|
36 | 36 | </h3>
|
37 | 37 | <div class="download df ac">
|
38 | 38 | {{if $.Permission.CanRead $.UnitTypeCode}}
|
39 |
| - <a class="mr-3 mono" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a> |
| 39 | + <a class="mr-3 mono muted" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a> |
40 | 40 | {{if not $.DisableDownloadSourceArchives}}
|
41 |
| - <a class="archive-link mr-3" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "mr-2"}}ZIP</a> |
42 |
| - <a class="archive-link mr-3" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ</a> |
| 41 | + <a class="archive-link mr-3 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "mr-2"}}ZIP</a> |
| 42 | + <a class="archive-link mr-3 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ</a> |
43 | 43 | {{end}}
|
44 | 44 | {{if (and $.CanCreateRelease $release.IsTag)}}
|
45 |
| - <a class="mr-3" href="{{$.RepoLink}}/releases/new?tag={{.TagName}}">{{svg "octicon-tag" 16 "mr-2"}}{{$.locale.Tr "repo.release.new_release"}}</a> |
| 45 | + <a class="mr-3 muted" href="{{$.RepoLink}}/releases/new?tag={{.TagName}}">{{svg "octicon-tag" 16 "mr-2"}}{{$.locale.Tr "repo.release.new_release"}}</a> |
46 | 46 | {{end}}
|
47 | 47 | {{if (and ($.Permission.CanWrite $.UnitTypeCode) $release.IsTag)}}
|
48 |
| - <a class="ui red delete-button mr-3" data-url="{{$.RepoLink}}/tags/delete" data-id="{{.ID}}"> |
| 48 | + <a class="ui delete-button mr-3 muted" data-url="{{$.RepoLink}}/tags/delete" data-id="{{.ID}}"> |
49 | 49 | {{svg "octicon-trash" 16 "mr-2"}}{{$.locale.Tr "repo.release.delete_tag"}}
|
50 | 50 | </a>
|
51 | 51 | {{end}}
|
52 | 52 | {{if (not $release.IsTag)}}
|
53 |
| - <a class="mr-3" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{svg "octicon-tag" 16 "mr-2"}}{{$.locale.Tr "repo.release.detail"}}</a> |
| 53 | + <a class="mr-3 muted" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{svg "octicon-tag" 16 "mr-2"}}{{$.locale.Tr "repo.release.detail"}}</a> |
54 | 54 | {{end}}
|
55 | 55 | {{end}}
|
56 | 56 | </div>
|
|
69 | 69 | {{if .IsTag}}
|
70 | 70 | {{if .CreatedUnix}}<span class="time">{{TimeSinceUnix .CreatedUnix $.locale}}</span>{{end}}
|
71 | 71 | {{else}}
|
72 |
| - {{if .IsDraft}} |
73 |
| - <span class="ui yellow label">{{$.locale.Tr "repo.release.draft"}}</span> |
74 |
| - {{else if .IsPrerelease}} |
75 |
| - <span class="ui orange label">{{$.locale.Tr "repo.release.prerelease"}}</span> |
76 |
| - {{else}} |
77 |
| - <span class="ui green label">{{$.locale.Tr "repo.release.stable"}}</span> |
78 |
| - {{end}} |
79 |
| - <span class="tag text blue"> |
80 |
| - <a class="df ac je" href="{{if not .Sha1}}#{{else}}{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}{{end}}" rel="nofollow">{{svg "octicon-tag" 16 "mr-2"}}{{.TagName}}</a> |
81 |
| - </span> |
| 72 | + <a class="df ac je muted" href="{{if not .Sha1}}#{{else}}{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}{{end}}" rel="nofollow">{{svg "octicon-tag" 16 "mr-2"}}{{.TagName}}</a> |
82 | 73 | {{if .Sha1}}
|
83 | 74 | <span class="commit">
|
84 |
| - <a class="mono" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a> |
| 75 | + <a class="mono muted" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a> |
85 | 76 | </span>
|
86 | 77 | {{template "repo/branch_dropdown" dict "root" $ "release" .}}
|
87 | 78 | {{end}}
|
88 | 79 | {{end}}
|
89 | 80 | </div>
|
90 | 81 | <div class="ui twelve wide column detail">
|
91 | 82 | {{if .IsTag}}
|
92 |
| - <h4> |
93 |
| - <a href="{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{svg "octicon-tag" 16 "mr-2"}}{{.TagName}}</a> |
94 |
| - </h4> |
| 83 | + <div class="df ac sb fw mb-3"> |
| 84 | + <h4 class="release-list-title df ac"> |
| 85 | + <a class="df ac" href="{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{svg "octicon-tag" 24 "mr-3"}}{{.TagName}}</a> |
| 86 | + </h4> |
| 87 | + </div> |
95 | 88 | <p class="text grey">
|
96 | 89 | {{if gt .Publisher.ID 0}}
|
97 | 90 | <span class="author">
|
98 | 91 | {{avatar .Publisher 20}}
|
99 | 92 | <a href="{{.Publisher.HomeLink}}">{{.Publisher.Name}}</a>
|
100 | 93 | </span>
|
| 94 | + <span class="released"> |
| 95 | + {{$.locale.Tr "repo.released_this"}} |
| 96 | + </span> |
| 97 | + {{if .CreatedUnix}} |
| 98 | + <span class="time">{{TimeSinceUnix .CreatedUnix $.locale}}</span> |
| 99 | + {{end}} |
| 100 | + | |
101 | 101 | {{end}}
|
102 | 102 | <span class="ahead"><a href="{{$.RepoLink}}/compare/{{.TagName | PathEscapeSegments}}{{if .Target}}...{{.Target | PathEscapeSegments}}{{end}}">{{$.locale.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}}</a> {{$.locale.Tr "repo.release.ahead.target" $.DefaultBranch}}</span>
|
103 | 103 | </p>
|
104 | 104 | <div class="download">
|
105 | 105 | {{if $.Permission.CanRead $.UnitTypeCode}}
|
106 |
| - <a class="mono" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a> |
| 106 | + <a class="mono muted" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}</a> |
107 | 107 | {{if not $.DisableDownloadSourceArchives}}
|
108 |
| - <a class="archive-link" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a> |
109 |
| - <a class="archive-link" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a> |
| 108 | + <a class="archive-link muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a> |
| 109 | + <a class="archive-link muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a> |
110 | 110 | {{end}}
|
111 | 111 | {{end}}
|
112 | 112 | </div>
|
113 | 113 | {{else}}
|
114 |
| - <h4 class="release-list-title df ac"> |
115 |
| - <a href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{.Title}}</a> |
116 |
| - {{if $.CanCreateRelease}} |
117 |
| - <small class="ml-2"> |
118 |
| - (<a href="{{$.RepoLink}}/releases/edit/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{$.locale.Tr "repo.release.edit"}}</a>) |
119 |
| - </small> |
120 |
| - {{end}} |
121 |
| - </h4> |
| 114 | + <div class="df ac sb fw mb-3"> |
| 115 | + <h4 class="release-list-title df ac"> |
| 116 | + <a href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{.Title}}</a> |
| 117 | + {{if .IsDraft}} |
| 118 | + <span class="ui yellow label ml-3 mt-1">{{$.locale.Tr "repo.release.draft"}}</span> |
| 119 | + {{else if .IsPrerelease}} |
| 120 | + <span class="ui orange label ml-3 mt-1">{{$.locale.Tr "repo.release.prerelease"}}</span> |
| 121 | + {{else if not .IsTag}} |
| 122 | + <span class="ui green label ml-3 mt-1">{{$.locale.Tr "repo.release.stable"}}</span> |
| 123 | + {{end}} |
| 124 | + </h4> |
| 125 | + <div class="df ac"> |
| 126 | + {{if $.CanCreateRelease}} |
| 127 | + <a class="muted tooltip ml-3 df ac" data-content="{{$.locale.Tr "repo.release.edit"}}" href="{{$.RepoLink}}/releases/edit/{{.TagName | PathEscapeSegments}}" rel="nofollow"> |
| 128 | + {{svg "octicon-pencil"}} |
| 129 | + </a> |
| 130 | + {{end}} |
| 131 | + </div> |
| 132 | + </div> |
122 | 133 | <p class="text grey">
|
123 | 134 | <span class="author">
|
124 | 135 | {{if .OriginalAuthor}}
|
|
0 commit comments