You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2012/02/15 16:27:44 UTC
svn commit: r1244533 -
/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html
Author: olamy
Date: Wed Feb 15 15:27:43 2012
New Revision: 1244533
URL: http://svn.apache.org/viewvc?rev=1244533&view=rev
Log:
if for some reasons admin or guest has been locked we must able to unlock with the ui
Modified:
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html
Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html?rev=1244533&r1=1244532&r2=1244533&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html Wed Feb 15 15:27:43 2012
@@ -50,41 +50,25 @@
{{/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>