<commit_before>{%extends "base.html"%}
{% block script %}
<link type="text/css" href="/static/tablesorter/themes/blue/style.css" rel="Stylesheet" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
    <script type="text/javascript" src="/static/tablesorter/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("#captain_list").tablesorter({
    headers: { 8: { sorter: false }},
    });
});
</script>
{%endblock%}
{% block breadcrumb %}
  | List Captains
{% endblock %}
{%block about_this_page %}
<h2>All Captains</h2>
{% if user.staff %}
<p>
  <a href="{% url room.views.CaptainExport %}">
    Click here to export all Captain data as CSV.
  </a>
</p>
<p>
  <a href="{% url room.views.CaptainNew %}">
    Click here to add a new Captain.
  </a>
</p>
{% endif %}

{%endblock%}
{%block body%}
<table class="list tablesorter" id="captain_list">
  <thead>
    <tr>
      <th>Name
	{% if user.staff %}
	<br>(click to edit)
	{% endif %}
      </th>
      <th>Email</th>
      <th>Preferred Phone</th>
      <th>Backup Phone</th>
      <th>Sites</th>
      <th>Type</th>
      <th>T-Shirt</th>
      <th>Last Welcome</th>
      <th>Notes</th>
    </tr>
  </thead>
  <tbody>
    {% for captain in entries %}
    <tr>
      <td>
	<span name="{{captain.name|escape}}"></span>
	<a name="{{ captain.key.id }}"
	   {% if user.staff %}
	   href="{% url room.views.CaptainEdit captain.key.id %}"
	   {% endif %}
	   >
	{{captain.name|escape}}
	</a>
      </td>
      <td>
	{{ captain.email|escape }}
      </td>
      <td>
	{{ captain.phone1|escape }}
      </td>
      <td>
	{{ captain.phone2|escape }}
      </td>
      <td>
	{% for sitecaptain in captain.sitecaptains %}
	<a href="{% url room.views.SiteList sitecaptain.site.key.id %}">	
	  {{ sitecaptain.site.number }}
	</a>
	<br>
	{% endfor %}
      </td>
      <td>
	{% for sitecaptain in captain.sitecaptains %}
	{{ sitecaptain.type }}
	<br>
	{% endfor %}
      </td>
      <td>
	{{ captain.tshirt_size }}
      </td>
      <td>
	{% if captain.last_welcome %}
	{{ captain.last_welcome|timesince }} ago
	{% endif %}	
      </td>
      <td class="notes">
      {{ captain.notes|escape }}
      </td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{%endblock%}<commit_msg>Made Notes field sortable in captain list, and sometimes empty.<commit_after>{%extends "base.html"%}
{% block script %}
<link type="text/css" href="/static/tablesorter/themes/blue/style.css" rel="Stylesheet" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
    <script type="text/javascript" src="/static/tablesorter/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("#captain_list").tablesorter({
    });
});
</script>
{%endblock%}
{% block breadcrumb %}
  | List Captains
{% endblock %}
{%block about_this_page %}
<h2>All Captains</h2>
{% if user.staff %}
<p>
  <a href="{% url room.views.CaptainExport %}">
    Click here to export all Captain data as CSV.
  </a>
</p>
<p>
  <a href="{% url room.views.CaptainNew %}">
    Click here to add a new Captain.
  </a>
</p>
{% endif %}

{%endblock%}
{%block body%}
<table class="list tablesorter" id="captain_list">
  <thead>
    <tr>
      <th>Name
	{% if user.staff %}
	<br>(click to edit)
	{% endif %}
      </th>
      <th>Email</th>
      <th>Preferred Phone</th>
      <th>Backup Phone</th>
      <th>Sites</th>
      <th>Type</th>
      <th>T-Shirt</th>
      <th>Last Welcome</th>
      <th>Notes</th>
    </tr>
  </thead>
  <tbody>
    {% for captain in entries %}
    <tr>
      <td>
	<span name="{{captain.name|escape}}"></span>
	<a name="{{ captain.key.id }}"
	   {% if user.staff %}
	   href="{% url room.views.CaptainEdit captain.key.id %}"
	   {% endif %}
	   >
	{{captain.name|escape}}
	</a>
      </td>
      <td>
	{{ captain.email|escape }}
      </td>
      <td>
	{{ captain.phone1|escape }}
      </td>
      <td>
	{{ captain.phone2|escape }}
      </td>
      <td>
	{% for sitecaptain in captain.sitecaptains %}
	<a href="{% url room.views.SiteList sitecaptain.site.key.id %}">	
	  {{ sitecaptain.site.number }}
	</a>
	<br>
	{% endfor %}
      </td>
      <td>
	{% for sitecaptain in captain.sitecaptains %}
	{{ sitecaptain.type }}
	<br>
	{% endfor %}
      </td>
      <td>
	{{ captain.tshirt_size }}
      </td>
      <td>
	{% if captain.last_welcome %}
	{{ captain.last_welcome|timesince }} ago
	{% endif %}	
      </td>
      <td class="notes">
	{% if captain.notes %}
	{{ captain.notes|linebreaksbr }}
	{% endif %}
      </td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{%endblock%}
{'fraction_non_alphanumeric': 0.21015724606884828, 'fraction_numerical': 0.0027624309392265192, 'mean_word_length': 2.7746591820368884, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, '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': '7199139', 'n_tokens_mistral': 1901, 'n_tokens_neox': 1746, 'n_words': 347}