Coverage for templates/navbar.html: 100%

58 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-26 00:11 +0000

1{% load i18n %} 

2{% block topbar_base %} 

3 <nav class="navbar navbarlibravatar"> 

4 <div class="container-fluid"> 

5 <div class="navbar-header"> 

6 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> 

7 &#9776 

8 </button> 

9 {% block topbar %} 

10 {% block site_brand %} 

11 {% if user.is_anonymous %} 

12 <a class="navbar-brand" href="/"> 

13 {% else %} 

14 <a class="navbar-brand" href="{% url 'profile' %}"> 

15 {% endif %} 

16 {{ site_name }}</a> 

17 {% endblock %} 

18 {% endblock %} 

19 </div> 

20 {% block nav %} 

21 <div class="collapse navbar-collapse" id="navbar"> 

22 <ul class="nav navbar-nav"> 

23 <li> 

24 <a href="/"><i class="fa fa-home" aria-hidden="true"></i> 

25 {% trans 'Home' %} 

26 </a> 

27 </li> 

28 <li> 

29 <a class="nav-link" href="{% url 'contact' %}"><i class="fa fa-envelope" aria-hidden="true"></i> 

30 {% trans 'Contact' %} 

31 </a> 

32 </li> 

33 <li> 

34 <a href="{% url 'security' %}"><i class="fa fa-user-secret" aria-hidden="true"></i> 

35 {% trans 'Security' %} 

36 </a> 

37 </li> 

38 <li class="dropdown" id="tab_tools"> 

39 <a class="dropdown-toggle" href="#" id="tools_dropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="{% trans 'Tools' %}"> 

40 <i class="fa fa-wrench" aria-hidden="true"></i> 

41 {% trans 'Tools' %} 

42 </a> 

43 <ul class="dropdown-menu" aria-labelledby="tools_dropdown"> 

44 <li><a id="tools-check" href="{% url 'tools_check' %}"> 

45 <i class="fa fa-fw fa-check-square" aria-hidden="true"></i> {% trans 'Check ID' %} 

46 </a></li> 

47 <li><a id="tools-check-domain" href="{% url 'tools_check_domain' %}"> 

48 <i class="fa fa-fw fa-check-square" aria-hidden="true"></i> {% trans 'Check Domain' %} 

49 </a></li> 

50  

51 </ul> 

52 </li> 

53 </ul> 

54 {% block account_bar %}{% include "_account_bar.html" %}{% endblock %} 

55 </div> 

56 {% endblock %} 

57 </div> 

58 </nav> 

59{% endblock %}