|
15 | 15 | <a href="{{ url_for('index') }}"> |
16 | 16 | <img class="logo" src="/static/img/ha.png" width="320" height="160" alt="HTTP Archive"/> |
17 | 17 | </a> |
18 | | - {% set params = "?geo=ALL&rank=ALL" %} |
19 | | - {% if tech_report_page.params %} |
20 | | - {% set filterObj = tech_report_page.params %} |
21 | | - {% set params = "?geo=" + filterObj.geo + "&rank=" + filterObj.rank %} |
22 | | - {% endif %} |
23 | | - <ul class="navigation-items"> |
24 | | - <li class="all-reports"><a href="/reports/"><span>All reports</span></a></li> |
25 | | - <li> |
26 | | - {% set ariaCurrent = "false" %} |
27 | | - {% if active_page == "landing" %}{% set ariaCurrent = "page" %}{% endif %} |
28 | | - <a |
29 | | - href="/reports/techreport/landing" |
30 | | - aria-current="{{ ariaCurrent }}" |
31 | | - > |
32 | | - <span>Home</span> |
33 | | - </a> |
34 | | - </li> |
35 | | - <li> |
36 | | - {% set ariaCurrent = "false" %} |
37 | | - {% if active_page == "technology" or requested_page == "technology" %}{% set ariaCurrent = "page" %}{% endif %} |
38 | | - <a |
39 | | - href="/reports/techreport/tech{{ params }}&tech=ALL" |
40 | | - aria-current="{{ ariaCurrent }}" |
41 | | - > |
42 | | - <span>Technologies</span> |
43 | | - </a> |
44 | | - </li> |
45 | | - <li> |
46 | | - {% set ariaCurrent = "false" %} |
47 | | - {% if active_page == "category" %}{% set ariaCurrent = "page" %}{% endif %} |
48 | | - <a |
49 | | - href="/reports/techreport/category{{ params }}&category=CMS" |
50 | | - aria-current="{{ ariaCurrent }}" |
51 | | - > |
52 | | - <span>Categories</span> |
53 | | - </a> |
54 | | - </li> |
55 | | - </ul> |
| 18 | + <div class="hidden-xs"> |
| 19 | + {% set params = "?geo=ALL&rank=ALL" %} |
| 20 | + {% if tech_report_page.params %} |
| 21 | + {% set filterObj = tech_report_page.params %} |
| 22 | + {% set params = "?geo=" + filterObj.geo + "&rank=" + filterObj.rank %} |
| 23 | + {% endif %} |
| 24 | + <ul id="desktop" class="navigation-items"> |
| 25 | + <li class="all-reports"><a href="/reports/"><span>All reports</span></a></li> |
| 26 | + <li> |
| 27 | + {% set ariaCurrent = "false" %} |
| 28 | + {% if active_page == "landing" %}{% set ariaCurrent = "page" %}{% endif %} |
| 29 | + <a |
| 30 | + href="/reports/techreport/landing" |
| 31 | + aria-current="{{ ariaCurrent }}" |
| 32 | + > |
| 33 | + <span>Home</span> |
| 34 | + </a> |
| 35 | + </li> |
| 36 | + <li> |
| 37 | + {% set ariaCurrent = "false" %} |
| 38 | + {% if active_page == "technology" or requested_page == "technology" %}{% set ariaCurrent = "page" %}{% endif %} |
| 39 | + <a |
| 40 | + href="/reports/techreport/tech{{ params }}&tech=ALL" |
| 41 | + aria-current="{{ ariaCurrent }}" |
| 42 | + > |
| 43 | + <span>Technologies</span> |
| 44 | + </a> |
| 45 | + </li> |
| 46 | + <li> |
| 47 | + {% set ariaCurrent = "false" %} |
| 48 | + {% if active_page == "category" %}{% set ariaCurrent = "page" %}{% endif %} |
| 49 | + <a |
| 50 | + href="/reports/techreport/category{{ params }}&category=CMS" |
| 51 | + aria-current="{{ ariaCurrent }}" |
| 52 | + > |
| 53 | + <span>Categories</span> |
| 54 | + </a> |
| 55 | + </li> |
| 56 | + </ul> |
| 57 | + </div> |
| 58 | + <div class="visible-xs"> |
| 59 | + <button class="hamburger"> |
| 60 | + <span class="sr-only">Menu</span> |
| 61 | + <svg aria-hidden="true" version="1.1" viewBox="0 0 32 32" height="32px" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 62 | + <path d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2 s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2 S29.104,22,28,22z"/> |
| 63 | + </svg> |
| 64 | + </button> |
| 65 | + </div> |
56 | 66 | </nav> |
| 67 | + <nav id="mobile" class="hidden-sm hidden-md hidden-lg" aria-label="Mobile Menu"></nav> |
57 | 68 | {% endblock %} |
58 | 69 |
|
59 | 70 | {% block main %} |
|
0 commit comments