[LNT] r327114 - Always display Profile button when having a profile.

Martin Liska via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 9 03:05:08 PST 2018


Author: marxin
Date: Fri Mar  9 03:05:08 2018
New Revision: 327114

URL: http://llvm.org/viewvc/llvm-project?rev=327114&view=rev
Log:
Always display Profile button when having a profile.

Differential Revision: https://reviews.llvm.org/D44144

Modified:
    lnt/trunk/lnt/server/ui/templates/layout.html
    lnt/trunk/lnt/server/ui/templates/utils.html

Modified: lnt/trunk/lnt/server/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/layout.html?rev=327114&r1=327113&r2=327114&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/layout.html (original)
+++ lnt/trunk/lnt/server/ui/templates/layout.html Fri Mar  9 03:05:08 2018
@@ -81,16 +81,6 @@
       }
     }
 
-    /* Make profile buttons invisible by default */
-    tr .profile-btn {
-      visibility: hidden;
-    }
-
-    /* But appear when their parent table rows are hovered. */
-    tr:hover .profile-btn {
-      visibility: visible;
-    }
-
     /* Floating headers can't have clear backgrounds. */
     .floating_header thead {
         background-color: #FFFFFF;

Modified: lnt/trunk/lnt/server/ui/templates/utils.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/utils.html?rev=327114&r1=327113&r2=327114&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/utils.html (original)
+++ lnt/trunk/lnt/server/ui/templates/utils.html Fri Mar  9 03:05:08 2018
@@ -37,19 +37,19 @@
     {% if compare_profile and profile %}
 
       <a href="{{ v4_url_for('.v4_profile_fwd2', run1_id=run_id, run2_id=compare_run_id, testid=test_id) }}"
-         class="profile-btn btn btn-mini pull-right">Profile<i class="icon-eye-open"></i></a>
+         class="btn btn-mini pull-right">Profile <i class="icon-eye-open"></i></a>
  
     {% elif profile %}
       
       <a href="{{ v4_url_for('.v4_profile_fwd', run1_id=run_id, testid=test_id) }}"
-         class="profile-btn btn btn-mni pull-right profile-but-no-prev" data-toggle="tooltip"
-         title="This run has a profile, but the run being compared to does not">Profile<i class="icon-exclamation-sign"></i></a>
+         class="btn btn-mni pull-right profile-but-no-prev" data-toggle="tooltip"
+         title="This run has a profile, but the run being compared to does not">Profile <i class="icon-exclamation-sign"></i></a>
       
     {% elif compare_profile %}
       
       <a href="{{ v4_url_for('.v4_profile_fwd', run1_id=compare_run_id, testid=test_id) }}"
-         class="profile-btn bt btn-mini pull-right profile-prev-only" data-toggle="tooltip"
-         title="This run does not have a profile, but the run being compared to does">Profile<i class="icon-exclamation-sign"></i></a>
+         class="bt btn-mini pull-right profile-prev-only" data-toggle="tooltip"
+         title="This run does not have a profile, but the run being compared to does">Profile <i class="icon-exclamation-sign"></i></a>
       
     {% endif %}
   {% endif %}




More information about the llvm-commits mailing list