Skip to content

Commit

Permalink
fixed breadcrumbs (bug 584181)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Basta committed Aug 4, 2010
1 parent 37104c0 commit a65c085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/reviews/templates/reviews/add.html
Expand Up @@ -7,9 +7,10 @@
{% block content %}

<header>
{% set review_link = url('reviews.list', addon.id) if addon.total_reviews else None %}
{{ breadcrumbs([(addon.type_url(), amo.ADDON_TYPES[addon.type]),
(addon.get_url_path(), addon.name),
(url('reviews.list', addon.id), _('Reviews')),
(review_link, _('Reviews')),
(None, _('Add'))]) }}
<h2>{{ title }}</h2>
</header>
Expand Down

1 comment on commit a65c085

@jbalogh
Copy link

@jbalogh jbalogh commented on a65c085 Aug 4, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love it.

Please sign in to comment.