Commit d5238e74721a04a8b9e117754f0d7fe8a8a2ae5e
1 parent
441282a0
Exists in
master
and in
2 other branches
Using HTTP_REFERER to go back when in slim header
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com> Signed-off-by: Carlos Coêlho <carlospecter@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/colab-spb-theme-plugin/colab_spb_theme/templates/header-slim.html
1 | - | |
2 | -{% load i18n gravatar plugins %} | |
1 | +{% load i18n gravatar plugins spb_extra %} | |
3 | 2 | {% load static from staticfiles %} |
4 | 3 | |
5 | 4 | {% block head_css %} |
... | ... | @@ -15,7 +14,7 @@ |
15 | 14 | <div id="header" role="banner"> |
16 | 15 | <div id="logo"> |
17 | 16 | <div id="back-to-software" class="pull-left"> |
18 | - <span onclick="window.location = '/social/{% get_software_community {{request.path}} %}'" id="back-arrow">←</span> | |
17 | + <span id="back-arrow"><a href="{{request.META.HTTP_REFERER}}">←</a></span> | |
19 | 18 | </div> |
20 | 19 | <div id="logo-holder" class="pull-left"> |
21 | 20 | <a id="portal-logo" title="" href="/"> | ... | ... |