1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/layout.erb
Shane O'Grady 99506551d2 Replace jQuery.timeago (#3123)
* Remove jQuery.timeago

* Use new timeago.js library

This library is ~2KB, has no dependencies and includes several built-in locales.
It also updates the timestamp on the page in realtime.

* Set the timeago locale to the application locale

* Convert locale from hyphen to underscore

The localepassed by Rails/browser "Accept-Language" header needs to be
manipulated before being used by timeago.js
2016-09-20 10:15:31 -07:00

31 lines
1.1 KiB
Text

<!doctype html>
<html>
<head>
<title><%= environment_title_prefix %><%= Sidekiq::NAME %></title>
<meta charset="utf8" />
<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>
<meta name="google" content="notranslate" />
<%= display_custom_head %>
</head>
<body class="admin" data-poll-path="<%= poll_path %>" data-locale="<%= locale %>">
<%= erb :_nav %>
<div id="page">
<div class="container">
<div class="row">
<div class="col-sm-12 summary_bar">
<%= erb :_summary %>
</div>
<div class="col-sm-12">
<%= yield %>
</div>
</div>
</div>
</div>
<%= erb :_footer %>
</body>
</html>