]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3021 Display "Compare profiles" link also if not logged in or not an admin
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 27 Nov 2012 10:48:22 +0000 (11:48 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 27 Nov 2012 10:48:22 +0000 (11:48 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb

index be5d8b4acbdc21382cd67571b5b4701fe76e21f7..39601a348b056b5fe6cb49c1eb3902c9cde98687 100644 (file)
@@ -1,16 +1,16 @@
 <div class="line-block marginbottom10">
-  <% if administrator? %>
-    <ul style="float: right" class="operations">
-      <li>
-        <%= image_tag 'compare.png' -%>
-        <a href="profiles/compare" id="compare-link"><%= message('quality_profiles.compare_profiles') -%></a>
-      </li>
+  <ul style="float: right" class="operations">
+    <li>
+      <%= image_tag 'compare.png' -%>
+      <a href="profiles/compare" id="compare-link"><%= message('quality_profiles.compare_profiles') -%></a>
+    </li>
+    <% if administrator? %>
       <li class="last">
         <%= image_tag 'restore.gif' -%>
         <a href="profiles/restore_form" class="open-modal" id="restore-link"><%= message('quality_profiles.restore_profile') -%></a>
       </li>
-    </ul>
-  <% end %>
+    <% end %>
+  </ul>
   <h1 class="marginbottom10"><%= message('quality_profiles.page') -%></h1>
 </div>