{% extends "base.html" %}
{% load wagtailcore_tags wagtailimages_tags static tip_tags core_tags i18n %}
{% get_your_tip as your_tip %}
{% block title %}{% trans "Your Tips" %}{% endblock %}
{% block content %}
<div class="yourtips">
  <div class="breadcrumbs">
    <ul class="breadcrumbs-list">
      <li class="breadcrumbs-list__item">
        <a href="{{request.site.root_page.url}}" class="breadcrumbs-list__anchor">{% trans "Home" %}</a>
      </li>
      <li class="breadcrumbs-list__item">
        <span class="breadcrumbs-list-with-bg__anchor is-active">{% trans your_tip.title %}</span>
      </li>
    </ul>
  </div>
  <div class="yourtips">
    <ul class="yourtips-menu">
      {% if your_tip.get_number_of_tips %}
      <li class="yourtips-menu__item">
        <a href="{% url 'molo.yourtips:recent_tips' %}" class="call-to-action__nav-item">
          {% trans "Recent Tips" %}
        </a>
      </li>
      {% endif %}
      {% if your_tip.get_number_of_popular_tips %}
      <li class="yourtips-menu__item">
        <a href="{% url 'molo.yourtips:popular_tips' %}" class="call-to-action__nav-item">
          {% trans "Popular Tips" %}
        </a>
      </li>
      {% endif %}
      <li class="yourtips-menu__item">
        <a href="{% url 'molo.yourtips:tip_entry' 'your-tips-page' %}" class="call-to-action__nav-item">
          {% trans "Submit a Tip!" %}
        </a>
      </li>
    </ul>
  </div>
</div>
{% endblock %}
