]> source.dussan.org Git - archiva.git/commitdiff
replace password with starts if exists
authorOlivier Lamy <olamy@apache.org>
Fri, 27 Jan 2012 15:58:49 +0000 (15:58 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 27 Jan 2012 15:58:49 +0000 (15:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1236725 13f79535-47bb-0310-9956-ffa450edef68

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

index b717fe9cd5e4210c8d581fae411586856b649266..ed48913ed565a8c336c079a045060c3c80c9de64 100644 (file)
@@ -188,10 +188,6 @@ $(function() {
               {
               headerText: $.i18n.prop('username'),
               rowText: "username"
-              },
-              {
-              headerText: $.i18n.prop('password'),
-              rowText: "password"
               }
             ],
             pageSize: 5,
index e0f585852d7364df25a6a0e70c076ff7d20e3784..c19d99b7d8312b574d7b395bd83c3fd316ca859e 100644 (file)
@@ -29,6 +29,7 @@
         {{each(i, columnDefinition) columns}}
         <th>${ columnDefinition.headerText }</th>
         {{/each}}
+        <th>${$.i18n.prop('password')}</th>
         <th>${$.i18n.prop('edit')}</th>
         <th>${$.i18n.prop('delete')}</th>
     </tr>
             ${val}
         </td>
         {{/each}}
+        {{if row.password()}}
+          <td>*****</td>
+        {{else}}
+          <td></td>
+        {{/if}}
         <td>
             <a href="#" data-bind="click: function(){ editNetworkProxy(row) }">${$.i18n.prop('edit')}</a>
         </td>