Ext.namespace('ui','ui.component');

// TODO: Extract the URI specific at php's project into the config file to allow use of others projects
// ViewVCDiff
// config - {prefix, fid, fpath, fname, rev1, rev2}
ui.component.ViewVCDiff = Ext.extend(Ext.Panel,
{
    layout    : 'fit',
    title     : _('Diff From VCS'),
    iconCls   : 'iconDiffView',
    collapsedIconCls : 'iconDiffView',
    plugins    : [Ext.ux.PanelCollapsedTitle],

    initComponent : function()
    {
        Ext.apply(this,
        {
            items : {
                id         : this.prefix + '-diff-' + this.fid,
                xtype      : 'panel',
                layout     : 'fit',
                items: [ new Ext.ux.IFrameComponent({
                             id  : 'frame-' + this.prefix + '-diff-' + this.fid,
                             url : String.format(PhDOE.appConf.viewVcUrl, this.fpath + this.fname, this.rev1, this.rev2)
                         })
                ]
            }
        });
        ui.component.ViewVCDiff.superclass.initComponent.call(this);
    }
});

Ext.namespace('ui','ui.component');

// ViewVCDiff
// config - {prefix, fid, fpath, fname, rev1, rev2}
ui.component.ViewVCDiff = Ext.extend(Ext.Panel,
{
    layout    : 'fit',
    title     : _('Diff From VCS'),
    iconCls   : 'iconDiffView',
    collapsedIconCls : 'iconDiffView',
    plugins    : [Ext.ux.PanelCollapsedTitle],

    initComponent : function()
    {
        Ext.apply(this,
        {
            items : {
                id         : this.prefix + '-diff-' + this.fid,
                xtype      : 'panel',
                layout     : 'fit',
                items: [ new Ext.ux.IFrameComponent({
                             id  : 'frame-' + this.prefix + '-diff-' + this.fid,
                             url : String.format(PhDOE.appConf.viewVcUrl, this.fpath + this.fname, this.rev1, this.rev2)
                         })
                ]
            }
        });
        ui.component.ViewVCDiff.superclass.initComponent.call(this);
    }
});

Remove old todo already done