]> source.dussan.org Git - archiva.git/commitdiff
use a css class to mark modified lines
authorOlivier Lamy <olamy@apache.org>
Tue, 31 Jan 2012 10:17:28 +0000 (10:17 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 31 Jan 2012 10:17:28 +0000 (10:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1238360 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/archiva.css
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/network-proxies.html

index 945a119ff63d8a0f3f44d9e75e38e21359b25542..a0bc8403b38fb1895c2f1cea3187e00f325928a8 100644 (file)
@@ -41,4 +41,8 @@
 
 .ar-multiselect-right {
     margin-left: 2em
+}
+
+.modified {
+    border:2px solid #fbc7c6;
 }
\ No newline at end of file
index 1401a53144727b83650acabd3fadb9f72478c8be..5ffaa40512d53fa88cc0ee06151bf52b56ab74c4 100644 (file)
     {{each(i, row) itemsOnCurrentPage()}}
       <tr>
         {{each(j, columnDefinition) columns}}
-        {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) :
-        row[columnDefinition.rowText])}}
-        <td>
-          <div data-bind="style: { color: modified() ? '#ee5f5b' : '' }">${val}</div>
-        </td>
+        {{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
+          <td data-bind="css:{ 'modified': row.modified()}">
+              ${val}
+          </td>
         {{/each}}
         {{if row.password()}}
-          <td>*****</td>
+          <td data-bind="css:{ 'modified': row.modified()}">*****</td>
         {{else}}
-          <td></td>
+          <td data-bind="css:{ 'modified': row.modified()}"></td>
         {{/if}}
-        <td>
+        <td data-bind="css:{ 'modified': row.modified()}">
             <a href="#" data-bind="click: function(){ editNetworkProxy(row) }">${$.i18n.prop('edit')}</a>
         </td>
-        <td>
+        <td data-bind="css:{ 'modified': row.modified()}">
             <a href="#" data-bind="click: function(){ removeNetworkProxy(row) }">
               <img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
             </a>
         </td>
         {{if row.modified()}}
-          <td><a href="#" data-bind="click: function(){ updateNetworkProxy(row) }">${$.i18n.prop('save')}</a></td>
+          <td data-bind="css:{ 'modified': row.modified()}">
+            <a href="#" data-bind="click: function(){ updateNetworkProxy(row) }">${$.i18n.prop('save')}</a>
+          </td>
         {{else}}
           <td></td>
         {{/if}}