added missing title on history change

This commit is contained in:
Sebastian Sdorra
2011-08-15 13:18:43 +02:00
parent f92a360d73
commit 5268d258dc
3 changed files with 13 additions and 4 deletions

View File

@@ -200,6 +200,15 @@ if (Sonia.repository.PermissionFormPanel){
}
if (Sonia.repository.ChangesetViewerPanel){
Ext.override(Sonia.repository.ChangesetViewerPanel,{
// german ??
changesetViewerTitleText: 'Commits {0}'
});
}
if (Sonia.repository.InfoPanel){
Ext.override(Sonia.repository.InfoPanel, {
@@ -208,8 +217,7 @@ if (Sonia.repository.InfoPanel){
contactText: 'Kontakt: ',
urlText: 'Url: ',
// german ??
changesetViewerText: 'Commits',
changesetViewerTitleText: 'Commits: {0}'
changesetViewerText: 'Commits'
});
}

View File

@@ -38,6 +38,8 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
pageSize: 20,
historyId: null,
changesetViewerTitleText: 'Commits {0}',
initComponent: function(){
this.historyId = 'changesetviewer|' + this.repository.id;
@@ -66,6 +68,7 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
});
var config = {
title: String.format(this.changesetViewerTitleText, this.repository.name),
items: [{
xtype: 'repositoryChangesetViewerGrid',
repository: this.repository,

View File

@@ -44,7 +44,6 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, {
contactText: 'Contact: ',
urlText: 'Url: ',
changesetViewerText: 'Commits',
changesetViewerTitleText: 'Commits {0}',
initComponent: function(){
@@ -151,7 +150,6 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, {
createChangesetViewer: function(){
return {
id: this.item.id + '-changesetViewer',
title: String.format(this.changesetViewerTitleText, this.item.name),
repository: this.item,
xtype: 'repositoryChangesetViewerPanel',
closable: true,