RemoteRepository=function(id,name,layout,indexDirectory,url,userName,password,timeout,downloadRemoteIndex,remoteIndexUrl,
- remoteDownloadNetworkProxyId,cronExpression,remoteDownloadTimeout,downloadRemoteIndexOnStartup){
+ remoteDownloadNetworkProxyId,cronExpression,remoteDownloadTimeout,downloadRemoteIndexOnStartup,
+ description){
var self=this;
this.timeout.subscribe(function(newValue){self.modified(true)});
//private boolean downloadRemoteIndex = false;
- this.downloadRemoteIndex=ko.observable(downloadRemoteIndex);
+ this.downloadRemoteIndex=ko.observable(downloadRemoteIndex?false:downloadRemoteIndex);
this.downloadRemoteIndex.subscribe(function(newValue){self.modified(true)});
//private String remoteIndexUrl = ".index";
this.remoteDownloadTimeout.subscribe(function(newValue){self.modified(true)});
//private boolean downloadRemoteIndexOnStartup = false;
- this.downloadRemoteIndexOnStartup=ko.observable(downloadRemoteIndexOnStartup);
+ this.downloadRemoteIndexOnStartup=ko.observable(downloadRemoteIndexOnStartup?false:downloadRemoteIndexOnStartup);
this.downloadRemoteIndexOnStartup.subscribe(function(newValue){self.modified(true)});
+ this.description=ko.observable(description);
+ this.description.subscribe(function(newValue){self.modified(true)});
+
this.getTypeLabel=function(){
for(var i=0;i<window.managedRepositoryTypes.length;i++){
if (window.managedRepositoryTypes[i].type==self.layout()){
}
return new RemoteRepository(data.id,data.name,data.layout,data.indexDirectory,data.url,data.userName,data.password,
data.timeout,data.downloadRemoteIndex,data.remoteIndexUrl,data.remoteDownloadNetworkProxyId,
- data.cronExpression,data.remoteDownloadTimeout,data.downloadRemoteIndexOnStartup);
+ data.cronExpression,data.remoteDownloadTimeout,data.downloadRemoteIndexOnStartup,data.description);
}
mapRemoteRepositories=function(data){
ko.applyBindings(remoteRepositoriesViewModel,mainContent.find("#remote-repositories-view").get(0));
mainContent.find("#remote-repositories-pills #remote-repositories-view-a").tab('show')
removeMediumSpinnerImg("#main-content #remote-repositories-content");
+ activatePopoverDoc();
});
<input type="text" id="retentionCount" name="retentionCount" size="5" data-bind="value: managedRepository.retentionCount"/>
</div>
</div>
-
<div class="control-group">
<label class="control-label" for="daysOlder">${$.i18n.prop('description')}</label>
<div class="controls">
<textarea rows="3" id="description" name="description" data-bind="value: managedRepository.description"></textarea>
</div>
</div>
-
<div class="control-group">
<label class="control-label" for="releases">${$.i18n.prop('releases')}</label>
<div class="controls">
{{else}}
<td></td>
{{/if}}
+ <td>
+ {{if row.description()}}
+ <a class="btn btn-warning btn-mini popover-doc" id="remoterepo-description-help"
+ data-content="${row.description()}" data-title="${$.i18n.prop('description')}">
+ <i class="icon-question-sign icon-white"></i>
+ </a>
+ {{/if}}
+ </td>
<td>
<a href="#" data-bind="click: function(){ scheduleDownloadRemoteIndex(row) }">
<span class="btn btn-success">
</div>
</div>
-
<div class="control-group">
<label class="control-label" for="downloadRemoteIndexOnStartup">${$.i18n.prop('downloadRemoteIndexOnStartup')}</label>
<div class="controls">
</div>
</div>
+ <div class="control-group">
+ <label class="control-label" for="daysOlder">${$.i18n.prop('description')}</label>
+ <div class="controls">
+ <textarea rows="3" id="description" name="description" data-bind="value: remoteRepository.description"></textarea>
+ </div>
+ </div>
+
</fieldset>
<button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
<button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>