Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
souper
Browse files Browse the repository at this point in the history
  • Loading branch information
spasovski committed Nov 7, 2013
1 parent 00fb95d commit 43d9f4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/templates/app_dashboard.html
@@ -1,7 +1,8 @@
<section class="main">
{% defer (url=api('app', [slug]), as='app', key=slug, id='app-data') %}
{% set is_superuser = (this.user.developed or user.get_permission('admin')) %}
{% if user.logged_in() %}
{% if this.user.developed or user.get_permission('reviewer') or this.public_stats %}
{% if is_superuser or this.public_stats %}
<h1>{{ _('Statistics Dashboard') }}: {{ this.name|translate(this) }}</h1>
<h2>{{ _('Charts currently available') }}</h2>
<ul>
Expand All @@ -11,7 +12,7 @@ <h2>{{ _('Charts currently available') }}</h2>
<li>
<a href="{{ url('per_app_visits', [slug]) }}">{{ _('Visits') }}</a>
</li>
{% if not this.premium_type == 'free' and this.user.developed %}
{% if not this.premium_type == 'free' and is_superuser %}
<li>
<a href="{{ url('per_app_revenue', [slug]) }}">{{ _('Gross Revenue') }}</a>
</li>
Expand Down

0 comments on commit 43d9f4a

Please sign in to comment.