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}
]
});