{% comment %}
vim: list tabstop=4
{% endcomment %}
{% load yauth %}
{% load i18n %}
{% load staticfiles %}
{% get_current_language as LANGUAGE %}
<!DOCTYPE html>
<html>
<head>

  <title>{% block title %}{% trans "Bug Bounty" %}{% endblock title %}</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="{% static 'css/style.css' %}?2">

    <link rel="shortcut icon" type="image/x-icon" href="{% static 'favicon.ico' %}">

</head>
<body>
	<div class="page">
		<div class="wrapper">
			<div class="header">
				<div class="header__i">
                    {% if LANGUAGE == 'en' %}
                    <h1 class="logo_en"><a href="/"></a></h1>
                    {% else %}
                    <h1 class="logo_ru"><a href="/"></a></h1>
                    {% endif %}
                    <div class="arrow arrow_service">
						<div class="arrow arrow_white">
                            <a href="{% url 'main' %}" class="arrow__service">{% trans "Bug Bounty" %}</a>
							<div class="arrow__corner">
								<div class="arrow__triangle"></div>
							</div>
						</div>
						<div class="arrow__corner">
							<div class="arrow__triangle"></div>
						</div>
					</div>
					<div class="user user_header">
                        {% if yauser.is_authenticated %}
							<div class="user__pic"
                                style="background:url(//avatars.yandex.net/get-yapic/{{ yauser.uid }}/islands-middle) 50%; background-size:cover;"></div>
                            <div class="user__name"><span>{{ yauser.login }}</span></div>
                        <div class="user__pop">
                            <ul>
                                <li><a href="{% url 'reporter-by-name' username=yauser.login %}">{% trans "popup.profile" %}</a></li>
                                <li><a href="{{ passport_account_url }}">{% trans "popup.passport" %}</a></li>
                                <li><a href="{{ logout_url }}">{% trans "popup.logout" %}</a></li>
                            </ul>
                        </div>
			{% else %}
			    <a href="{{ login_url }}" class="button login">{% trans "Login"%}</a>
                        {% endif %}
					</div>
				</div>
			</div><!-- header -->

			<div class="section">
				<div class="section__i">
					<div class="section__g">
                        <div class="section__side">
                            <ul class="section__nav">
								<li class="{% block report__menu %}{% endblock %}">
                                    <a href="{% url 'report' %}">
                                        {# Translators: Menu. Bug report #}
                                        {% trans "menu.bug_report" %}
                                    </a>
                                </li>
                                {% if yauser.is_authenticated %}
                                <li class="{% block edit-profile__menu %}{% endblock %}">
                                    <a href="{% url 'edit-profile' %}">
                                        {# Translators: Menu. Profile #}
                                        {% trans "menu.edit_profile" %}
                                    </a>
                                </li>
                                <li class="{% block edit-payment-info__menu %}{% endblock %}">
                                    <a href="{% url 'payment-info' %}">
                                        {# Translators: Menu. Profile #}
                                        {% trans "menu.edit_payment_info" %}
                                    </a>
                                </li>
								{% endif %}
                                <li class="{% block hall_of_fame__menu %}{% endblock %}">
                                    <a href="{% url 'hof' %}">
                                        {# Translators: Menu and title. Hall of fame #}
                                        {% trans "menu.hof" %}
                                    </a>
                                </li>
                                {% for item_slug, item_title in menu_items %}
                                <li class="{% if item_slug == object.page.slug %}cur{% endif %}">
                                    <a href="{% url 'page' slug=item_slug %}">
                                        {{ item_title }}
                                    </a>
                                </li>
                                {% endfor %}
                                <li>
                                  <a href="{{ feedback_url }}">
                                        {# Translators: FAQ and support #}
                                        {% trans "menu.faq" %}
                                    </a>
                                </li>
							</ul>
						</div>
						<div class="section__content">
							<div class="section__content__i">
                            {% block content %}

                            {% endblock %}
							</div>
						</div>
					</div>
				</div>
			</div><!-- section -->
			<div class="wrapper__push"></div>
		</div><!-- wrapper -->

	</div>
		<div class="footer">
            <div class="footer__i">
                <ul class="footer__links">
                  <li><a href="https://yandex.ru/legal/yandex_bug_bounty_terms_conditions/">{% trans "footer.regulations" %}</a>
                </ul>
                <div class="lang">
                    <div class="lang__h">
                        {% if LANGUAGE == 'ru' %}
                            <a class="lang__i lang__i_ru" href="#">RU</a>
                        {% else %}
                            <a class="lang__i lang__i_en" href="#">EN</a>
                        {% endif %}
                    </div>
                    <ul class="lang__b">
                        <li>
                        <a class="lang__i lang__i_ru" href="{{ russian_page_url }}">RU</a>
                        </li>
                        <li>
                        <a class="lang__i lang__i_en" href="{{ english_page_url }}">EN</a>
                        </li>
                    </ul>
                </div>
                <p class="footer__copyright">
                        {# Translators: Footer. Yandex #}
                        © {% now "Y" %} {% trans "footer.c_yandex" %}
                </p>
                <p class="footer__title">
                        {# Translators: Footer. Yandex Bug Bounty #}
                        {% trans "footer.title" %}
                        <a href="{{ feedback_url }}" class="feedback_url">{% trans "footer.support" %}</a>
                </p>
			</div>
		</div><!-- footer -->

        <script src="{% static 'js/scripts.js' %}"></script>
        <!-- Yandex.Metrika counter -->
        <script type="text/javascript" {{ script_nonce }}>
                (function (d, w, c) {
                   (w[c] = w[c] || []).push(function() {
                    try {
                        w.yaCounter26841318 = new Ya.Metrika({
                        id:26841318,
                        ut:"noindex"
                        });
                    } catch(e) { }
                });
                var n = d.getElementsByTagName("script")[0],
                    s = d.createElement("script"),
                    f = function () { n.parentNode.insertBefore(s, n); };
                    s.type = "text/javascript";
                    s.async = true;
                    s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
                if (w.opera == "[object Opera]") {
                    d.addEventListener("DOMContentLoaded", f, false);
                } else { f(); }
                })(document, window, "yandex_metrika_callbacks");
         </script>
         <noscript><div><img src="//mc.yandex.ru/watch/26841318?ut=noindex" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
         <!-- /Yandex.Metrika counter -->
</body></html>
