<h1><%= I18n.t("site.system_preference") %></h1>
<ul class="nav nav-tabs" id="myTab">
  <li class="active"><a href="#summary"  data-toggle="tab"><%= I18n.t("site.system_preference_.tab_summary") %></a></li>
  <li><a href="#commits" data-toggle="tab"><%= I18n.t("site.system_preference_.tab_commits") %></a></li>
  <li><a href="#backups"  data-toggle="tab"><%= I18n.t("site.system_preference_.tab_backups") %></a></li>
  <li><a href="#resque_logs"  data-toggle="tab"><%= I18n.t("site.system_preference_.tab_logs") %></a></li>
</ul>
 
<div class="tab-content">
  <div class="tab-pane  active in" id="summary">
        <h2><%= I18n.t("site.system_preference_.summary.disk_space") %>:</h2>
         <%= content_tag :p,@site.disk_space.gsub(/\n/,"<br />").html_safe if @site.disk_space %>
        <h2><%= I18n.t("site.system_preference_.summary.code_update_at") %>: </h2>
        <% @site.system_package_info.each do |index,value| %>
          <h2><%= index.titleize %> <%= I18n.t("site.system_preference_.summary.version") %>:</h2>       
          <%= content_tag :p,value %>
        <% end %>
        <h2><%= I18n.t("site.system_preference_.summary.weekness_report") %>:<%= '' %></h2>
  </div>
  <div class="tab-pane" id="commits">
    <% if @git_commit_list_file %>
      <% @git_commit_list_file.lines do |line|%>
        <%= line %><br/>
      <% end%>
      <% else %>
      <div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
    <% end %>
  </div>
  <div class="tab-pane" id="backups">
    <%if @db_backup_list_file %>
      <% @db_backup_list_file.lines do |line|%>
        <%=line %><br/>
      <% end %>
      <% else %>
        <div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
    <% end %>
  </div>
  <div class="tab-pane" id="resque_logs">
  <%if @db_backup_list_file %>
    <% @resque_logs_file.lines do |line|%>
      <%=line %><br/>
    <% end if @resque_logs_file%>
    <%else %>
          <div class="well"><%= I18n.t("site.system_preference_.summary.no_data") %></div>
    <% end %>
  </div>
</div>