]> source.dussan.org Git - archiva.git/commitdiff
mark modified users in the users grid
authorOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 23:08:17 +0000 (23:08 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 26 Feb 2012 23:08:17 +0000 (23:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293961 13f79535-47bb-0310-9956-ffa450edef68

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

index da8f9912f183929b0ebeb290b3f6e1f97ccf607f..73be56b54ff93519dc55129ecdb92fcf2f75bff0 100644 (file)
   </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>