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

{% block content %}
<div class="container">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">

      {% include 'includes/flashes.html' %}

      <form class="form form-horizontal" method="POST" action="#">

        <div class="spacer-20"></div>

        <h4>All Opportunities</h4>

        <h3><strong>Currently accepting proposals</strong></h3>

        {% if _open|length > 0 %}
        <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>Select</th>
                <th>Opportunity</th>
                <th>Department</th>
                <th>Deadline</th>
                {% if not current_user.is_anonymous() %}
                <th>Edit </th>
                {% endif %}
              </tr>
            </thead>
            <tbody>
              {% for opportunity in _open %}
              <tr>
                <td><input type="checkbox" name="opportunity" value="{{ opportunity.id }}"></td>
                <td><a href="{{ url_for('opportunities.detail', opportunity_id=opportunity.id) }}">{{ opportunity.title }}</a></td>
                <td>{{ opportunity.department }}</td>
                <td>{{ opportunity.planned_deadline.strftime('%B %d, %Y') }}</td>
                {% if opportunity.can_edit(current_user) %}
                <td><a href="{{ url_for('opportunities_admin.edit', opportunity_id=opportunity.id) }}">Edit</a></td>
                {% elif not current_user.is_anonymous() %}
                <td><i class="fa fa-minus"></i></td>
                {% endif %}
              </tr>
              {% endfor %}
            </tbody>
          </table>
        </div>

        {% else %}

        <p>There aren't any opportunities accepting proposals right now. <a href="{{ url_for('opportunities.signup') }}">Subscribe to our mailing list</a> and be among the first to know when upcoming opportunities become active ones.</p>

        {% endif %}

        <h3><strong>Upcoming</strong></h3>

        {% if upcoming|length > 0 %}
        <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>Select</th>
                <th>Opportunity</th>
                <th>Department</th>
                <th>Estimated Open Date</th>
                {% if not current_user.is_anonymous() %}
                <th>Edit this contract</th>
                {% endif %}
              </tr>
            </thead>
            <tbody>
              {% for opportunity in upcoming %}
              <tr>
                <td><input type="checkbox" name="opportunity" value="{{ opportunity.id }}"></td>
                <td><a href="{{ url_for('opportunities.detail', opportunity_id=opportunity.id) }}">{{ opportunity.title }}</a></td>
                <td>{{ opportunity.department }}</td>
                <td>{{ opportunity.planned_deadline.strftime('%B %d, %Y') }}</td>
                {% if opportunity.can_edit(current_user) %}
                <td><a href="{{ url_for('opportunities_admin.edit', opportunity_id=opportunity.id) }}">Edit</a></td>
                {% elif not current_user.is_anonymous() %}
                <i class="fa fa-minus"></i>
                {% endif %}
              </tr>
              {% endfor %}
            </tbody>
          </table>
        </div>
        {% else %}

           <p>There aren't any upcoming opportunities right now. <a href="{{ url_for('opportunities.signup') }}">Subscribe to our mailing list</a> and find out when new ones get posted.</p>

        {% endif %}

        {% if _open|length > 0 or upcoming|length > 0 %}

          <div class="spacer-20"></div>
          <h4>Subscribe to selected opportunities</h4>
          {% include "opportunities/opp_signup_form.html" %}

        {% endif %}

      </form>

    </div><commit_msg>Styled table in browse.html<commit_after>{% extends "opportunities/layout.html" %}

{% block content %}
<div class="container">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">

      {% include 'includes/flashes.html' %}

      <form class="form form-horizontal" method="POST" action="#">

        <div class="spacer-20"></div>

        <h4>All Opportunities</h4>

        <h3><strong>Currently accepting proposals</strong></h3>

        {% if _open|length > 0 %}
        <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>Select</th>
                <th>Opportunity</th>
                <th>Department</th>
                <th>Deadline</th>
                {% if not current_user.is_anonymous() %}
                <th>Edit </th>
                {% endif %}
              </tr>
            </thead>
            <tbody>
              {% for opportunity in _open %}
              <tr>
                <td class="col-md-1"><input type="checkbox" name="opportunity" value="{{ opportunity.id }}"></td>
                <td class="col-md-5"><a href="{{ url_for('opportunities.detail', opportunity_id=opportunity.id) }}">{{ opportunity.title }}</a></td>
                <td class="col-md-3">{{ opportunity.department }}</td>
                <td class="col-md-2">{{ opportunity.planned_deadline.strftime('%m/%d/%y') }}</td>
                {% if opportunity.can_edit(current_user) %}
                <td class="col-md-2"><a href="{{ url_for('opportunities_admin.edit', opportunity_id=opportunity.id) }}">Edit</a></td>
                {% elif not current_user.is_anonymous() %}
                <td><i class="fa fa-minus"></i></td>
                {% endif %}
              </tr>
              {% endfor %}
            </tbody>
          </table>
        </div>

        {% else %}

        <p>There aren't any opportunities accepting proposals right now. <a href="{{ url_for('opportunities.signup') }}">Subscribe to our mailing list</a> and be among the first to know when upcoming opportunities become active ones.</p>

        {% endif %}

        <h3><strong>Upcoming opportunities</strong></h3>

        {% if upcoming|length > 0 %}
        <div class="table-responsive">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>Select</th>
                <th>Opportunity</th>
                <th>Department</th>
                <th>Estimated open</th>
                {% if not current_user.is_anonymous() %}
                <th>Edit</th>
                {% endif %}
              </tr>
            </thead>
            <tbody>
              {% for opportunity in upcoming %}
              <tr>
                <td class="col-md-1"><input type="checkbox" name="opportunity" value="{{ opportunity.id }}"></td>
                <td class="col-md-5"><a href="{{ url_for('opportunities.detail', opportunity_id=opportunity.id) }}">{{ opportunity.title }}</a></td>
                <td class="col-md-3">{{ opportunity.department }}</td>
                <td class="col-md-2">{{ opportunity.planned_deadline.strftime('%m/%d/%y') }}</td>
                {% if opportunity.can_edit(current_user) %}
                <td><a href="{{ url_for('opportunities_admin.edit', opportunity_id=opportunity.id) }}">Edit</a></td>
                {% elif not current_user.is_anonymous() %}
                <i class="fa fa-minus"></i>
                {% endif %}
              </tr>
              {% endfor %}
            </tbody>
          </table>
        </div>
        {% else %}

           <p>There aren't any upcoming opportunities right now. <a href="{{ url_for('opportunities.signup') }}">Subscribe to our mailing list</a> and find out when new ones get posted.</p>

        {% endif %}

        {% if _open|length > 0 or upcoming|length > 0 %}

          <div class="spacer-20"></div>
          <h4>Subscribe to selected opportunities</h4>
          {% include "opportunities/opp_signup_form.html" %}

        {% endif %}

      </form>

    </div>
{'fraction_non_alphanumeric': 0.16649974962443664, 'fraction_numerical': 0.005633450175262894, 'mean_word_length': 1.7529290144727774, 'pattern_counts': {'":': 0, '<': 223, '<?xml version=': 0, '>': 231, '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': '3098738', 'n_tokens_mistral': 2497, 'n_tokens_neox': 2200, 'n_words': 479}