<commit_before>{% extends "base.html" %}
{% block title %}Activities{% endblock %}
{% set template_name = 'activities-list' %}
{% block body_class %}{{template_name}}{% endblock %}

{% block scripts %}
<script src="static/javascript/activities-list.js"></script>
{% endblock %}

{% block content %}
    <!-- template name: {{ template_name }} -->
    <div class="row row--main activities-list__header">
      <p class="row__left">A view of work in progress by you and your collegues</p>
      <div class="toolbar toobar--right row__right">
        <a class="button button--green button--medium button--new-activity">Start a new activity</a>
      </div>
    </div>

    <ul class="activity-list__states grid row">
        <li class="activity-progress__item activity-progress__item--edited is-completed grid__item width-one-fourth">
            <div class="activity-progress__icon"></div>
            <p class="activity-progress__label">In progress</p>
        </li>
        <li class="activity-progress__item  activity-progress__item--requested is-completed grid__item width-one-fourth">
            <div class="activity-progress__icon"></div>
            <p class="activity-progress__label">Feedback needed</p>
        </li>
        <li class="activity-progress__item  activity-progress__item--endorsed is-completed grid__item width-one-fourth">
            <div class="activity-progress__icon"></div>
            <p class="activity-progress__label">Ready to publish</p>
        </li>
        <li class="activity-progress__item activity-progress__item--published is-completed grid__item width-one-fourth end-row">
            <div class="activity-progress__icon "></div>
            <p class="activity-progress__label">Recently published</p>
        </li>
    </ul>

    <div class="activities-list__main row row--main col__flex">
      {{ activity_box(in_progress_activities, "edited")}}
      {{ activity_box(feedback_activities, "feedback")}}
      {{ activity_box(endorsed_activities, "endorsed")}}
      {{ activity_box(published_activities.activities, "published")}}
    </div>

    <div class="modal-container">
    <div class="new-activity modal">
      <h3>Let teammates know what public need you are addressing.</h3>
      <form action="/start" method="POST">
        <textarea type="text" name="task_description" placeholder="clarifying the permitting application process for business owners" class="need"></textarea>
        <input name="task_beneficiary" type="hidden" class="need"/>
        <p class="text-detail width-three-fourths">Starting an activity gives you your own copy of the site to work in. Activities need to be reviewed by someone else in order to go live.</p> 
        <div class="toolbar toolbar--right">
          <a href="#" class="toolbar__item button button--medium button--close-modal">Cancel</a>
          <button type="submit" class="toolbar__item button button--medium button--green button--create-activity">Create</button>
        </div>         
      </form> 
    </div>
  </div>
{% endblock %}

{% macro activity_box(state_activities, activity_state) -%}
<div class="activity-box activity-box--{{ activity_state }}">
    <ul class="activity-box__list">
    {% for activity in state_activities %}
     <li class="activity activity--{{activity_state}}">
      <p class="activity__title"><a href="{{ activity.edit_path }}">{{ activity.task_description }}</a></p>
      <div class="row">
        <p class="activity__author row__left">edited {{ activity.date_updated }} by {{ activity.last_edited_email }}</p>
        <form action="/update" method="POST" class="row__right">
          <input type="hidden" name="branch" value="{{ activity.safe_branch }}">
        </form>
      </div><commit_msg>added ids to column uls added branch name in comment inside li<commit_after>{% extends "base.html" %}
{% block title %}Activities{% endblock %}
{% set template_name = 'activities-list' %}
{% block body_class %}{{template_name}}{% endblock %}

{% block scripts %}
<script src="static/javascript/activities-list.js"></script>
{% endblock %}

{% block content %}
    <!-- template name: {{ template_name }} -->
    <div class="row row--main activities-list__header">
      <p class="row__left">A view of work in progress by you and your collegues</p>
      <div class="toolbar toobar--right row__right">
        <a class="button button--green button--medium button--new-activity">Start a new activity</a>
      </div>
    </div>

    <ul class="activity-list__states grid row">
        <li class="activity-progress__item activity-progress__item--edited is-completed grid__item width-one-fourth">
            <div class="activity-progress__icon"></div>
            <p class="activity-progress__label">In progress</p>
        </li>
        <li class="activity-progress__item  activity-progress__item--requested is-completed grid__item width-one-fourth">
            <div class="activity-progress__icon"></div>
            <p class="activity-progress__label">Feedback needed</p>
        </li>
        <li class="activity-progress__item  activity-progress__item--endorsed is-completed grid__item width-one-fourth">
            <div class="activity-progress__icon"></div>
            <p class="activity-progress__label">Ready to publish</p>
        </li>
        <li class="activity-progress__item activity-progress__item--published is-completed grid__item width-one-fourth end-row">
            <div class="activity-progress__icon "></div>
            <p class="activity-progress__label">Recently published</p>
        </li>
    </ul>

    <div class="activities-list__main row row--main col__flex">
      {{ activity_box(in_progress_activities, "edited")}}
      {{ activity_box(feedback_activities, "feedback")}}
      {{ activity_box(endorsed_activities, "endorsed")}}
      {{ activity_box(published_activities.activities, "published")}}
    </div>

    <div class="modal-container">
    <div class="new-activity modal">
      <h3>Let teammates know what public need you are addressing.</h3>
      <form action="/start" method="POST">
        <textarea type="text" name="task_description" placeholder="clarifying the permitting application process for business owners" class="need"></textarea>
        <input name="task_beneficiary" type="hidden" class="need"/>
        <p class="text-detail width-three-fourths">Starting an activity gives you your own copy of the site to work in. Activities need to be reviewed by someone else in order to go live.</p> 
        <div class="toolbar toolbar--right">
          <a href="#" class="toolbar__item button button--medium button--close-modal">Cancel</a>
          <button type="submit" class="toolbar__item button button--medium button--green button--create-activity">Create</button>
        </div>         
      </form> 
    </div>
  </div>
{% endblock %}

{% macro activity_box(state_activities, activity_state) -%}
<div class="activity-box activity-box--{{ activity_state }}">
    <ul class="activity-box__list" id="activity-list-{{ activity_state }}">
    {% for activity in state_activities %}
     <li class="activity activity--{{ activity_state }}">
      <!-- branch: {{ activity.safe_branch }} -->
      <p class="activity__title"><a href="{{ activity.edit_path }}">{{ activity.task_description }}</a></p>
      <div class="row">
        <p class="activity__author row__left">edited {{ activity.date_updated }} by {{ activity.last_edited_email }}</p>
        <form action="/update" method="POST" class="row__right">
          <input type="hidden" name="branch" value="{{ activity.safe_branch }}">
        </form>
      </div>
{'fraction_non_alphanumeric': 0.15008542515442239, 'fraction_numerical': 0.0005256932579839664, 'mean_word_length': 3.481743227326266, 'pattern_counts': {'":': 0, '<': 148, '<?xml version=': 0, '>': 148, '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': '6595789', 'n_tokens_mistral': 2203, 'n_tokens_neox': 2100, 'n_words': 513}