|
|
@ -29,7 +29,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="info tw-flex tw-items-center tw-my-1">{{svg "octicon-git-commit" 16 "tw-mr-1"}}<a href="{{.RepoLink}}/commit/{{PathEscape .DefaultBranchBranch.DBBranch.CommitID}}">{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}}</a> · <span class="commit-message">{{ctx.RenderUtils.RenderCommitMessage .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{DateUtils.TimeSince .DefaultBranchBranch.DBBranch.CommitTime}}{{if .DefaultBranchBranch.DBBranch.Pusher}} {{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p> |
|
|
|
<p class="info tw-flex tw-items-center tw-my-1">{{svg "octicon-git-commit" 16 "tw-mr-1"}}<a href="{{.RepoLink}}/commit/{{PathEscape .DefaultBranchBranch.DBBranch.CommitID}}">{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}}</a> · <span class="commit-message">{{ctx.RenderUtils.RenderCommitMessage .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{DateUtils.TimeSince .DefaultBranchBranch.DBBranch.CommitTime}}{{if .DefaultBranchBranch.DBBranch.Pusher}} {{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td class="right aligned middle aligned overflow-visible"> |
|
|
|
{{/* FIXME: here and below, the tw-overflow-visible is not quite right but it is still needed the moment: to show the important buttons when the width is narrow */}} |
|
|
|
|
|
|
|
<td class="right aligned middle aligned tw-overflow-visible"> |
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} |
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} |
|
|
|
<button class="btn interact-bg show-create-branch-modal tw-p-2" |
|
|
|
<button class="btn interact-bg show-create-branch-modal tw-p-2" |
|
|
|
data-modal="#create-branch-modal" |
|
|
|
data-modal="#create-branch-modal" |
|
|
@ -148,7 +149,8 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td class="three wide right aligned overflow-visible"> |
|
|
|
{{/* FIXME: here and above, the tw-overflow-visible is not quite right */}} |
|
|
|
|
|
|
|
<td class="three wide right aligned tw-overflow-visible"> |
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .DBBranch.IsDeleted)}} |
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .DBBranch.IsDeleted)}} |
|
|
|
<button class="btn interact-bg tw-p-2 show-modal show-create-branch-modal" |
|
|
|
<button class="btn interact-bg tw-p-2 show-modal show-create-branch-modal" |
|
|
|
data-branch-from="{{.DBBranch.Name}}" |
|
|
|
data-branch-from="{{.DBBranch.Name}}" |
|
|
|