mirror of https://github.com/apache/archiva.git
use a css class to mark modified lines
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1238360 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a8c86de2e
commit
9c83125f8c
|
@ -41,4 +41,8 @@
|
||||||
|
|
||||||
.ar-multiselect-right {
|
.ar-multiselect-right {
|
||||||
margin-left: 2em
|
margin-left: 2em
|
||||||
|
}
|
||||||
|
|
||||||
|
.modified {
|
||||||
|
border:2px solid #fbc7c6;
|
||||||
}
|
}
|
|
@ -57,27 +57,28 @@
|
||||||
{{each(i, row) itemsOnCurrentPage()}}
|
{{each(i, row) itemsOnCurrentPage()}}
|
||||||
<tr>
|
<tr>
|
||||||
{{each(j, columnDefinition) columns}}
|
{{each(j, columnDefinition) columns}}
|
||||||
{{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) :
|
{{var val = (typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText])}}
|
||||||
row[columnDefinition.rowText])}}
|
<td data-bind="css:{ 'modified': row.modified()}">
|
||||||
<td>
|
${val}
|
||||||
<div data-bind="style: { color: modified() ? '#ee5f5b' : '' }">${val}</div>
|
</td>
|
||||||
</td>
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{if row.password()}}
|
{{if row.password()}}
|
||||||
<td>*****</td>
|
<td data-bind="css:{ 'modified': row.modified()}">*****</td>
|
||||||
{{else}}
|
{{else}}
|
||||||
<td></td>
|
<td data-bind="css:{ 'modified': row.modified()}"></td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<td>
|
<td data-bind="css:{ 'modified': row.modified()}">
|
||||||
<a href="#" data-bind="click: function(){ editNetworkProxy(row) }">${$.i18n.prop('edit')}</a>
|
<a href="#" data-bind="click: function(){ editNetworkProxy(row) }">${$.i18n.prop('edit')}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td data-bind="css:{ 'modified': row.modified()}">
|
||||||
<a href="#" data-bind="click: function(){ removeNetworkProxy(row) }">
|
<a href="#" data-bind="click: function(){ removeNetworkProxy(row) }">
|
||||||
<img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
|
<img src="images/edit-cut.png" title="${$.i18n.prop('delete')}"/>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
{{if row.modified()}}
|
{{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}}
|
{{else}}
|
||||||
<td></td>
|
<td></td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue