From aa935f8ee5d5f589cb160f1f3c46ededa1155800 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 4 Apr 2011 10:53:08 +0200 Subject: [PATCH] use templateColumn for ChangesetViewer --- .../src/main/webapp/resources/js/sonia.repository.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.repository.js b/scm-webapp/src/main/webapp/resources/js/sonia.repository.js index 399c7a4d83..fc4113382a 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.repository.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.repository.js @@ -689,7 +689,7 @@ Sonia.repository.ChangesetViewerGrid = Ext.extend(Ext.grid.GridPanel, { * 2 - author * 3 - description */ - changesetTemplate: '
{0}: {3}
{2}
{1}
', + changesetTemplate: '
{id}: {description:htmlEncode}
{author:htmlEncode}
{date}
', initComponent: function(){ @@ -712,10 +712,7 @@ Sonia.repository.ChangesetViewerGrid = Ext.extend(Ext.grid.GridPanel, { sortable: false }, columns: [ - {id: 'changeset', dataIndex: 'id', renderer: this.renderChangeset, scope: this}, - {id: 'date', dataIndex: 'date', header: 'Date', hidden: true}, - {id: 'author', dataIndex: 'author', header: 'Author', hidden: true}, - {id: 'description', dataIndex: 'description', header: 'Description', hidden: true} + {id: 'changeset', dataIndex: 'id', xtype: 'templatecolumn', tpl: this.changesetTemplate} ] });