<commit_before>{% extends "layout.html" %}

{% block title %}My Events Page{% endblock %}


{% block links %}
<link rel="stylesheet" href="../static/event.css">
<link rel="import" href="/static/bower_components/google-map/google-map.html">
{% endblock %}

{% block body %}

<div class="container">
  <p></p>
  <div class="row">
    <div class="col-md-6">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title">
            Events You Created
          </h3>
        </div>
        <div class="panel-body">
          {% for event in created%}
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">
                <a href="/event/{{event.id}}">
                  {{event.name}}
                </a>
                <small>{{event.address}}</small>
                <small>{{event.start_date}} {{event.start_time}} -- {{event.end_date}} {{event.end_time}}</small>
              </h3>
            </div>
            <div class="panel-body">
              <div class="row">
                <div class="col-md-4">
                  <img src="http://lorempixel.com/g/150/150/" class="center-block img-circle img-responsive" alt="Responsive image">
                </div>
                <div class="col-md-8">
                  <div class="row">
                    <div class="col-md-12">
                      {% for tag in event.tags %}
                        <span class="label label-primary">{{tag}}</span>
                      {% endfor %}
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-md-12">
                      {{event.description}}
                      <p>
                        <a class="btn btn-primary" href="#" role="button">Edit</a>
                      </p>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          {% else %}
            <h3>
              Looks like you haven't created any events yet!
              <a href="/create" class="btn btn-success">New Event</a>
            </h3>

          {% endfor %}
        </div>
      </div>
    </div>
    <div class="col-md-6">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title">
            Events You Are Attending
          </h3>
        </div>
        <div class="panel-body">
          {% for event in attending%}
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">
                <a href="/event/{{event.id}}">
                  {{event.name}}
                </a>
                <small>{{event.address}}</small>
                <small>{{event.start_date}} {{event.start_time}} -- {{event.end_date}} {{event.end_time}}</small>
              </h3>
            </div>
            <div class="panel-body">
              <div class="row">
                <div class="col-md-4">
                  <img src="http://lorempixel.com/g/150/150/" class="center-block img-circle img-responsive" alt="Responsive image">
                </div>
                <div class="col-md-8">
                  <div class="row">
                    <div class="col-md-12">
                      {% for tag in event.tags %}
                        <span class="label label-primary">{{tag}}</span>
                      {% endfor %}
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-md-12">
                      {{event.description}}
                      <p>
                        <a class="btn btn-danger" href="/leave/{{event.id}}" role="button">Leave</a>
                      </p>
                    </div>

                  </div>
                </div>
              </div>
            </div>
          </div>
          {% else %}
            <h3>
              Looks like you aren't attending any events yet!
              <a href="/events" class="btn btn-primary">Find Events</a>
            </h3>

          {% endfor %}
        </div>
      </div>
    </div>
  </div>


</div>
{% endblock %}
<commit_msg>added delete button<commit_after>{% extends "layout.html" %}

{% block title %}My Events Page{% endblock %}


{% block links %}
<link rel="stylesheet" href="../static/event.css">
<link rel="import" href="/static/bower_components/google-map/google-map.html">
{% endblock %}

{% block body %}

<div class="container">
  <p></p>
  <div class="row">
    <div class="col-md-6">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title">
            Events You Created
          </h3>
        </div>
        <div class="panel-body">
          {% for event in created%}
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">
                <a href="/event/{{event.id}}">
                  {{event.name}}
                </a>
                <small>{{event.address}}</small>
                <small>{{event.start_date}} {{event.start_time}} -- {{event.end_date}} {{event.end_time}}</small>
              </h3>
            </div>
            <div class="panel-body">
              <div class="row">
                <div class="col-md-4">
                  <img src="http://lorempixel.com/g/150/150/" class="center-block img-circle img-responsive" alt="Responsive image">
                </div>
                <div class="col-md-8">
                  <div class="row">
                    <div class="col-md-12">
                      {% for tag in event.tags %}
                        <span class="label label-primary">{{tag}}</span>
                      {% endfor %}
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-md-12">
                      {{event.description}}
                      <p>
                        <a class="btn btn-primary" href="#" role="button">Edit</a>
                        <a class="btn btn-danger" href="#" role="button">Delete</a>
                      </p>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          {% else %}
            <h3>
              Looks like you haven't created any events yet!
              <a href="/create" class="btn btn-success">New Event</a>
            </h3>

          {% endfor %}
        </div>
      </div>
    </div>
    <div class="col-md-6">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title">
            Events You Are Attending
          </h3>
        </div>
        <div class="panel-body">
          {% for event in attending%}
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">
                <a href="/event/{{event.id}}">
                  {{event.name}}
                </a>
                <small>{{event.address}}</small>
                <small>{{event.start_date}} {{event.start_time}} -- {{event.end_date}} {{event.end_time}}</small>
              </h3>
            </div>
            <div class="panel-body">
              <div class="row">
                <div class="col-md-4">
                  <img src="http://lorempixel.com/g/150/150/" class="center-block img-circle img-responsive" alt="Responsive image">
                </div>
                <div class="col-md-8">
                  <div class="row">
                    <div class="col-md-12">
                      {% for tag in event.tags %}
                        <span class="label label-primary">{{tag}}</span>
                      {% endfor %}
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-md-12">
                      {{event.description}}
                      <p>
                        <a class="btn btn-danger" href="/leave/{{event.id}}" role="button">Leave</a>
                      </p>
                    </div>

                  </div>
                </div>
              </div>
            </div>
          </div>
          {% else %}
            <h3>
              Looks like you aren't attending any events yet!
              <a href="/events" class="btn btn-primary">Find Events</a>
            </h3>

          {% endfor %}
        </div>
      </div>
    </div>
  </div>


</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.16411327762302694, 'fraction_numerical': 0.008820798514391829, 'mean_word_length': 1.1650753768844222, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6055535', 'n_tokens_mistral': 2531, 'n_tokens_neox': 2302, 'n_words': 489}