header.html 8.32 KB
Newer Older
Diego Salazar's avatar
Diego Salazar committed
1
{%assign counter=0%}  
D Sal's avatar
D Sal committed
2
3
4
5
6
<div class="mob-nav">
              <input class="burger-check" id="mobile-burger" type="checkbox"><label for="mobile-burger" class="burger"></label>
           
        <div class="slide-in-nav">
             <div class="container slide-in">
Diego Salazar's avatar
Diego Salazar committed
7
                    {% for item in site.data.lang[site.lang].navigation %} 
D Sal's avatar
D Sal committed
8
9
                 <div class="row">
                     <div class="col-xs-12 dropdown text-center nav-item">
Diego Salazar's avatar
Diego Salazar committed
10
11
12
13
                           {% if item.subfolderitems %}
                            {%assign counter=counter | plus: 1%}
                            <label for="drop{{counter}}">{{item.title}}<div class="arrow-down"></div></label>
                            <input class="burger-checkdropdown" id="drop{{counter}}" type="checkbox">
D Sal's avatar
D Sal committed
14
                            <div class="dropdown-content">
Diego Salazar's avatar
Diego Salazar committed
15
16
17
                                {% for entry in item.subfolderitems %}
                              <a href="{{site.baseurl}}/{{ entry.url }}">{{ entry.page }}</a>
                                  {% endfor %}
D Sal's avatar
D Sal committed
18
                            </div>
Diego Salazar's avatar
Diego Salazar committed
19
20
21
                            {% else %}
                               <a href="{{site.baseurl}}/{{item.url}}">{{item.title}}</a>
                            {% endif %}
D Sal's avatar
D Sal committed
22
23
                     </div>
                 </div>
Diego Salazar's avatar
Diego Salazar committed
24
                 {% endfor %}
D Sal's avatar
D Sal committed
25
26
27
                 <div class="row">
                     <div class="col-xs-12">
                         <div class="text-center nav-item mob">
Diego Salazar's avatar
Diego Salazar committed
28
                            <a href="https://ccs.getmonero.org">Community Crowdfunding</a> 
D Sal's avatar
D Sal committed
29
30
31
                         </div>
                     </div>
                 </div>
32
33
34
35
36
37
38
                 <div class="row">
                     <div class="col-xs-12">
                         <div class="text-center nav-item mob">
                            <a href="https://github.com/monero-project/meta/blob/master/VULNERABILITY_RESPONSE_PROCESS.md">Vulnerability Response</a>
                         </div>
                     </div>
                 </div>
D Sal's avatar
D Sal committed
39
40
41
                 <div class="row">
                     <div class="col-xs-12">
                         <div class="text-center nav-item mob">
Diego Salazar's avatar
Diego Salazar committed
42
                            <a href="{{site.baseurl}}/the-monero-project/">The Monero Project</a> 
D Sal's avatar
D Sal committed
43
44
45
46
47
48
49
                         </div>
                     </div>
                 </div>            
             </div>
          
        </div>
       </div>
Diego Salazar's avatar
Diego Salazar committed
50
       
D Sal's avatar
D Sal committed
51
52
53
54
55
        <div class="desktop-nav">
            <nav class="container">
            <div class="topnav">
              <div class="row middle-xs">
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
Diego Salazar's avatar
Diego Salazar committed
56
57
58
59
60
61
62
63
64
                    <a href="{% if site.lang == 'en' %}
                    
                    {{ site.baseurl_root }}/
                    
                    {% else %}
                    
                    {{ site.baseurl_root }}/{{site.lang}}
                    
                    {% endif %}"><img src="/img/monero-logo.png" alt="Monero Logo" class="monero-logo"></a>
D Sal's avatar
D Sal committed
65
66
                  </div>
                  <div class="col-lg-8 col-md-8 col-sm-8 topnav-list end-xs">
Diego Salazar's avatar
Diego Salazar committed
67
                      <div class="row end-xs middle-xs">
D Sal's avatar
D Sal committed
68
                         <div class="col-md-12">
Diego Salazar's avatar
Diego Salazar committed
69
                          <a href="https://ccs.getmonero.org" class="top-link">Community Crowdfunding</a>
Diego Salazar's avatar
Diego Salazar committed
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
                          <a href="https://github.com/monero-project/meta/blob/master/VULNERABILITY_RESPONSE_PROCESS.md" class="top-link">Vulnerability Response</a>
                          <a href="{{site.baseurl}}/the-monero-project/" class="top-link">The Monero Project</a>
                          <div href="#" class="dropdown top-link language-change">
                            <input class="burger-checkdropdown" id="langdrop" type="checkbox">
                            <label for="langdrop">{% for lang in site.languages %}
                            
                                {% if lang == site.lang %}
                            
                                    {% t langs.{{ lang }} %}
                            
                                {%endif%}
                            
                            {%endfor%}<div class="arrow-down"></div></label>
                            <div class="dropdown-content text-center">
                                    {% for lang in site.languages %}
                                {% unless site.lang == lang %}
                                  {% if lang == site.default_lang %}
                                    <a href="{{ site.baseurl_root }}{{ page.url }}" >{% t langs.{{ lang }} %}</a>
                                  {% else %}
                                    <a href="{{ site.baseurl_root }}/{{ lang }}{{ page.url }}" >{% t langs.{{ lang }} %}</a>
                                  {% endif %}
                                {% endunless %}
                              {% endfor %}
                            </div>
                          </div>
D Sal's avatar
D Sal committed
95
96
97
98
99
100
101
102
                          </div>
                      </div>
                  </div>
              </div>
            </div>
            <div class="botnav white-nav">
                <input class="burger-check" id="burger-check" type="checkbox"><label for="burger-check" class="burger"></label>
                <div class="row between-xs nav-items">
Diego Salazar's avatar
Diego Salazar committed
103
                     {% for item in site.data.lang[site.lang].navigation %}
D Sal's avatar
D Sal committed
104
                    <div class="col dropdown nav-item">
Diego Salazar's avatar
Diego Salazar committed
105
106
107
108
109
110
111
112
113
114
115
                        {% if item.subfolderitems %}
                            <label for="desktopdrop1">{{item.title}}<div class="arrow-down"></div></label>
                            <input class="burger-checkdropdown" id="desktopdrop1" type="checkbox">
                            <div class="dropdown-content">
                                {% for entry in item.subfolderitems %}
                                  <a href="{{site.baseurl}}/{{ entry.url }}">{{ entry.page }}</a>
                                {% endfor %}
                            </div>
                            {% else %}
                           <a href="{{site.baseurl}}/{{item.url}}">{{item.title}}</a>
                            {% endif %}
D Sal's avatar
D Sal committed
116
                    </div>
Diego Salazar's avatar
Diego Salazar committed
117
                    {% endfor %}
D Sal's avatar
D Sal committed
118
119
120
121
122
                  </div>
            </div>
        </nav>
        </div>
        <div class="mob bot-nav white-nav">
Diego Salazar's avatar
Diego Salazar committed
123
            <div class="row center-xs middle-xs">
D Sal's avatar
D Sal committed
124
                <div class="col-xs-6">
Diego Salazar's avatar
Diego Salazar committed
125
126
127
128
129
130
131
132
133
                    <a href="{% if site.lang == 'en' %}
                    
                    {{ site.baseurl_root }}/
                    
                    {% else %}
                    
                    {{ site.baseurl_root }}/{{site.lang}}
                    
                    {% endif %}"><img src="/img/monero-logo.png" alt="Monero Logo" class="monero-logo"></a>
D Sal's avatar
D Sal committed
134
                </div>
Diego Salazar's avatar
Diego Salazar committed
135
136
                <div class="dropdown col-xs-6 text-center mob-language-change">
                <input class="burger-checkdropdown" id="moblangdrop" type="checkbox">
Diego Salazar's avatar
Diego Salazar committed
137
                 <label for="moblangdrop"><img src="/img/language.png" alt="Lang" class="icon-language"/><div class="arrow-down"></div></label>
Diego Salazar's avatar
Diego Salazar committed
138
                               <div class="mob dropdown-content text-center">
Diego Salazar's avatar
Diego Salazar committed
139
140
141
142
143
144
145
146
147
                               <p class="mob-lang-change mob-lang-selected">
                                   
                              {% for lang in site.languages %}
                                {% if site.lang == lang %}
                                 {% t langs.{{ lang }} %}
                                {% endif %}
                              {% endfor %}
                                   
                               </p>
Diego Salazar's avatar
Diego Salazar committed
148
149
150
151
152
153
154
155
156
157
158
                               {% for lang in site.languages %}
                                {% unless site.lang == lang %}
                                  {% if lang == site.default_lang %}
                                    <a class="mob-lang-change" href="{{ site.baseurl_root }}{{ page.url }}" >{% t langs.{{ lang }} %}</a>
                                  {% else %}
                                    <a class="mob-lang-change" href="{{ site.baseurl_root }}/{{ lang }}{{ page.url }}" >{% t langs.{{ lang }} %}</a>
                                  {% endif %}
                                {% endunless %}
                              {% endfor %}
                            </div>
                          </div>
D Sal's avatar
D Sal committed
159
            </div>     
160
        </div>