title: How to hide a button and how to have a new tab redirection on it?
body: <p>I'm working as an intern for a company on GeoNode 2.8. I have to hide the <code>Download Layer</code> button if the user is not in the permission list. The previous intern made it in an older version of <code>Geonode</code> by adding a <code>{% get_obj_perms request.user for resource.layer as "perms" %}</code> before the button display function. But when I add it on my version of GeoNode, it didn't change anything and the button still there. </p>
  
  <pre><code>{% if resource.storeType != "remoteStore" %}
      {% get_obj_perms request.user for resource.layer as "layer_perms" %}
      &lt;li class="list-group-item"&gt;
      {% if links or links_download %}
         &lt;button class="btn btn-primary btn-md btn-block" data-toggle="modal" data-target="#download-layer"&gt;{% trans "Download Layer" %}&lt;/button&gt;
      {% else %}
        {% if request.user.is_authenticated %}
            &lt;button class="btn btn-primary btn-md btn-block" id="request-download"&gt;{% trans "Request Download" %}&lt;/button&gt;
        {% endif %}
      {% endif %}
      &lt;/li&gt;
  {% endif %}
  </code></pre>
  
  <p>Second part, I have a button in a navbar with a redirection like this 
  <code>&lt;li&gt;&lt;a href="{% url "help" %}"&gt;{% trans "Help" %}&lt;/a&gt;&lt;/li&gt;</code></p>
  
  <p>My issue is the next one, how can I have a redirection but in a new tab, I thought I could use <code>target = _blank</code> but it's django and it doesn't work.
  like this:
  <code>&lt;li&gt;&lt;a target= "_blank" href="{% url "help" %}"&gt;{% trans "Help" %}&lt;/a&gt;&lt;/li&gt;</code></p>
  
  <p>I think it's something to change in the <code>urls.py</code> but I'm new in it so I don't know how to add this redirection. </p>
  
  <pre><code>    url(r'^help/$',
          TemplateView.as_view(template_name='help.html'),
          name='help'),
  </code></pre>