<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:i="http://typo3.org/ns/TYPO3/CMS/Install/ViewHelpers" data-namespace-typo3-fluid="true">

<table class="table table-striped table-bordered">
    <tr>
        <td>Operating system:</td>
        <td><strong>{systemInformationOperatingSystem}</strong></td>
    </tr>
    <tr>
        <td>PHP version:</td>
        <td class="text-wrap-allowed">
            <strong>{phpVersion}</strong>
        </td>
    </tr>
    <tr>
        <td>PHP CGI detected:</td>
        <td><strong>{f:if(condition:systemInformationCgiDetected, then:'Yes', else:'No')}</strong></td>
    </tr>
    <f:if condition="{systemInformationDatabaseConnections -> f:count()} > 1">
        <tr>
            <td>Number of database connections:</td>
            <td><strong>{systemInformationDatabaseConnections -> f:count()}</strong></td>
        </tr>
    </f:if>
    <f:for each="{systemInformationDatabaseConnections}" as="connection">
        <tr>
            <td>Database connection <strong>'{connection.connectionName}'</strong></td>
            <td>
                <ul>
                    <li><strong>Database name:</strong> {connection.databaseName}</li>
                    <li><strong>Username:</strong> {connection.username}</li>
                    <li><strong>Host:</strong> {connection.host}</li>
                    <f:if condition="{connection.port}">
                        <f:then>
                            <li><strong>Port:</strong> {connection.port}</li>
                        </f:then>
                        <f:else>
                            <li>
                                <strong>Socket:</strong>
                                {f:if(condition:connection.socket, then: '{connection.socket}', else:'<em>PHP default</em>')}
                            </li>
                        </f:else>
                    </f:if>
                    <li class="text-wrap-allowed">
                        <strong>Version:</strong> {connection.version}
                    </li>
                    <li><strong>Tables:</strong> {connection.numberOfTables}</li>
                    <f:if condition="{connection.numberOfMappedTables}">
                        <f:then>
                            <li><strong>Mapped tables:</strong> {connection.numberOfMappedTables}</li>
                        </f:then>
                    </f:if>
                </ul>
            </td>
        </tr>
    </f:for>
    <tr>
        <td>Application Context:</td>
        <td><strong class="text-{systemInformationApplicationContext.status}">{systemInformationApplicationContext.context}</strong></td>
    </tr>
</table>

</html>
