File tree 3 files changed +14
-7
lines changed
3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -982,7 +982,8 @@ tbody.commit-list{vertical-align:baseline}
982
982
.ui .repository .list .item .time {font-size : 12px ;color : grey}
983
983
.ui .repository .list .item .ui .tags {margin-bottom : 1em }
984
984
.ui .repository .list .item .ui .avatar .image {width : 24px ;height : 24px }
985
- .ui .repository .branches .time {font-size : 12px ;color : grey}
985
+ .ui .repository .branches .info {font-size : 12px ;color : grey}
986
+ .ui .repository .branches .info i {vertical-align : middle}
986
987
.ui .user .list .item {padding-bottom : 25px }
987
988
.ui .user .list .item : not (: first-child ){border-top : 1px solid # eee ;padding-top : 25px }
988
989
.ui .user .list .item .ui .avatar .image {width : 40px ;height : 40px }
Original file line number Diff line number Diff line change 62
62
}
63
63
64
64
.ui.repository.branches {
65
- .time {
65
+ .info {
66
66
font-size : 12px ;
67
67
color : #808080 ;
68
+ i {
69
+ vertical-align : middle ;
70
+ }
68
71
}
69
72
}
70
73
Original file line number Diff line number Diff line change 14
14
<tr>
15
15
<td>
16
16
{{range $branch := .Branches}}
17
- {{if and .IsProtected (eq .Name $.DefaultBranch)}}
18
- <i class="octicon octicon-shield"></i>
17
+ {{if eq .Name $.DefaultBranch}}
18
+ {{if .IsProtected}}
19
+ <i class="octicon octicon-shield"></i>
20
+ {{end}}
21
+ {{$.DefaultBranch}}
22
+ <p class="info"><i class="octicon octicon-git-commit"></i><a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · {{Safe (EllipsisString (Printf "%s" (RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas)) 72)}} · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
19
23
{{end}}
20
24
{{end}}
21
- {{.DefaultBranch}}
22
25
</td>
23
26
</tr>
24
27
</tbody>
48
51
<td>
49
52
{{if .IsDeleted}}
50
53
<s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
51
- <p class="time ">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
54
+ <p class="info ">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
52
55
{{else}}
53
56
{{if .IsProtected}}
54
57
<i class="octicon octicon-shield"></i>
55
58
{{end}}
56
59
<a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a>
57
- <p class="time"> {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
60
+ <p class="info"><i class="octicon octicon-git-commit"></i><a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · {{Safe (EllipsisString (Printf "%s" (RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas)) 72)}} · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
58
61
{{end}}
59
62
</td>
60
63
<td class="ui">
You can’t perform that action at this time.
0 commit comments