<%inherit file="/layout/message.html" />
<%def name="header()">
    <%
    # Unfortunately, this "header()" section seems to be initialized before the isLite block above.
    # So isLite must be defined within this block as well.
    from splunk.appserver.mrsparkle.lib import util
    isLite = util.isLite()
    %>
    % if not isLite:
        <h1>${_('App not found') | h}</h1>
    % else:
        <h1 class="errorHeader">${_('"%s" not found') % app | h}</h1>
    % endif
</%def>

<p class="primaryMessage">
    % if not isLite:
        ${_('The app "%s" is not available') % app | h}
    % else:
        ${_('"%s" is not available on this system.') % app | h}
    % endif
</p>

% if not isLite:
    <p>The app you requested is not available on this system. Check the spelling of the app, or choose another from the following list:</p>
    <table style="width:45em">
        % for a in apps:
            <tr>
                <td class="k"><a href="${make_url(['/app', a])}">${apps[a]['label'] | h}</a></td>
                <td>
                    % if apps[a].get('description'):
                        ${apps[a].get('description', '') | h}
                    % else:
                        ${_('(no description)') | h}
                    % endif
                </td>
            </tr>
        % endfor
    </table>
% endif
