<commit_before>{% extends 'event/index.html' %}
{% load static %}

{% block content %}

<div class="app-body light" id="view">

<!-- ############ PAGE START-->
<div class="pos-rlt">
  <div class="page-bg" data-stellar-ratio="2" style="background-image:url('{% if artist.image_url %}{{ artist.image_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></div>
</div>
<div class="page-content">
  <div class="padding b-b">
    <div class="row-col">
        <div class="col-sm w w-auto-xs m-b">
          <div class="item w rounded">
            <div class="item-media">
              <div class="item-media-content" style="background-image: url('{% if artist.thumb_url %}{{ artist.thumb_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></div>
            </div>
          </div>
        </div>
        <div class="col-sm">
          <div class="p-l-md no-padding-xs">
            <div class="page-title">
              <h1 class="inline">{{ artist.name }}</h1>
              <label class="fa fa-star text-primary text-lg m-b v-m m-l-xs" title="Pro"></label>
            </div>
            <div class="item-action m-b">
              <a class="btn btn-icon white rounded btn-share pull-right" data-toggle="modal" data-target="#share-modal"><i class="fa fa-share-alt"></i></a>
              <span>
                {% if artist.events.count %}
                  {{ artist.events.count }}
                  {% if artist.events.count == 1 %}
                    event
                  {% else %}
                    events
                  {% endif %}
                {% else %}
                  No upcoming events
                {% endif %}
              </span>
            </div>
          </div>
        </div>
    </div>
  </div>
  <div class="row-col">
    <div class="col-lg-9 b-r no-border-md">
      <div class="padding">
        <div class="nav-active-border b-primary bottom m-b-md">
          <ul class="nav l-h-2x">
            <li class="nav-item m-r inline">
              <a class="nav-link active" href="#" data-toggle="tab" data-target="#tab_1">Overview</a>
            </li>
            <li class="nav-item m-r inline">
              <a class="nav-link" href="#" data-toggle="tab" data-target="#tab_2">Upcoming</a>
            </li>
            <li class="nav-item m-r inline">
              <a class="nav-link" href="#" data-toggle="tab" data-target="#tab_3">All</a>
            </li>
            <li class="nav-item m-r inline">
              <a class="nav-link" href="#" data-toggle="tab" data-target="#tab_4">Profile</a>
            </li>
          </ul>
        </div>
        <div class="tab-content">
          <div class="tab-pane active" id="tab_1">
            <h5 class="m-b">Upcoming events</h5>
            {% if upcoming_events %}
              <div class="row item-list item-list-md item-list-li m-b" id="events">
                {% for upcoming_event in upcoming_events|slice:":4" %}
                  <div class="col-md-12 col-lg-6">
                    <div class="item r" data-id="item-2" data-src="">
                      <div class="item-media ">
                        <a href="event.detail.html" class="item-media-content" style="background-image: url('{% if artist.thumb_url %}{{ artist.thumb_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></a>
                      </div>
                      <div class="item-info">
                        <div class="item-overlay bottom text-right">
                          <a href="#" class="btn-favorite"><i class="fa fa-star-o"></i></a>
                          <a href="#" class="btn-more" data-toggle="dropdown"><i class="fa fa-ellipsis-h"></i></a>
                          <div class="dropdown-menu pull-right black lt"></div>
                        </div>
                        <h6>{{ upcoming_event.datetime|date:"l, d M Y – g:i A" }}</h6>
                        <div class="item-title text-ellipsis">
                          <a href="event.detail.html">{{ upcoming_event.title }} @ {{ upcoming_event.venue.name }}, {{ upcoming_event.venue.city }}, {{ upcoming_event.venue.country }}</a>
                        </div>
                        <div class="item-author text-sm text-ellipsis hide">
                          <a href="artist.detail.html" class="text-muted">{{ artist.name }}</a>
                        </div>
                        <div class="item-meta text-sm text-muted">
                          <span class="item-meta-stats text-xs  item-meta-right">
                            <i class="fa fa-star m-l-sm text-muted"></i> 10
                          </span>
                        </div>
                      </div>
                    </div>
                  </div>
                {% endfor %}
              </div>
          {% else %}
              No upcoming events
          {% endif %}
          <h5 class="m-b">Past events</h5>
          {% if past_events %}
            <div class="row item-list item-list-md item-list-li m-b" id="events">
              {% for past_event in past_events|slice:":4" %}
                <div class="col-md-12 col-lg-6">
                  <div class="item r" data-id="item-2" data-src="">
                    <div class="item-media ">
                      <a href="event.detail.html" class="item-media-content" style="background-image: url('{% if artist.thumb_url %}{{ artist.thumb_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></a>
                    </div>
                    <div class="item-info">
                      <div class="item-overlay bottom text-right">
                        <a href="#" class="btn-favorite"><i class="fa fa-star-o"></i></a>
                        <a href="#" class="btn-more" data-toggle="dropdown"><i class="fa fa-ellipsis-h"></i></a>
                        <div class="dropdown-menu pull-right black lt"></div>
                      </div>
                      <h6>{{ past_event.datetime|date:"l, d M Y – g:i A" }}</h6>
                      <div class="item-title text-ellipsis">
                        <a href="event.detail.html">{{ past_event.title }} @ {{ past_event.venue.name }}, {{ past_event.venue.city }}, {{ past_event.venue.country }}</a>
                      </div>
                      <div class="item-author text-sm text-ellipsis hide">
                        <a href="artist.detail.html" class="text-muted">{{ artist.name }}</a>
                      </div>
                      <div class="item-meta text-sm text-muted">
                        <span class="item-meta-stats text-xs  item-meta-right">
                          <i class="fa fa-star m-l-sm text-muted"></i> 10
                        </span>
                      </div>
                    </div>
                  </div>
                </div>
              {% endfor %}
            </div>
          {% else %}
            No past events
          {% endif %}
        </div>
</div>
{% endblock content %}<commit_msg>Fix display no events text<commit_after>{% extends 'event/index.html' %}
{% load static %}

{% block content %}

<div class="app-body light" id="view">

<!-- ############ PAGE START-->
<div class="pos-rlt">
  <div class="page-bg" data-stellar-ratio="2" style="background-image:url('{% if artist.image_url %}{{ artist.image_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></div>
</div>
<div class="page-content">
  <div class="padding b-b">
    <div class="row-col">
        <div class="col-sm w w-auto-xs m-b">
          <div class="item w rounded">
            <div class="item-media">
              <div class="item-media-content" style="background-image: url('{% if artist.thumb_url %}{{ artist.thumb_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></div>
            </div>
          </div>
        </div>
        <div class="col-sm">
          <div class="p-l-md no-padding-xs">
            <div class="page-title">
              <h1 class="inline">{{ artist.name }}</h1>
              <label class="fa fa-star text-primary text-lg m-b v-m m-l-xs" title="Pro"></label>
            </div>
            <div class="item-action m-b">
              <a class="btn btn-icon white rounded btn-share pull-right" data-toggle="modal" data-target="#share-modal"><i class="fa fa-share-alt"></i></a>
              <span>
                {% if artist.events.count %}
                  {{ artist.events.count }}
                  {% if artist.events.count == 1 %}
                    event
                  {% else %}
                    events
                  {% endif %}
                {% else %}
                  No upcoming events
                {% endif %}
              </span>
            </div>
          </div>
        </div>
    </div>
  </div>
  <div class="row-col">
    <div class="col-lg-9 b-r no-border-md">
      <div class="padding">
        <div class="nav-active-border b-primary bottom m-b-md">
          <ul class="nav l-h-2x">
            <li class="nav-item m-r inline">
              <a class="nav-link active" href="#" data-toggle="tab" data-target="#tab_1">Overview</a>
            </li>
            <li class="nav-item m-r inline">
              <a class="nav-link" href="#" data-toggle="tab" data-target="#tab_2">Upcoming</a>
            </li>
            <li class="nav-item m-r inline">
              <a class="nav-link" href="#" data-toggle="tab" data-target="#tab_3">All</a>
            </li>
            <li class="nav-item m-r inline">
              <a class="nav-link" href="#" data-toggle="tab" data-target="#tab_4">Profile</a>
            </li>
          </ul>
        </div>
        <div class="tab-content">
          <div class="tab-pane active" id="tab_1">
            <h5 class="m-b">Upcoming events</h5>
            {% if upcoming_events %}
              <div class="row item-list item-list-md item-list-li m-b" id="upcoming_events">
                {% for upcoming_event in upcoming_events|slice:":4" %}
                  <div class="col-md-12 col-lg-6">
                    <div class="item r" data-id="item-2" data-src="">
                      <div class="item-media ">
                        <a href="event.detail.html" class="item-media-content" style="background-image: url('{% if artist.thumb_url %}{{ artist.thumb_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></a>
                      </div>
                      <div class="item-info">
                        <div class="item-overlay bottom text-right">
                          <a href="#" class="btn-favorite"><i class="fa fa-star-o"></i></a>
                          <a href="#" class="btn-more" data-toggle="dropdown"><i class="fa fa-ellipsis-h"></i></a>
                          <div class="dropdown-menu pull-right black lt"></div>
                        </div>
                        <h6>{{ upcoming_event.datetime|date:"l, d M Y – g:i A" }}</h6>
                        <div class="item-title text-ellipsis">
                          <a href="event.detail.html">{{ upcoming_event.title }} @ {{ upcoming_event.venue.name }}, {{ upcoming_event.venue.city }}, {{ upcoming_event.venue.country }}</a>
                        </div>
                        <div class="item-author text-sm text-ellipsis hide">
                          <a href="artist.detail.html" class="text-muted">{{ artist.name }}</a>
                        </div>
                        <div class="item-meta text-sm text-muted">
                          <span class="item-meta-stats text-xs  item-meta-right">
                            <i class="fa fa-star m-l-sm text-muted"></i> 10
                          </span>
                        </div>
                      </div>
                    </div>
                  </div>
                {% endfor %}
              </div>
          {% else %}
            <div class="item-list item-list-md item-list-li m-b" id="upcoming_events">
              No upcoming events
            </div>
          {% endif %}
          <h5 class="m-b">Past events</h5>
          {% if past_events %}
            <div class="row item-list item-list-md item-list-li m-b" id="past_events">
              {% for past_event in past_events|slice:":4" %}
                <div class="col-md-12 col-lg-6">
                  <div class="item r" data-id="item-2" data-src="">
                    <div class="item-media ">
                      <a href="event.detail.html" class="item-media-content" style="background-image: url('{% if artist.thumb_url %}{{ artist.thumb_url }}{% else %}{% static 'event/images/a3.jpg' %}{% endif %}');"></a>
                    </div>
                    <div class="item-info">
                      <div class="item-overlay bottom text-right">
                        <a href="#" class="btn-favorite"><i class="fa fa-star-o"></i></a>
                        <a href="#" class="btn-more" data-toggle="dropdown"><i class="fa fa-ellipsis-h"></i></a>
                        <div class="dropdown-menu pull-right black lt"></div>
                      </div>
                      <h6>{{ past_event.datetime|date:"l, d M Y – g:i A" }}</h6>
                      <div class="item-title text-ellipsis">
                        <a href="event.detail.html">{{ past_event.title }} @ {{ past_event.venue.name }}, {{ past_event.venue.city }}, {{ past_event.venue.country }}</a>
                      </div>
                      <div class="item-author text-sm text-ellipsis hide">
                        <a href="artist.detail.html" class="text-muted">{{ artist.name }}</a>
                      </div>
                      <div class="item-meta text-sm text-muted">
                        <span class="item-meta-stats text-xs  item-meta-right">
                          <i class="fa fa-star m-l-sm text-muted"></i> 10
                        </span>
                      </div>
                    </div>
                  </div>
                </div>
              {% endfor %}
            </div>
          {% else %}
            <div class="item-list item-list-md item-list-li m-b" id="past_events">
              No past events
            </div>
          {% endif %}
        </div>
</div>
{% endblock content %}
{'fraction_non_alphanumeric': 0.17778403888145383, 'fraction_numerical': 0.005212368810312038, 'mean_word_length': 1.4500431406384815, 'pattern_counts': {'":': 4, '<': 303, '<?xml version=': 0, '>': 303, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5550623', 'n_tokens_mistral': 4355, 'n_tokens_neox': 4094, 'n_words': 872}