<commit_before><%
item = options_for
checkbox_title = ""
if item.can_publish?
  checkbox_title = "Publish"
  checkbox_class = "published"
elsif item.can_manage?
  checkbox_title = "Summit publishing request"
  checkbox_class = "owned"
else
  checkbox_title = "Notify owner"
  checkbox_class = 'protected'
end

checkbox_class = "none_text" if item.is_published?
-%>
<li>
    <ul class="<%= html_classes -%>">
        <li class="type_and_title"><%= text_for_resource item -%>:&nbsp;<%= link_to item.title,item,:target=>"_blank" -%></li>
        <li class="secondary">Owners <%= item.managers.empty? ? "<span class='none_text'>None</span>" : item.managers.collect{|m| link_to(m.title,m)}.join(", ")  -%></li>
        <li class="secondary <%= checkbox_class -%>">
          <% if item.is_published? -%>
            This item is already published.
          <% else -%>
            <%= checkbox_title -%>&nbsp;<%= check_box_tag publishing_item_param(item),1,true -%>
          <% end -%>

        </li>
    </ul>
</li>
<li style="clear:both;">&nbsp;</li><commit_msg>for hidden items, still allow to send the notification to the owners, but dont display the title and in some cases the owners<commit_after><%
item = options_for
checkbox_title = ""
if item.can_publish?
  checkbox_title = "Publish"
  checkbox_class = "published"
elsif item.can_manage?
  checkbox_title = "Summit publishing request"
  checkbox_class = "owned"
else
  checkbox_title = "Notify owner"
  checkbox_class = 'protected'
end

checkbox_class = "none_text" if item.is_published?
-%>
<li>
    <ul class="<%= html_classes -%>">
        <% if item.can_view? %>
            <li class="type_and_title"><%= text_for_resource item -%>:&nbsp;<%= link_to item.title,item,:target=>"_blank" -%></li>
            <li class="secondary">Owners <%= item.managers.empty? ? "<span class='none_text'>None</span>" : item.managers.collect{|m| link_to(m.title,m)}.join(", ")  -%></li>
        <% else %>
          <li class="type_and_title"><%= text_for_resource item -%>:&nbsp;This item is hidden to you</li>
          <% if current_user.try(:person) && item.can_see_hidden_item?(current_user.person) %>
            <li class="secondary">Owners <%= item.managers.empty? ? "<span class='none_text'>None</span>" : item.managers.collect{|m| link_to(m.title,m)}.join(", ")  -%></li>
          <% end %>
        <% end %>
        <li class="secondary <%= checkbox_class -%>">
          <% if item.is_published? -%>
            This item is already published.
          <% else -%>
            <%= checkbox_title -%>&nbsp;<%= check_box_tag publishing_item_param(item),1,true -%>
          <% end -%>

        </li>
    </ul>
</li>
<li style="clear:both;">&nbsp;</li>
{'fraction_non_alphanumeric': 0.180642777983007, 'fraction_numerical': 0.0007388252678241596, 'mean_word_length': 3.3536977491961415, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 68, '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': '3857409', 'n_tokens_mistral': 957, 'n_tokens_neox': 891, 'n_words': 187}