mirror of
				https://github.com/endofunky/sidetiq.git
				synced 2022-11-09 13:53:30 -05:00 
			
		
		
		
	Fix styling for Bootstrap 3
This commit is contained in:
		
							parent
							
								
									e0703349c7
								
							
						
					
					
						commit
						4795028c01
					
				
					 7 changed files with 42 additions and 88 deletions
				
			
		| 
						 | 
				
			
			@ -1,16 +1,12 @@
 | 
			
		|||
<div class="span3">
 | 
			
		||||
  <ul class="nav nav-list sidetiq-sidenav">
 | 
			
		||||
    <li>
 | 
			
		||||
      <a href="<%= " #{root_path}sidetiq" %>">
 | 
			
		||||
        <i class="icon-chevron-right"></i>
 | 
			
		||||
        Home
 | 
			
		||||
      </a>
 | 
			
		||||
    </li>
 | 
			
		||||
    <li>
 | 
			
		||||
      <a href="<%= "#{root_path}sidetiq/locks" %>">
 | 
			
		||||
        <i class="icon-chevron-right"></i>
 | 
			
		||||
        Locks
 | 
			
		||||
      </a>
 | 
			
		||||
    </li>
 | 
			
		||||
  </ul>
 | 
			
		||||
<div class="col-md-3">
 | 
			
		||||
  <div class="list-group sidetiq-sidenav">
 | 
			
		||||
    <a href="<%= root_path %>sidetiq" class="list-group-item<%= current_path == 'sidetiq' ? ' active' : nil %>">
 | 
			
		||||
      <i class="icon-chevron-right"></i>
 | 
			
		||||
      Home
 | 
			
		||||
    </a>
 | 
			
		||||
    <a href="<%= root_path %>sidetiq/locks" class="list-group-item<%= current_path == 'sidetiq/locks' ? ' active' : nil %>">
 | 
			
		||||
      <i class="icon-chevron-right"></i>
 | 
			
		||||
      Locks
 | 
			
		||||
    </a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,22 +1,16 @@
 | 
			
		|||
<div class="span3">
 | 
			
		||||
  <ul class="nav nav-list sidetiq-sidenav">
 | 
			
		||||
    <li>
 | 
			
		||||
      <a href="<%= "#{root_path}sidetiq" %>">
 | 
			
		||||
        <i class="icon-chevron-right"></i>
 | 
			
		||||
        Home
 | 
			
		||||
      </a>
 | 
			
		||||
    </li>
 | 
			
		||||
    <li>
 | 
			
		||||
      <a href="<%= "#{root_path}sidetiq/#{@worker.name}/schedule" %>">
 | 
			
		||||
        <i class="icon-chevron-right"></i>
 | 
			
		||||
        Job Schedule
 | 
			
		||||
      </a>
 | 
			
		||||
    </li>
 | 
			
		||||
    <li>
 | 
			
		||||
      <a href="<%= "#{root_path}sidetiq/#{@worker.name}/history" %>">
 | 
			
		||||
        <i class="icon-chevron-right"></i>
 | 
			
		||||
        Job History
 | 
			
		||||
      </a>
 | 
			
		||||
    </li>
 | 
			
		||||
  </ul>
 | 
			
		||||
<div class="col-md-3">
 | 
			
		||||
  <dic class="list-group sidetiq-sidenav">
 | 
			
		||||
    <a href="<%= root_path %>sidetiq" class="list-group-item<%= current_path == 'sidetiq' ? ' active' : nil %>">
 | 
			
		||||
      <i class="icon-chevron-right"></i>
 | 
			
		||||
      Home
 | 
			
		||||
    </a>
 | 
			
		||||
    <a href="<%= root_path %>sidetiq/#{@worker.name}/schedule" class="list-group-item<%= current_path == "sidetiq/#{@worker.name}/schedule" ? ' active' : nil %>">
 | 
			
		||||
      <i class="icon-chevron-right"></i>
 | 
			
		||||
      Job Schedule
 | 
			
		||||
    </a>
 | 
			
		||||
    <a href="<%= root_path %>sidetiq/#{@worker.name}/history" class="list-group-item<%= current_path == "#{@worker.name}/history" ? ' active' : nil %>">
 | 
			
		||||
      <i class="icon-chevron-right"></i>
 | 
			
		||||
      Job History
 | 
			
		||||
    </a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,36 +0,0 @@
 | 
			
		|||
<style>
 | 
			
		||||
.sidetiq-container {
 | 
			
		||||
  padding-left: 0;
 | 
			
		||||
  padding-right: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sidetiq-sidenav {
 | 
			
		||||
  width: 228px;
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  background-color: #fff;
 | 
			
		||||
  -webkit-border-radius: 6px;
 | 
			
		||||
     -moz-border-radius: 6px;
 | 
			
		||||
          border-radius: 6px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sidetiq-sidenav > li > a {
 | 
			
		||||
  display: block;
 | 
			
		||||
  width: 190px \9;
 | 
			
		||||
  margin: 0 0 -1px;
 | 
			
		||||
  padding: 8px 14px;
 | 
			
		||||
  border: 1px solid #e5e5e5;
 | 
			
		||||
}
 | 
			
		||||
j
 | 
			
		||||
.sidetiq-sidenav > li:first-child > a {
 | 
			
		||||
  -webkit-border-radius: 6px 6px 0 0;
 | 
			
		||||
     -moz-border-radius: 6px 6px 0 0;
 | 
			
		||||
          border-radius: 6px 6px 0 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.sidetiq-sidenav > li:last-child > a {
 | 
			
		||||
  -webkit-border-radius: 0 0 6px 6px;
 | 
			
		||||
     -moz-border-radius: 0 0 6px 6px;
 | 
			
		||||
          border-radius: 0 0 6px 6px;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,16 +1,16 @@
 | 
			
		|||
<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %>
 | 
			
		||||
 | 
			
		||||
<header class="row">
 | 
			
		||||
  <div class="span5">
 | 
			
		||||
  <div class="col-md-5">
 | 
			
		||||
    <h3>Recurring Job: <%= @worker.name %></h3>
 | 
			
		||||
  </div>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
<div class="container-fluid sidetiq-container">
 | 
			
		||||
  <div class="row-fluid">
 | 
			
		||||
<div class="container">
 | 
			
		||||
  <div class="row">
 | 
			
		||||
    <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_worker_nav.erb')) %>
 | 
			
		||||
 | 
			
		||||
    <div class="span9">
 | 
			
		||||
    <div class="col-md-9">
 | 
			
		||||
      <table class="table table-striped table-bordered table-hover table-white" style="width: 100%; margin: 0; table-layout:fixed;">
 | 
			
		||||
        <thead>
 | 
			
		||||
          <th style="width: 10%">Status</th>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,16 @@
 | 
			
		|||
<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %>
 | 
			
		||||
 | 
			
		||||
<header class="row">
 | 
			
		||||
  <div class="span5">
 | 
			
		||||
  <div class="col-md-5">
 | 
			
		||||
    <h3>Active Locks</h3>
 | 
			
		||||
  </div>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
<div class="container-fluid sidetiq-container">
 | 
			
		||||
  <div class="row-fluid">
 | 
			
		||||
<div class="container">
 | 
			
		||||
  <div class="row">
 | 
			
		||||
    <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_home_nav.erb')) %>
 | 
			
		||||
 | 
			
		||||
    <div class="span9">
 | 
			
		||||
    <div class="col-md-9">
 | 
			
		||||
      <% if @locks.length > 0 %>
 | 
			
		||||
      <table class="table table-striped table-bordered table-white" style="width: 100%; margin: 0; table-layout:fixed;">
 | 
			
		||||
        <thead>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,16 @@
 | 
			
		|||
<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %>
 | 
			
		||||
 | 
			
		||||
<header class="row">
 | 
			
		||||
  <div class="span5">
 | 
			
		||||
  <div class="col-md-5">
 | 
			
		||||
    <h3>Recurring Job: <%= @worker.name %></h3>
 | 
			
		||||
  </div>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
<div class="container-fluid sidetiq-container">
 | 
			
		||||
  <div class="row-fluid">
 | 
			
		||||
<div class="container">
 | 
			
		||||
  <div class="row">
 | 
			
		||||
    <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_worker_nav.erb')) %>
 | 
			
		||||
 | 
			
		||||
    <div class="span9">
 | 
			
		||||
    <div class="col-md-9">
 | 
			
		||||
      <% if (recurrences = @schedule.recurrence_rules).length > 0 %>
 | 
			
		||||
      <table class="table table-striped table-bordered table-hover table-white" style="width: 100%; margin: 0; table-layout:fixed;">
 | 
			
		||||
        <thead>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,16 +1,16 @@
 | 
			
		|||
<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %>
 | 
			
		||||
 | 
			
		||||
<header class="row">
 | 
			
		||||
  <div class="span5">
 | 
			
		||||
  <div class="col-sm-5">
 | 
			
		||||
    <h3>Recurring Jobs</h3>
 | 
			
		||||
  </div>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
<div class="container-fluid sidetiq-container">
 | 
			
		||||
  <div class="row-fluid">
 | 
			
		||||
<div class="container">
 | 
			
		||||
  <div class="row">
 | 
			
		||||
    <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_home_nav.erb')) %>
 | 
			
		||||
 | 
			
		||||
    <div class="span9">
 | 
			
		||||
    <div class="col-md-9">
 | 
			
		||||
      <% if @workers.length > 0 %>
 | 
			
		||||
      <table class="table table-striped table-bordered table-white" style="width: 100%; margin: 0; table-layout:fixed;">
 | 
			
		||||
        <thead>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue