Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/ncssl/source/templates/table-installed.html.twig

{% set cancelledStatuses = ['REVOKED', 'CANCELLED'] %}

<div class="certificates-table rounded border overflow-x-auto mb-2">
    <table class="table table-hover mb-0 rounded" id="{{ id }}">
        {% if certificates %}
            <thead>
                <tr>
                    <th>ID</th>
                    <th>SSL Name</th>
                    <th>Expires</th>
                    <th>NC user</th>
                    <th>Domain</th>
                    <th>Status</th>
                    <th>HTTPS Redirect</th>
                </tr>
            </thead>
            <tbody>
                {% for certificate in certificates %}
                    <tr>
                        <td data-indexed>{{ certificate.ncId }}</td>
                        <td data-indexed>{{ productManager.getNameByType(certificate.type) }}</td>
                        <td>
                            {% if certificate.expires != 0 %}
                                {{ certificate.expires|date("d M Y") }}
                            {% elseif certificate.years > 1 %}
                                {{ 'valid for ' ~ certificate.years ~ 'years' }}
                            {% else %}
                                {{ 'valid for ' ~ certificate.years ~ 'year' }}
                            {% endif %}
                        </td>
                        <td>
                            {% if certificate.ncUser is same as(app.user.ncLogin) %}
                                {{ app.user.ncLogin }}
                            {% else %}
                                <span class="text-danger"
                                      data-bs-toggle="tooltip"
                                      data-bs-placement="top"
                                      data-bs-custom-class="ncssl-tooltip"
                                      title="{{ 'Login as ' ~ certificate.ncUser ~ ' to renew or reissue' }}">{{ certificate.ncUser }}</span>
                            {% endif %}
                        </td>
                        <td data-indexed class="domain-cell">
                            {% if certificate.commonName %}
                                <a href="https://{{ certificate.link }}" target="_blank">{{ certificate.link }}</a>
                            {% else %}
                                <small class="text-muted">not activated yet</small>
                            {% endif %}
                        </td>
                        <td data-indexed>
                            {{ include('status-column.html.twig', {'certificate': certificate}) }}
                        </td>
                        <td>
                            {{ include('http-redirect-column.html.twig', {'certificate': certificate}) }}
                        </td>
                    </tr>
                {% endfor %}
                <tr class="empty-search" style="display: none;">
                    <td colspan="5" class="text-center">No new SSL certificate matches your search</td>
                </tr>
            </tbody>
        {% else %}
            <thead>
                <tr class="no-items">
                    <td colspan="7" class="text-center">
                        You don't have any SSLs to install. <br/>
                        Domain validation single domain SSL from your Namecheap account will show up here
                    </td>
                </tr>
            </thead>
        {% endif %}
    </table>
</div>
Back to Directory File Manager