aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content
diff options
context:
space:
mode:
authordelvh <leon@kske.dev>2023-02-15 12:34:10 +0100
committerGitHub <noreply@github.com>2023-02-15 19:34:10 +0800
commit03638f9725de3cda5207384098b38462f56d442e (patch)
tree67e2ccd7144e196f7e08b5991d08fb556215056b /templates/repo/issue/view_content
parentaa1d95300ab1b34a3b4c9f5902ea821f2aa99f6e (diff)
downloadgitea-03638f9725de3cda5207384098b38462f56d442e.tar.gz
gitea-03638f9725de3cda5207384098b38462f56d442e.zip
Add tooltip to issue reference (#22913)
Previously, you had no idea what you are copying with the issue reference button for either long repo names, user names, or issue indexes. Now, it is simply a bit redundant for short references but a lot easier for long references. ## Before ![image](https://user-images.githubusercontent.com/51889757/218995943-3b609ee9-4138-49ce-99b1-73fb1ea80280.png) ## After ![image](https://user-images.githubusercontent.com/51889757/218996119-4b6bf6c1-abfa-4618-81ca-a72914e73eb8.png)
Diffstat (limited to 'templates/repo/issue/view_content')
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 8437ab8234..90afe6b85e 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -577,8 +577,8 @@
<div class="ui divider"></div>
<div class="ui equal width compact grid">
- <div class="row gt-ac">
- {{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
+ {{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
+ <div class="row gt-ac tooltip" data-content="{{$issueReferenceLink}}">
<span class="text column truncate">{{.locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
<button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
</div>