<commit_before><table class="site"> 
  <tbody>
  {% for site in entries %}
  <tr> 
    <td>
      <span class=big>
	<a name="site_{{ site.number }}"></a>
	{{ site.name }}
      </span>
      <br>Site #{{ site.number }}
      <br>{{ site.StreetAddress }}
      {% if site.applicant %}
      {% ifnotequal site.applicant site.name %}
      <p>
      <i>Applicant's main contact</i>
      <br><strong>{{ site.applicant }}</strong>
      {% endifnotequal %}
      {% if site.applicant_home_phone %}
      <br>{{ site.applicant_home_phone }} <i>home</i> 
      {% endif %}
      {% if site.applicant_work_phone %}
      <br>{{ site.applicant_work_phone }} <i>work</i> 
      {% endif %}
      {% if site.applicant_mobile_phone %}
      <br>{{ site.applicant_mobile_phone }} <i>mobile</i> 
      {% endif %}
      {% endif %}
      </p>

      {% if site.sponsor %}
      <p><i>Sponsored by:</i>
      <br><strong>{{ site.sponsor }}</strong>
      </p>
      {% endif %}

      {% if not site.sitecaptain_set %}
      <p>
	No captains assigned yet!
      </p>
      {% else %}
      {% for sitecaptain in site.sitecaptain_set %}
      <p> 
	<strong>{{ sitecaptain.captain.name }}</strong>
	<br>{{ sitecaptain.type }} Captain
	{% if site_list_detail %}
	<br>
	<a href="mailto:{{ sitecaptain.captain.email }}">
	  {{ sitecaptain.captain.email }}
	</a>
	{% if sitecaptain.captain.phone1 %}
	<br>primary: {{ sitecaptain.captain.phone1 }}
	{% endif %}
	{% if sitecaptain.captain.phone2 %}
	<br>secondary: {{ sitecaptain.captain.phone2 }}
	{% endif %}
	{% endif %}
      </p>
      {% endfor %}
      {% endif %}
    </td>
    <td>
      <div class="big jeditable" 
	   id="announcement_subject" 
	   name="{{ site.key.id }}">{{ site.announcement_subject }}</div>
      <div class="panel">
	<div class="padded jeditable-text"
	     id="announcement_body"
	     name="{{ site.key.id }}">{{ site.announcement_body }}</div>
      </div><commit_msg>added edit link to captains on site view<commit_after><table class="site"> 
  <tbody>
  {% for site in entries %}
  <tr> 
    <td>
      <span class=big>
	<a name="site_{{ site.number }}"></a>
	{{ site.name }}
      </span>
      <br>Site #{{ site.number }}
      <br>{{ site.StreetAddress }}
      {% if site.applicant %}
      {% ifnotequal site.applicant site.name %}
      <p>
      <i>Applicant's main contact</i>
      <br><strong>{{ site.applicant }}</strong>
      {% endifnotequal %}
      {% if site.applicant_home_phone %}
      <br>{{ site.applicant_home_phone }} <i>home</i> 
      {% endif %}
      {% if site.applicant_work_phone %}
      <br>{{ site.applicant_work_phone }} <i>work</i> 
      {% endif %}
      {% if site.applicant_mobile_phone %}
      <br>{{ site.applicant_mobile_phone }} <i>mobile</i> 
      {% endif %}
      {% endif %}
      </p>

      {% if site.sponsor %}
      <p><i>Sponsored by:</i>
      <br><strong>{{ site.sponsor }}</strong>
      </p>
      {% endif %}

      {% if not site.sitecaptain_set %}
      <p>
	No captains assigned yet!
      </p>
      {% else %}
      {% for sitecaptain in site.sitecaptain_set %}
      <p> 
	<strong>{{ sitecaptain.captain.name }}</strong>
	{% if user.staff %}
	(
	<a href="{% url room.views.CaptainEdit sitecaptain.captain.key.id %}">
	  edit
	</a>
	)
	{% endif %}
	<br>{{ sitecaptain.type }} Captain
	{% if site_list_detail %}
	<br>
	<a href="mailto:{{ sitecaptain.captain.email }}">
	  {{ sitecaptain.captain.email }}
	</a>
	{% if sitecaptain.captain.phone1 %}
	<br>primary: {{ sitecaptain.captain.phone1 }}
	{% endif %}
	{% if sitecaptain.captain.phone2 %}
	<br>secondary: {{ sitecaptain.captain.phone2 }}
	{% endif %}
	{% endif %}
      </p>
      {% endfor %}
      {% endif %}
    </td>
    <td>
      <div class="big jeditable" 
	   id="announcement_subject" 
	   name="{{ site.key.id }}">{{ site.announcement_subject }}</div>
      <div class="panel">
	<div class="padded jeditable-text"
	     id="announcement_body"
	     name="{{ site.key.id }}">{{ site.announcement_body }}</div>
      </div>
{'fraction_non_alphanumeric': 0.1950734013436178, 'fraction_numerical': 0.0019905449116695696, 'mean_word_length': 2.541850220264317, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '6412445', 'n_tokens_mistral': 1654, 'n_tokens_neox': 1414, 'n_words': 270}