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

Commit

Permalink
Merge pull request #666 from wraithan/lookup_link
Browse files Browse the repository at this point in the history
Add review history to lookup details (bug 782604)
  • Loading branch information
wraithan committed Mar 21, 2013
2 parents 7f8cf7d + 0495610 commit 1ace285
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mkt/lookup/helpers.py
Expand Up @@ -29,5 +29,6 @@ def user_header(account, title, is_admin=False, page_type=''):
def app_header(context, app, page_type=''):
t = env.get_template('lookup/helpers/app_header.html')
is_admin = acl.action_allowed(context['request'], 'Users', 'Edit')
is_reviewer = acl.check_reviewer(context['request'])
return jinja2.Markup(t.render(app=app, page_type=page_type,
is_admin=is_admin))
is_admin=is_admin, is_reviewer=is_reviewer))
7 changes: 7 additions & 0 deletions mkt/lookup/templates/lookup/helpers/app_header.html
Expand Up @@ -39,6 +39,13 @@ <h1>
</a>
</li>
{% endif %}
{% if is_reviewer %}
<li>
<a href="{{ url('reviewers.apps.review', app.app_slug) }}">
{{ _('Review History') }}
</a>
</li>
{% endif %}
</ul>
</nav>
</section>

0 comments on commit 1ace285

Please sign in to comment.