Files
gitocean/templates/repo/issue/view_content/sidebar/reference.tmpl
T
Robert Wolffand0ko 3bee4ce24e fix(ui): adjust distances and remove a divider in the issue sidebar (#12786)
Some minor changes: coherent distances between heading and descriptions, drop a divider between time tracking related sections.

### Test

1. Go to an issue, add some time tracking and potentially dependencies.
2. Observe improved distances with a user with and once with a user without write permission.

The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12786
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
2026-05-31 10:11:17 +02:00

21 lines
772 B
Go HTML Template

<div class="ui form reference">
{{$issueReferenceLink := ""}}
{{if .Issue.IsPull}}
{{$issueReferenceLink = printf "%s!%d" .Issue.Repo.FullName .Issue.Index}}
{{else}}
{{$issueReferenceLink = printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
{{end}}
<span class="text">
<strong>
{{ctx.Locale.Tr "discussion.sidebar.reference"}}
</strong>
</span>
<p></p>
<div class="ui equal width compact grid">
<div class="row tw-items-center" data-tooltip-content="{{$issueReferenceLink}}">
<span class="text column truncate">{{$issueReferenceLink}}</span>
<button class="ui two wide button column tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "copy"}}" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
</div>
</div>
</div>