Permalink
Browse files

do not show empty More Info block for pending apps

  • Loading branch information...
1 parent 226ff70 commit 0160888de7f452fb840a6d1f284bc799760a0c69 @cvan cvan committed May 17, 2012
Showing with 24 additions and 22 deletions.
  1. +24 −22 mkt/detail/templates/detail/app.html
@@ -205,29 +205,31 @@ <h2 class="authors">{{ users_list(product.listed_authors, size=3) }}</h2>
</p>
</li>
{% endif %}
- <li class="more-info">
- <h3>{{ _('More Info') }}</h3>
- {% if product.privacy_policy and (product.is_public() or is_reviewer) %}
- <p class="privacy">
- <a href="{{ product.get_detail_url('privacy') }}">
- {{ _('Privacy Policy') }}
- </a>
- </p>
- {% endif %}
- {% if waffle.switch('app-stats') and product.public_stats %}
- <p class="view-stats">
- <a href="{{ url('mkt.stats.overview', product.app_slug) }}">
- {{ _('Statistics') }}
- </a>
+ {% if product.is_public() or is_reviewer %}
+ <li class="more-info">
+ <h3>{{ _('More Info') }}</h3>
+ {% if product.privacy_policy %}
+ <p class="privacy">
+ <a href="{{ product.get_detail_url('privacy') }}">
+ {{ _('Privacy Policy') }}
+ </a>
+ </p>
+ {% endif %}
+ {% if waffle.switch('app-stats') and product.public_stats %}
+ <p class="view-stats">
+ <a href="{{ url('mkt.stats.overview', product.app_slug) }}">
+ {{ _('Statistics') }}
+ </a>
+ </p>
+ {% endif %}
+ </li>
+ <li class="published">
+ <h3>{{ _('Published') }}</h3>
+ <p>
+ {{ product.created|timelabel }}
</p>
- {% endif %}
- </li>
- <li class="published">
- <h3>{{ _('Published') }}</h3>
- <p>
- {{ product.created|timelabel }}
- </p>
- </li>
+ </li>
+ {% endif %}
</ul>
</section>

0 comments on commit 0160888

Please sign in to comment.