<commit_before><% content_for :head do %>
  <link rel="alternate" type="application/atom+xml" title="News Feed" href="<%= url_for news_path(:format => 'xml', :code => @logged_in.feed_code) %>"/>
  <%= stylesheet_link_tag 'news' %>
<% end %>

<% content_for :subnav do %>
  <% if Setting.get(:features, :news_by_users) or @logged_in.admin?(:manage_news) %>
    <li><%= link_to 'Submit News', new_news_item_path %></li>
  <% end %>
<% end %>

<h1>News</h1>

<p>
  Welcome to the place for community news.
  <% if Setting.get(:features, :news_by_users) %>
    If you have something newsworthy to share, <%= link_to 'submit it here', new_news_item_path %>.
  <% end %>
</p>

<p>
  <%= link_to image_tag('feed_small.png', :alt => 'News Feed', :class => 'icon'), news_path(:format => 'xml', :code => @logged_in.feed_code) %><commit_msg>Add an icon to the submit news link.<commit_after><% content_for :head do %>
  <link rel="alternate" type="application/atom+xml" title="News Feed" href="<%= url_for news_path(:format => 'xml', :code => @logged_in.feed_code) %>"/>
  <%= stylesheet_link_tag 'news' %>
<% end %>

<% content_for :subnav do %>
  <% if Setting.get(:features, :news_by_users) or @logged_in.admin?(:manage_news) %>
    <li><%= link_to image_tag('plus.png', :alt => 'Submit News', :class => 'icon') + ' Submit News', new_news_item_path %></li>
  <% end %>
<% end %>

<h1>News</h1>

<p>
  Welcome to the place for community news.
  <% if Setting.get(:features, :news_by_users) %>
    If you have something newsworthy to share, <%= link_to 'submit it here', new_news_item_path %>.
  <% end %>
</p>

<p>
  <%= link_to image_tag('feed_small.png', :alt => 'News Feed', :class => 'icon'), news_path(:format => 'xml', :code => @logged_in.feed_code) %>
{'fraction_non_alphanumeric': 0.20411663807890223, 'fraction_numerical': 0.002287021154945683, 'mean_word_length': 4.833333333333333, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4527156', 'n_tokens_mistral': 694, 'n_tokens_neox': 638, 'n_words': 157}