(function ($) {
    var csscls = PhpDebugBar.utils.makecsscls('phpdebugbar-widgets-')
    var InfoWidget = PhpDebugBar.Widgets.InfoWidget = PhpDebugBar.Widget.extend({
        tagName: 'table',
        className: csscls('info'),
        render: function () {
            this.bindAttr('data', function (data) {
                this.$el.empty()
                var tr
                /*
                // @todo enable Info link
                var link = $('')
                    .text('Info')
                    .attr('href', 'index.php?option=com_content&view=debug&id=' + data.requestId)
                    .attr('target', '_blank');
                tr = $('
|
')
                    .append($('').text('Info'))
                    .append($(' | ').append(link));
                this.$el.append(tr);
                */
                tr = $(' | |
')
                    .append($('').text('Joomla! Version'))
                    .append($(' | ').text(data.joomlaVersion))
                this.$el.append(tr)
                tr = $(' | |
')
                    .append($('').text('PHP Version'))
                    .append($(' | ').text(data.phpVersion))
                this.$el.append(tr)
                tr = $(' | |
')
                    .append($('').text('Identity'))
                    .append($(' | ').text(data.identity.type))
                this.$el.append(tr)
                tr = $(' | |
')
                    .append($('').text('Response'))
                    .append($(' | ').text(data.response.status_code))
                this.$el.append(tr)
                tr = $(' | |
')
                    .append($('').text('Template'))
                    .append($(' | ').text(data.template.template))
                this.$el.append(tr)
                tr = $(' | |
')
                    .append($('').text('Database'))
                    .append($(' | ').html(
                        ' | '
                        + '- Server
- ' + data.database.dbserver + ''
                        + '
- Version
- ' + data.database.dbversion + ''
                        + '
- Collation
- ' + data.database.dbcollation + ''
                        + '
- Conn Collation
- ' + data.database.dbconnectioncollation + ''
                        + '
'
                    ))
                this.$el.append(tr)
            })
        }
    })
})(PhpDebugBar.$)