{% extends "base.html" %}
{% set active_page = "profile" %}
{% set active_link = "applications" %}
{% import "account/_helpers.html" as helper %}
{% import "applications/_helpers.html" as app_helper %}

{% block content %}
<div class="row">
    <div class="col-md-3">
        {{ helper.render_account_local_nav(current_user, active_link) }}
    </div>
    <div class="col-md-9" style="min-height:400px">
        <h1><strong>{{ current_user.fullname }}'s</strong>: {{ _('Applications') }}</h1>
        {% if apps_published or apps_draft %}
            {% if apps_published %}
            <h2>{{ _('Published') }}</h2>
            {% for app in apps_published %}
            {{ app_helper.render_app_short_summary(app, current_user) }}
            {% endfor %}
            {% endif %}
            {% if apps_draft %}
            <h2>{{ _('Draft') }}</h2>
            {% for app in apps_draft %}
            {{ app_helper.render_app_short_summary(app, current_user) }}
            {% endfor %}
            {% endif %}
        {% else %}
            <h2>{{ _('You have not created an application') }}</h2>
            <a href="{{url_for('app.new')}}" class="btn btn-primary">{{ _('Create an Application') }}</a>
        {% endif %}
    </div>
</div>
{{ app_helper.broken_image() }}
{% endblock %}

{% extends "base.html" %}
{% set active_page = "profile" %}
{% set active_link = "applications" %}
{% import "account/_helpers.html" as helper %}
{% import "applications/_helpers.html" as app_helper %}

{% block content %}
<div class="row">
    <div class="col-md-3">
        {{ helper.render_account_local_nav(current_user, active_link) }}
    </div>
    <div class="col-md-9" style="min-height:400px">
        <h1><strong>{{ current_user.fullname }}'s</strong>: {{ _('Applications') }}</h1>
        {% if apps_published or apps_draft %}
            {% if apps_published %}
            <h2>{{ _('Published') }}</h2>
            {% for app in apps_published %}
            {{ app_helper.render_app_short_summary(app, current_user) }}
            {% endfor %}
            {% endif %}
            {% if apps_draft %}
            <h2>{{ _('Draft') }}</h2>
            {% for app in apps_draft %}
            {{ app_helper.render_app_short_summary(app, current_user) }}
            {% endfor %}
            {% endif %}
        {% else %}
            <h2>{{ _('You have not created an application') }}</h2>
            {% if current_user.admin == 1 %}
            <a href="{{url_for('app.new')}}" class="btn btn-primary">{{ _('Create an Application') }}</a>
            {% endif %}
        {% endif %}
    </div>
</div>
{{ app_helper.broken_image() }}
{% endblock %}

Hide create application from non-admin
Hide create application from non-admin