{% extends "base.html" %}

{% block css -%}
<style type="text/css">
.submenu-box {
    padding: .5em 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.submenu-box .pure-menu-selected {
    font-weight: bold;
    color: #0078e7;
}

.submenu-box span {
    display: block;
    padding: .5em 1em;
    cursor: default;
}

@media (min-width: 768px) {
    .submenu-box {
        margin-right: 20px;
    }
}
</style>
{% endblock -%}

{% block content -%}
<div class="main">
    <div class="pure-g">
        <div class="pure-u-1 pure-u-md-1-5">
            <div class="pure-menu">
                <ul class="pure-menu-list submenu-box">
                    {% if advcurr=='delivernow' -%}
                    <li class="pure-menu-item pure-menu-selected">
                        <span>{{_("Deliver now")}}</span>
                    </li>
                    {% else -%}
                    <li class="pure-menu-item">
                        <a href="/advdelivernow" class="pure-menu-link">{{_("Deliver now")}}</a>
                    </li>
                    {% endif -%}
                    {% if advcurr=='whitelist' -%}
                    <li class="pure-menu-item pure-menu-selected">
                        <span>{{_("White List")}}</span>
                    </li>
                    {% else -%}
                    <li class="pure-menu-item">
                        <a href="/advwhitelist" class="pure-menu-link">{{_("White List")}}</a>
                    </li>
                    {% endif -%}
                    {% if advcurr=='archive' -%}
                    <li class="pure-menu-item pure-menu-selected">
                        <span>{{_("Archive")}}</span>
                    </li>
                    {% else -%}
                    <li class="pure-menu-item">
                        <a href="/advarchive" class="pure-menu-link">{{_("Archive")}}</a>
                    </li>
                    {% endif -%}
                    {% if advcurr=='urlfilter' -%}
                    <li class="pure-menu-item pure-menu-selected">
                        <span>{{_("Url Filter")}}</span>
                    </li>
                    {% else -%}
                    <li class="pure-menu-item">
                        <a href="/advurlfilter" class="pure-menu-link">{{_("Url Filter")}}</a>
                    </li>
                    {% endif -%}
                    {% if advcurr=='import' -%}
                    <li class="pure-menu-item pure-menu-selected">
                        <span>{{_("Import Feeds")}}</span>
                    </li>
                    {% else -%}
                    <li class="pure-menu-item">
                        <a href="/advimport" class="pure-menu-link">{{_("Import Feeds")}}</a>
                    </li>
                    {% endif -%}
                    {% if advcurr=='uploadcoverimage' -%}
                    <li class="pure-menu-item pure-menu-selected">
                        <span>{{_("Cover Image")}}</span>
                    </li>
                    {% else -%}
                    <li class="pure-menu-item">
                        <a href="/advuploadcoverimage" class="pure-menu-link">{{_("Cover Image")}}</a>
                    </li>
                    {% endif -%}
                    {% if advcurr=='uploadcss' -%}
                    <li class="pure-menu-item pure-menu-selected">
                        <span>{{_("Stylesheet")}}</span>
                    </li>
                    {% else -%}
                    <li class="pure-menu-item">
                        <a href="/advuploadcss" class="pure-menu-link">{{_("Stylesheet")}}</a>
                    </li>
                    {% endif -%}
                </ul>
            </div>
        </div>
        <div class="pure-u-1 pure-u-md-4-5">
            {% block advcontent -%}
            {% endblock -%}
        </div>
    </div>
</div>
{% endblock -%}