<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Resque.</title>
  <link href="<%=u 'reset.css' %>" media="screen" rel="stylesheet" type="text/css">
  <link href="<%=u 'style.css' %>" media="screen" rel="stylesheet" type="text/css">
  <script src="<%=u 'jquery-1.3.2.min.js' %>" type="text/javascript"></script>
  <script src="<%=u 'jquery.relatize_date.js' %>" type="text/javascript"></script>
  <script src="<%=u 'ranger.js' %>" type="text/javascript"></script>
</head>
<body>
  <div class="header">
    <ul class='nav'>
      <% tabs.each do |tab_name| %>
        <%= tab tab_name %>
      <% end %>
    </ul>
    <% if Resque.redis.namespace != :resque %>
      <abbr class="namespace" title="Resque's Redis Namespace">
       <%= Resque.redis.namespace %>
      </abbr>
    <% end %>
  </div>

  <% if @subtabs %>
    <ul class='subnav'>
      <% for subtab in @subtabs %>
        <li <%= class_if_current "#{current_section}/#{subtab}" %>><a href="<%= current_section %>/<%= subtab %>"><span><%= subtab %></span></a></li>
      <% end %>
    </ul>
  <% end %>

<div id="main">
  <%= yield %>
</div>

<div id="footer">
  <p>Powered by <a href="http://github.com/resque/resque">Resque</a> v<%=Resque::Version%></p>
  <p>Connected to Redis namespace <%= Resque.redis.namespace %> on <%=Resque.redis_id%></p>
</div>

</body>
</html>
