Skip to content

Commit

Permalink
Issue webcompat#1193. Show home link for new issue endpoint, rather t…
Browse files Browse the repository at this point in the history
…han add-on prompts.

The logic being, if you're looking at this page, an add-on probably took you there.
  • Loading branch information
Mike Taylor authored and deepthivenkat committed Oct 19, 2016
1 parent 296ab6e commit 0b08123
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webcompat/templates/topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
<div class="wc-SearchBar-face wc-SearchBar-face--front">
<div class="wc-Navbar-container">
<div class="wc-Navbar-section">
{%- if request.url_rule.endpoint == 'create_issue' %}
<a class="wc-Navbar-link js-Navbar-link" href="/">
<span class="wc-Navbar-link-icon wc-Icon wc-Icon--home" aria-hidden="true"></span>
<span class="wc-Navbar-link-label">Home</span>
</a>
{%- else %}
{% include "addon-links.html" %}
{%- endif %}
</div>
<div class="wc-Navbar-section">
<button class="r-ResetButton wc-Navbar-link js-SearchBarOpen">
Expand Down

0 comments on commit 0b08123

Please sign in to comment.