master.html 733 B

123456789101112131415161718192021222324
  1. {% extends '__pagure__/master.html' %}
  2. {# This template overrides Pagure's master.html by adding a "Federation" button
  3. # to the navigation bar.
  4. # __pagure__ is a symlink to the Pagure templates folder. The link is created
  5. # during plugin initialization. It exists because we cannot use
  6. # {% extends 'master.html' %}, we need to use a different name for the parent
  7. # file otherwise we enter an infinite recursion.
  8. #}
  9. # Add items to the menu bar
  10. {% block masthead_navbar_items %}
  11. # Only if logged in
  12. {% if g.fas_user %}
  13. <li class="nav-item ml-3">
  14. <a class="nav-link font-weight-bold" href="/federation">
  15. Federation
  16. </a>
  17. </li>
  18. {% endif %}
  19. {% endblock %}