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/27 00:08:18 UTC
svn commit: r1293961 -
/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html
Author: olamy
Date: Sun Feb 26 23:08:17 2012
New Revision: 1293961
URL: http://svn.apache.org/viewvc?rev=1293961&view=rev
Log:
mark modified users in the users grid
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=1293961&r1=1293960&r2=1293961&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 Sun Feb 26 23:08:17 2012
@@ -30,48 +30,48 @@
</thead>
<tbody>
{{each(i, row) itemsOnCurrentPage()}}
- <tr>
- {{each(j, columnDefinition) columns}}
- <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
- {{/each}}
- <td id="users-grid-user-id-${row.username()}">
- <a href="#" data-bind="click: function(){ editUserBox(row) }">
- <img src="images/edit-find-22-22.png" title="${$.i18n.prop('edit')}">
- </a>
- </td>
- {{if row.username()=="admin" || row.username()=="guest"}}
- <td></td>
- {{else}}
- <td>
- <a href="#" data-bind="click: function(){ deleteUser(row) }" id="users-grid-delete-${row.username()}">
- <img src="images/edit-cut-22-22.png" alt="${$.i18n.prop('delete')}"/>
- </a>
- </td>
- {{/if}}
- {{if row.locked()==true}}
- <td>
- <a href="#" data-bind="click: function(){ unlock(row) }"><img src="images/system-lock-screen-22-22.png"/></a>
- </td>
- {{else}}
- <td>
- <a href="#" data-bind="click: function(){ lock(row) }"><img src="images/weather-clear-22-22.png"/></a>
- </td>
- {{/if}}
-
- {{if row.passwordChangeRequired()==true}}
- <td>
- <a href="#" data-bind="click: function(){ passwordChangeRequire(row,false) }">
- <img src="images/dialog-error-22-22.png"/>
- </a>
- </td>
- {{else}}
- <td>
- <a href="#" data-bind="click: function(){ passwordChangeRequire(row,true) }">
- <img src="images/weather-clear-22-22.png"/>
- </a>
- </td>
- {{/if}}
- </tr>
+ <tr data-bind="css:{ 'modified': row.modified()}">
+ {{each(j, columnDefinition) columns}}
+ <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
+ {{/each}}
+ <td id="users-grid-user-id-${row.username()}">
+ <a href="#" data-bind="click: function(){ editUserBox(row) }">
+ <img src="images/edit-find-22-22.png" title="${$.i18n.prop('edit')}">
+ </a>
+ </td>
+ {{if row.username()=="admin" || row.username()=="guest"}}
+ <td></td>
+ {{else}}
+ <td>
+ <a href="#" data-bind="click: function(){ deleteUser(row) }" id="users-grid-delete-${row.username()}">
+ <img src="images/edit-cut-22-22.png" alt="${$.i18n.prop('delete')}"/>
+ </a>
+ </td>
+ {{/if}}
+ {{if row.locked()==true}}
+ <td>
+ <a href="#" data-bind="click: function(){ unlock(row) }"><img src="images/system-lock-screen-22-22.png"/></a>
+ </td>
+ {{else}}
+ <td>
+ <a href="#" data-bind="click: function(){ lock(row) }"><img src="images/weather-clear-22-22.png"/></a>
+ </td>
+ {{/if}}
+
+ {{if row.passwordChangeRequired()==true}}
+ <td>
+ <a href="#" data-bind="click: function(){ passwordChangeRequire(row,false) }">
+ <img src="images/dialog-error-22-22.png"/>
+ </a>
+ </td>
+ {{else}}
+ <td>
+ <a href="#" data-bind="click: function(){ passwordChangeRequire(row,true) }">
+ <img src="images/weather-clear-22-22.png"/>
+ </a>
+ </td>
+ {{/if}}
+ </tr>
{{/each}}
</tbody>