mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
9ea167db16
Migrate Sidekiq::Web a pure Rack application to avoid sinatra as dependency. rack-protection is still needed. The application is mounted on top of Rack::Builder, mantaining all of the previous http interface. Rack apps being used: - Rack::File to serve assets - Rack::Session::Cookie, the secret can be configured via Sidekiq::Web.session_secret - Rack::Protection, same as before when using sinatra - Sidekiq::WebApplication, described below. Sidekiq::WebApplication is a very simple rack application composed of a Sidekiq::WebRouter and a Sidekiq::WebAction dispatcher. This terminology was adopted to be able to mantain Sidekiq::Web as a Rack app. The Router is heavily inspired on Rack::Router[0] (and in many parts identical), however not being retrocompatible. The Action is a wrapper to provide convenience, DRY code and maintain the old interface. I tried to mantain most of the old application structures so that customizations and monkey-patches are easily adjustable or even further work be done to enforce retrocompatibility. Testing welcome! 0: https://github.com/pjb3/rack-router
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title><%= environment_title_prefix %><%= Sidekiq::NAME %></title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
<link href="<%= root_path %>stylesheets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<link href="<%= root_path %>stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<link rel="shortcut icon" type="image/ico" href="<%= root_path %>images/favicon.ico" />
|
|
<script type="text/javascript" src="<%= root_path %>javascripts/application.js"></script>
|
|
<script type="text/javascript" src="<%= root_path %>javascripts/locales/jquery.timeago.<%= locale %>.js"></script>
|
|
<meta name="google" content="notranslate" />
|
|
<%= display_custom_head %>
|
|
</head>
|
|
<body class="admin">
|
|
<%= partial :nav %>
|
|
<div id="page">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-12 summary_bar">
|
|
<%= partial :summary %>
|
|
</div>
|
|
|
|
<div class="col-sm-12">
|
|
<%= yield %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%= partial :footer %>
|
|
<%= partial :poll_js %>
|
|
</body>
|
|
</html>
|