<commit_before><%#
# Variables:
# - @proposal: Proposal record
# - @comment: Comment record, may be a new_record or one with error
# - @focus_comment: Focus on comment? E.g., because it has an error
# - @display_comment: Display the comment?
%>
<% page_title h(@proposal.title) %>
<% focus :comment_message if @focus_comment %>

<% cache_if(!logged_in?, "proposals_#{@proposal.id}") do %>
  <div class="standard-form">
    <table>
<% unless multiple_presenters? %>
      <tr>
        <td colspan="2">
          <h4>Speaker</h4>
        </td>
      </tr>
      <tr>
        <td class="label-cell"><label>Speaker</label ></td>
          <td class="data-cell"><p>
            <% if user_profiles? %>
              <%= link_to(h(@proposal.user.fullname), user_path(@proposal.user)) %>
            <% else %>
              <%=h @proposal.presenter %>
            <% end %>
          </p></td>
      </tr>
      <% unless @profile.affiliation.blank? %>
        <tr>
          <td class="label-cell"><label>Affiliation</label ></td>
          <td class="data-cell"><p><%=h @profile.affiliation %></p></td>
        </tr>
      <% end %>
      <% if can_edit? %>
        <tr>
          <td class="label-cell"><label>Email (private)</label ></td>
          <% email = @profile.email %>
          <td class="data-cell"><p><%=link_to h(email), "mailto:"+h(email) %></p></td>
        </tr>
      <% end %>
      <% unless @profile.website.blank? %>
        <tr>
          <td class="label-cell"><label>URL</label ></td>
          <td class="data-cell"><p><%= display_link_to @profile.website %></p></td>
        </tr>
      <% end %>
      <tr>
        <td class="label-cell"><label>Biography</label ></td>
        <td class="data-cell"><%= preserve_formatting_of @profile.biography %></td>
      </tr>
<% end %>
      <tr>
        <td colspan="2">
          <h4>Presentation</h4>
        </td>
      </tr>
<% if event_tracks? && ! @proposal.track.ergo.title.blank? %>
      <tr>
        <td class="label-cell"><label>Track</label ></td>
        <td class="data-cell"><p><%= link_to(h(@proposal.track.title), track_path(@proposal.track)) %></p></td>
      </tr>
<% end %>
<% if proposal_excerpts? %>
      <tr>
        <td class="label-cell"><label>Excerpt</label ></td>
        <td class="data-cell"><%= preserve_formatting_of @proposal.excerpt %></td>
      </tr>
<% end %>
      <tr>
        <td class="label-cell"><label>Description</label ></td>
        <td class="data-cell"><%= preserve_formatting_of @proposal.description %></td>
      </tr>
<% if can_edit? %>
        <tr>
          <td class="label-cell"><label>Note to organizers<br />(private)</label ></td>
          <td class="data-cell">
            <% if @proposal.note_to_organizers.blank? %>
              <span class="empty-text">- None -</span>
            <% else %>
              <%= preserve_formatting_of @proposal.note_to_organizers %>
            <% end %>
          </td>
        </tr>
<% end %>
<% if multiple_presenters? %>
      <tr>
        <td colspan="2">
          <h4>Speakers</h4>
        </td>
      </tr>
      <tr>
        <td class="label-cell"><label><%#= @proposal.users.count == 1 ? "Speaker" : "Speakers" %></label ></td>
        <td class="data-cell">
          <p>
            <% @proposal.users.each do |user| %>
              <dl>
                <dt>
                  <%= link_to h(user.fullname_and_affiliation), user_path(user) %>
                  <% unless user.website.blank? %>
                    <label>
                      Website:
                    </label>
                       <%= display_link_to(user.website) %>
                  <% end %>
                </dt>
                <dd>
                  <%= preserve_formatting_of user.biography %>
                </dd><commit_msg>Improved proposals#show: only display note if there's content, and display "speaker" or "speakers" as appropriate.<commit_after><%#
# Variables:
# - @proposal: Proposal record
# - @comment: Comment record, may be a new_record or one with error
# - @focus_comment: Focus on comment? E.g., because it has an error
# - @display_comment: Display the comment?
%>
<% page_title h(@proposal.title) %>
<% focus :comment_message if @focus_comment %>

<% cache_if(!logged_in?, "proposals_#{@proposal.id}") do %>
  <div class="standard-form">
    <table>
<% unless multiple_presenters? %>
      <tr>
        <td colspan="2">
          <h4>Speaker</h4>
        </td>
      </tr>
      <tr>
        <td class="label-cell"><label>Speaker</label ></td>
          <td class="data-cell"><p>
            <% if user_profiles? %>
              <%= link_to(h(@proposal.user.fullname), user_path(@proposal.user)) %>
            <% else %>
              <%=h @proposal.presenter %>
            <% end %>
          </p></td>
      </tr>
      <% unless @profile.affiliation.blank? %>
        <tr>
          <td class="label-cell"><label>Affiliation</label ></td>
          <td class="data-cell"><p><%=h @profile.affiliation %></p></td>
        </tr>
      <% end %>
      <% if can_edit? %>
        <tr>
          <td class="label-cell"><label>Email (private)</label ></td>
          <% email = @profile.email %>
          <td class="data-cell"><p><%=link_to h(email), "mailto:"+h(email) %></p></td>
        </tr>
      <% end %>
      <% unless @profile.website.blank? %>
        <tr>
          <td class="label-cell"><label>URL</label ></td>
          <td class="data-cell"><p><%= display_link_to @profile.website %></p></td>
        </tr>
      <% end %>
      <tr>
        <td class="label-cell"><label>Biography</label ></td>
        <td class="data-cell"><%= preserve_formatting_of @profile.biography %></td>
      </tr>
<% end %>
      <tr>
        <td colspan="2">
          <h4>Presentation</h4>
        </td>
      </tr>
<% if event_tracks? && ! @proposal.track.ergo.title.blank? %>
      <tr>
        <td class="label-cell"><label>Track</label ></td>
        <td class="data-cell"><p><%= link_to(h(@proposal.track.title), track_path(@proposal.track)) %></p></td>
      </tr>
<% end %>
<% if proposal_excerpts? %>
      <tr>
        <td class="label-cell"><label>Excerpt</label ></td>
        <td class="data-cell"><%= preserve_formatting_of @proposal.excerpt %></td>
      </tr>
<% end %>
      <tr>
        <td class="label-cell"><label>Description</label ></td>
        <td class="data-cell"><%= preserve_formatting_of @proposal.description %></td>
      </tr>
<% if can_edit? && ! @proposal.note_to_organizers.blank?%>
        <tr>
          <td class="label-cell"><label>Note to organizers<br />(private)</label ></td>
          <td class="data-cell">
            <% if @proposal.note_to_organizers.blank? %>
              <span class="empty-text">- None -</span>
            <% else %>
              <%= preserve_formatting_of @proposal.note_to_organizers %>
            <% end %>
          </td>
        </tr>
<% end %>
<% if multiple_presenters? %>
      <tr>
        <td colspan="2">
          <h4><%= @proposal.users.count == 1 ? "Speaker" : "Speakers" %></h4>
        </td>
      </tr>
      <tr>
        <td class="label-cell"><label></label ></td>
        <td class="data-cell">
          <p>
            <% @proposal.users.each do |user| %>
              <dl>
                <dt>
                  <%= link_to h(user.fullname_and_affiliation), user_path(user) %>
                  <% unless user.website.blank? %>
                    <label>
                      Website:
                    </label>
                       <%= display_link_to(user.website) %>
                  <% end %>
                </dt>
                <dd>
                  <%= preserve_formatting_of user.biography %>
                </dd>
{'fraction_non_alphanumeric': 0.19379543094496365, 'fraction_numerical': 0.002596053997923157, 'mean_word_length': 1.920773313115997, 'pattern_counts': {'":': 0, '<': 327, '<?xml version=': 0, '>': 327, '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': '4917461', 'n_tokens_mistral': 2665, 'n_tokens_neox': 2464, 'n_words': 464}