added configuration parameters for repository archive

This commit is contained in:
Sebastian Sdorra
2012-03-27 15:04:24 +02:00
parent 7b74ef7820
commit a1f12e6ec0
5 changed files with 112 additions and 4 deletions

View File

@@ -247,8 +247,7 @@ public class AuthenticationResource
{
return new ScmState(contextProvider, securityContext,
repositoryManger.getConfiguredTypes(),
new ScmClientConfig(configuration.getDateFormat(),
configuration.isDisableGroupingGrid()));
new ScmClientConfig(configuration));
}
//~--- fields ---------------------------------------------------------------

View File

@@ -58,7 +58,8 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
forceBaseUrlText: 'Force Base Url',
// TODO i18n
disableGroupingGridText: 'Disable repository Groups',
disableGroupingGridText: 'Disable repository groups',
enableRepositoryArchiveText: 'Enable repository archive',
// help
@@ -84,7 +85,9 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
forceBaseUrlHelpText: 'Redirects to the base url if the request comes from a other url',
// TODO i18n
disableGroupingGridHelpText: 'Disable repository Groups. A complete page reload is required after a change of this value.',
disableGroupingGridHelpText: 'Disable repository groups. A complete page reload is required after a change of this value.',
// TODO
enableRepositoryArchiveHelpText: 'Enable repository archives.',
initComponent: function(){
@@ -112,6 +115,12 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
name: 'disableGroupingGrid',
inputValue: 'true',
helpText: this.disableGroupingGridHelpText
},{
xtype: 'checkbox',
fieldLabel: this.enableRepositoryArchiveText,
name: 'enableRepositoryArchive',
inputValue: 'true',
helpText: this.enableRepositoryArchiveHelpText
},{
xtype: 'textfield',
fieldLabel: this.dateFormatText,