<section class="viewblock">
  <header class="viewblock-header">
    <h1 class="default-padding"><%= t('.system_info') %></h1>
  </header>

  <div class="viewblock-cont">

    <div class="row-fluid">
      <div class="span6">
        <div class="default-padding
          <% if !@latest_version.nil? && @latest_version > Concerto::VERSION::STRING %> alert alert-block alert-removeborder
          <% end %>">
          <h5><%= t ('.concerto_version') %></h5>

          <h2 title="<%= Concerto::VERSION.dynamic %>"><%= Concerto::VERSION::STRING %></h2>
          <% if @latest_version.nil? %>
              <i class="fa fa-exclamation-triangle" style="font-size: 1.4em;"></i>
              <b><%= t('.cant_determine_latest_version') %></b>
          <% elsif @latest_version > Concerto::VERSION::STRING %>
              <i class="fa fa-exclamation-triangle" style="font-size: 1.4em;"></i>
              <b><%= t('.new_version', version: @latest_version) %></b>
          <% end %>
        </div>
      </div>
      <div class="span6">
        <div class="default-padding">
          <h5><%= t('.delayed_job_status') %></h5>

          <h2>
            <% if background_processor_running? %>
                <i class="fa fa-play-circle"></i> <%= t('.running') %>
            <% else %>
                <i class="fa fa-stop"></i> <%= t('.stopped') %>
            <% end %>
            <small style="font-size: 0.4em; padding-left: 16px;"><%= link_to t('.start_stop'), {controller: :pages, action: :show, id: "concerto-init-d-startup-script"}, style: "text-decoration: underline;" %></small>
          </h2>
        </div>
      </div>
    </div>

  </div>

</section>
