From 4a3b0eace74fd5752185c661599f324eb5c0563a Mon Sep 17 00:00:00 2001
From: four_4 <fruitloopsgo@gmail.com>
Date: May 17 2024 14:07:34 +0000
Subject: Added data-toggle attribute to missing tooltips (Issue #4965)


---

diff --git a/pagure/templates/commits.html b/pagure/templates/commits.html
index 807159b..8aee5c9 100644
--- a/pagure/templates/commits.html
+++ b/pagure/templates/commits.html
@@ -115,6 +115,7 @@
                         {{ diff_commit_full.author | author2avatar(20) | safe }}
                         {{ diff_commit_full.author.name }}
                       <span class="commitdate"
+                            data-toggle="tooltip"
                       title="{{ diff_commit_full.commit_time|format_ts }}"> &bull;
                       {{ diff_commit_full.commit_time|humanize }}</span>&nbsp;&nbsp;
                     </div>
@@ -172,6 +173,7 @@
                           author=commit.author.email),
                       cssclass="notblue")|safe}}
                       <span class="commitdate"
+                            data-toggle="tooltip"
                       title="{{ commit.commit_time|format_ts }}"> &bull;
                     {{ commit.commit_time|humanize }}</span>&nbsp;&nbsp;
                       <span id="commit-actions"></span>
diff --git a/pagure/templates/file_history.html b/pagure/templates/file_history.html
index 8b2af2b..d016528 100644
--- a/pagure/templates/file_history.html
+++ b/pagure/templates/file_history.html
@@ -122,6 +122,7 @@
                           author=commit.author.email),
                       cssclass="notblue")|safe}}
                       <span class="commitdate"
+                            data-toggle="tooltip"
                       title="{{ commit.commit_time|format_ts }}"> &bull;
                     {{ commit.commit_time|humanize }}</span>&nbsp;&nbsp;
                       <span id="commit-actions"></span>
diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html
index 9070bfe..5612cc5 100644
--- a/pagure/templates/issue.html
+++ b/pagure/templates/issue.html
@@ -97,7 +97,7 @@
             <span class="text-muted" data-toggle="tooltip" title="{{issue.date_created | format_datetime}}">
                 <span class="font-weight-bold">Opened</span> {{ issue.date_created |humanize }}
             </span>
-            <span class="text-muted" title="{{ issue.user.html_title }}">by {{ issue.user.user }}.</span>
+            <span class="text-muted" data-toggle="tooltip" title="{{ issue.user.html_title }}">by {{ issue.user.user }}.</span>
           {% endif %}
           </small>
         </div>
diff --git a/pagure/templates/repo_comparecommits.html b/pagure/templates/repo_comparecommits.html
index 7826ea1..5c76efe 100644
--- a/pagure/templates/repo_comparecommits.html
+++ b/pagure/templates/repo_comparecommits.html
@@ -95,6 +95,7 @@
                       author=commit.author.email),
                   cssclass="notblue")|safe}}
                   <span class="commitdate"
+                        data-toggle="tooltip"
                   title="{{ commit.commit_time|format_ts }}"> &bull;
                 {{ commit.commit_time|humanize }}</span>&nbsp;&nbsp;
             </div>
diff --git a/pagure/templates/repo_new_pull_request.html b/pagure/templates/repo_new_pull_request.html
index 7687df1..bec836b 100644
--- a/pagure/templates/repo_new_pull_request.html
+++ b/pagure/templates/repo_new_pull_request.html
@@ -290,6 +290,7 @@
                           author=commit.author.email),
                       cssclass="notblue")|safe}}
                       <span class="commitdate"
+                            data-toggle="tooltip"
                       title="{{ commit.commit_time|format_ts }}"> &bull;
                     {{ commit.commit_time|humanize }}</span>&nbsp;&nbsp;
                 </div>
diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html
index 18ce35e..fd7d9d2 100644
--- a/pagure/templates/repo_pull_request.html
+++ b/pagure/templates/repo_pull_request.html
@@ -68,7 +68,7 @@
             <span class="text-muted" data-toggle="tooltip" title="{{pull_request.date_created | format_datetime}}">
                 <span class="font-weight-bold">Opened</span> {{ pull_request.date_created |humanize }}
             </span>
-            <span class="text-muted" title="{{ pull_request.user.html_title }}">by {{ pull_request.user.user }}.</span>
+            <span class="text-muted" data-toggle="tooltip" title="{{ pull_request.user.html_title }}">by {{ pull_request.user.user }}.</span>
           {% elif pull_request.status == 'Closed' %}
             <span data-toggle="tooltip" title="{{pull_request.closed_at | format_datetime}}">
               <span class="text-danger font-weight-bold">Closed</span> {{ pull_request.closed_at |humanize }}
@@ -78,7 +78,7 @@
             <span class="text-muted" data-toggle="tooltip" title="{{pull_request.date_created | format_datetime}}">
                 <span class="font-weight-bold">Opened</span> {{ pull_request.date_created |humanize }}
             </span>
-            <span class="text-muted" title="{{ pull_request.user.html_title }}">by {{ pull_request.user.user }}.</span>
+            <span class="text-muted" data-toggle="tooltip" title="{{ pull_request.user.html_title }}">by {{ pull_request.user.user }}.</span>
           {% endif %}
           </small>
         </div>
@@ -342,6 +342,7 @@
                           author=commit.author.email),
                       cssclass="notblue")|safe}}
                       <span class="commitdate"
+                            data-toggle="tooltip"
                       title="{{ commit.commit_time|format_ts }}"> &bull;
                     {{ commit.commit_time|humanize }}</span>&nbsp;&nbsp;
                 </div>

