mark modified users in the users grid

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293961 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-02-26 23:08:17 +00:00
parent cecca877d4
commit 89ca2d1902

View File

@ -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}}
<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>
{{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>