Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
98 lines (94 sloc) 5.04 KB
{# Profile menu items #}
<ul class="nav flex-column" data-intro="Profile" data-position="right">
{% if urls.user and urls.user.profile %}
<li {% if request.path == urls.user.profile %} class="nav-item active"{% endif %}>
<a id="profile" class="nav-link" href="{{urls.user.profile}}">
<i class="fa fa-user"></i> <span>&#09;{% trans %}Profile{% endtrans %}</span>
</a>
</li>
{% elif urls.organization and urls.organization.profile %}
<li {% if urls.organization.profile == request.path %} class="nav-item active"{% endif %}>
<a id="profile" class="nav-link" href="{{urls.organization.profile}}">
<i class="fa fa-user"></i><span>{% trans %}Profile{% endtrans %}</span></a>
</li>
{% endif %}
{% if urls.organization and urls.organization.roles %}
{% for role_title, role_url in urls.organization.roles|iteritems %}
<li{% if role_url == request.path %} class="nav-item active"{% endif %}>
<a class="nav-link" href="{{role_url}}">
<i class="fa fa-users"></i><span class="">{{role_title|pluralize}}</span>
</a>
</li>
{% endfor %}
{% endif %}
{% if urls.user and urls.user.accessibles %}
<li class="nav-item">
<a id="users_accessibles" class="nav-link" href="{{urls.user.accessibles}}">
<i class="fa fa-users"></i> <span>&#09;{% trans %}Connected profiles{% endtrans %}</span></a>
</li>
{% endif %}
{% if urls.user and urls.user.notifications %}
<li {% if request.path == urls.user.notifications %} class="nav-item active"{% endif %}>
<a id="users_notifications" class="nav-link" href="{{urls.user.notifications}}">
<i class="fa fa-envelope"></i> <span>&#09;{% trans %}Notifications{% endtrans %}</span>
</a>
</li>
{% endif %}
{# Subscriber menu items #}
{% if urls.organization and urls.organization.billing %}
<li {% if urls.organization.billing == request.path %} class="nav-item active"{% endif %}>
<a id="saas_billing_info" class="nav-link" href="{{urls.organization.billing}}"><i class="fa fa-credit-card"></i><span>{% trans %}Billing{% endtrans %}</span></a>
</li>
{% endif %}
{% if urls.organization and urls.organization.subscriptions %}
<li {% if urls.organization.subscriptions == request.path %} class="nav-item active"{% endif %}>
<a id="saas_subscription_list" class="nav-link" href="{{urls.organization.subscriptions}}"><i class="fa fa-exchange"></i><span>{% trans %}Subscriptions{% endtrans %}</span></a>
</li>
{% endif %}
</ul>
{# Provider menu items #}
{% if urls.provider %}
<hr />
<ul class="nav flex-column"
data-intro="{% trans %}Pricing, billing and metrics{% endtrans %}" data-position="right">
<li {% if urls.provider.dashboard == request.path %} class="nav-item active"{% endif %}>
<a class="nav-link" id="saas_dashboard" href="{{urls.provider.dashboard}}"><i class="fa fa-wrench"></i><span class="">{% trans %}Dashboard{% endtrans %}</span></a>
</li>
<li {% if urls.provider.coupons == request.path %} class="nav-item active"{% endif %}>
<a class="nav-link" id="saas_coupon_list" href="{{urls.provider.coupons}}"><i class="fa fa-ticket"></i><span class="">{% trans %}Coupons{% endtrans %}</span></a>
</li>
<li {% if urls.provider.transfers == request.path %} class="nav-item active"{% endif %}>
<a class="nav-link" id="saas_transfer_info" href="{{urls.provider.transfers}}"><i class="fa fa-usd"></i><span class="">{% trans %}Funds{% endtrans %}</span></a>
</li>
<li {% if urls.provider.metrics_sales == request.path %} class="nav-item active"{% endif %}>
<a class="nav-link" id="saas_metrics_summary" href="{{urls.provider.metrics_sales}}"><i class="fa fa-bar-chart-o"></i><span class="">{% trans %}Revenue{% endtrans %}</span></a>
</li>
<li {% if urls.provider.metrics_plans == request.path %} class="nav-item active"{% endif %}>
<a class="nav-link" id="saas_metrics_plans" href="{{urls.provider.metrics_plans}}"><i class="fa fa-bar-chart-o"></i><span class="">{% trans %}Plans{% endtrans %}</span></a>
</li>
<li {% if urls.provider.subscribers == request.path %} class="nav-item active"{% endif %}>
<a class="nav-link" id="saas_subscriber_list" href="{{urls.provider.subscribers}}"><i class="fa fa-users"></i><span class="">{% trans %}Subscribers{% endtrans %}</span></a>
</li>
</ul>
{% endif %}
{# Broker menu items #}
{% if urls.pages or urls.rules %}
<hr />
<ul class="nav flex-column"
data-intro="{% trans %}Roles and permissions{% endtrans %}" data-position="right">
{% if urls.pages.theme_base %}
<li {% if urls.pages.theme_base == request.path %} class="nav-item active"{% endif %}>
<a id="pages_theme" class="nav-link" href="{{urls.pages.theme_base}}">
<i class="fa fa-wrench"></i><span class="">{% trans %}Theme{% endtrans %}</span>
</a>
</li>
{% endif %}
{% if urls.rules and urls.rules.app %}
<li {% if urls.rules.app == request.path %} class="nav-item active"{% endif %}>
<a id="rules_update" class="nav-link" href="{{urls.rules.app}}">
<i class="fa fa-wrench"></i><span class="">{% trans %}Rules{% endtrans %}</span>
</a>
</li>
{% endif %}
</ul>
{% endif %}
You can’t perform that action at this time.