<commit_before><%#
  # $HeadURL$
  # $Id$
  #
  # Copyright (c) 2009-2012 by Public Library of Science, a non-profit corporation
  # http://www.plos.org/
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
-%>

<div class="content">
  <div class="page-header">
    <h1>Administration</h1>
  </div>

  <ul class="nav nav-tabs" id="admin-nav">
    <%= render :partial => 'admin/navigation' %> 
  </ul>
  
  <ul class="thumbnails">
    <li class="span4">
      <div class="thumbnail">
        <div class="caption">
          <h2>
            <i class="icon-file"></i> Articles
          </h2>
          <p><%= pluralize(@articles_count, 'article') %>, including <%= pluralize(@articles_recent_count, 'article') %> published in the last 30 days.</p>
        </div>
      </div>
    </li>
    <li class="span4">
      <div class="thumbnail">
        <div class="caption">
          <h2>
            <i class="icon-tags"></i> Sources 
            <% if @sources_disabled_count > 0 %>
              <span class="label label-warning pull-right">Problems</span>
            <% elsif @sources_inactive_count > 0 %>
              <span class="label label-info pull-right">Inactive Sources</span>
            <% else %>
              <span class="label label-success pull-right">No Problems</span>
            <% end %>
          </h2>
          <p><%= pluralize(@sources.count, 'source') %>, including <%= @sources_inactive_count %> inactive and <%= @sources_disabled_count %> disabled sources.</p>
        </div>
      </div>
    </li>
    <li class="span4">
      <div class="thumbnail">
        <div class="caption">
          <h2>
            <i class="icon-wrench"></i> Jobs
            <% if @delayed_jobs_errors_count > 0 %>
              <span class="label label-warning pull-right">Failures</span>
            <% else %>
              <span class="label label-success pull-right">No Failures</span>
            <% end %>
          </h2>
          <p><%= pluralize(@delayed_jobs_count, 'active job') %>.<br/>&nbsp;</p>
        </div>
      </div>

    </li>
  </ul>
</div><commit_msg>ALM-157 changes to responsive layout for phones<commit_after><%#
  # $HeadURL$
  # $Id$
  #
  # Copyright (c) 2009-2012 by Public Library of Science, a non-profit corporation
  # http://www.plos.org/
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
-%>

<div class="content">
  <div class="page-header">
    <h1>Administration</h1>
  </div>

  <ul class="nav nav-tabs" id="admin-nav">
    <%= render :partial => 'admin/navigation' %> 
  </ul>
  
  <ul class="thumbnails">
    <li class="span4">
      <div class="thumbnail">
        <div class="caption">
          <h2>
            <i class="icon-file"></i> Articles
          </h2>
          <p><%= pluralize(@articles_count, 'article') %>, including <%= pluralize(@articles_recent_count, 'article') %> published in the last 30 days.</p>
        </div>
      </div>
    </li>
    <li class="span4">
      <div class="thumbnail">
        <div class="caption">
          <h2>
            <i class="icon-tags"></i> Sources 
            <% if @sources_disabled_count > 0 %>
              <span class="label label-warning pull-right">Problems</span>
            <% elsif @sources_inactive_count > 0 %>
              <span class="label label-info pull-right">Inactive Sources</span>
            <% else %>
              <span class="label label-success pull-right">No Problems</span>
            <% end %>
          </h2>
          <p><%= pluralize(@sources.count, 'source') %>, including <%= @sources_inactive_count %> inactive and <%= @sources_disabled_count %> disabled sources.</p>
        </div>
      </div>
    </li>
    <li class="span4">
      <div class="thumbnail">
        <div class="caption">
          <h2>
            <i class="icon-wrench"></i> Jobs
            <% if @delayed_jobs_errors_count > 0 %>
              <span class="label label-warning pull-right">Failures</span>
            <% else %>
              <span class="label label-success pull-right">No Failures</span>
            <% end %>
          </h2>
          <p><%= pluralize(@delayed_jobs_count, 'active job') %>.<br/>&nbsp;</p>
        </div>
      </div>
    </li>
    <li class="span4">
      <div class="thumbnail">
        <div class="caption">
          <h2>
            <i class="icon-wrench"></i> Queues
          </h2>
          <p><%= pluralize(RetrievalStatus.queued.count, 'queued article') %>.<br/>&nbsp;</p>
        </div>
      </div>
    </li>
  </ul>
</div>
{'fraction_non_alphanumeric': 0.1556842867487328, 'fraction_numerical': 0.011223750905141203, 'mean_word_length': 2.27893175074184, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2538899', 'n_tokens_mistral': 1776, 'n_tokens_neox': 1658, 'n_words': 456}