]> source.dussan.org Git - archiva.git/commitdiff
if for some reasons admin or guest has been locked we must able to unlock with the ui
authorOlivier Lamy <olamy@apache.org>
Wed, 15 Feb 2012 15:27:43 +0000 (15:27 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 15 Feb 2012 15:27:43 +0000 (15:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1244533 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html

index e1a057ca2d6b0989fc99d968174c224a3b7a6685..f8ebd7494ca30172a2f9216540c6c7934acbfbfc 100644 (file)
               {{/if}}
               {{if row.locked()==true}}
                 <td>
-                    {{if row.username()=="admin" || row.username()=="guest"}}
-                      <img src="images/system-lock-screen-22-22.png"/>
-                    {{else}}
-                      <a href="#" data-bind="click: function(){ unlock(row) }"><img src="images/system-lock-screen-22-22.png"/></a>
-                    {{/if}}
+                  <a href="#" data-bind="click: function(){ unlock(row) }"><img src="images/system-lock-screen-22-22.png"/></a>
                 </td>
               {{else}}
                 <td>
-                    {{if row.username()=="admin" || row.username()=="guest"}}
-                      <img src="images/weather-clear-22-22.png"/>
-                    {{else}}
-                      <a href="#" data-bind="click: function(){ lock(row) }"><img src="images/weather-clear-22-22.png"/></a>
-                    {{/if}}
+                  <a href="#" data-bind="click: function(){ lock(row) }"><img src="images/weather-clear-22-22.png"/></a>
                 </td>
               {{/if}}
 
               {{if row.passwordChangeRequired()==true}}
                 <td>
-                    {{if row.username()=="admin" || row.username()=="guest"}}
-                      <img src="images/dialog-error-22-22.png"/>
-                    {{else}}
-                      <a href="#" data-bind="click: function(){ passwordChangeRequire(row,false) }">
-                          <img src="images/dialog-error-22-22.png"/>
-                      </a>
-                    {{/if}}
+                  <a href="#" data-bind="click: function(){ passwordChangeRequire(row,false) }">
+                    <img src="images/dialog-error-22-22.png"/>
+                  </a>
                 </td>
               {{else}}
               <td>
-                  {{if row.username()=="admin" || row.username()=="guest"}}
-                    <img src="images/weather-clear-22-22.png"/>
-                  {{else}}
-                    <a href="#" data-bind="click: function(){ passwordChangeRequire(row,true) }">
-                        <img src="images/weather-clear-22-22.png"/>
-                    </a>
-                  {{/if}}
+                <a href="#" data-bind="click: function(){ passwordChangeRequire(row,true) }">
+                  <img src="images/weather-clear-22-22.png"/>
+                </a>
               </td>
               {{/if}}
           </tr>