|
|
@@ -1,71 +1,20 @@ |
|
|
%html{ lang: 'en' } |
|
|
%head |
|
|
%meta{ charset: "utf-8" } |
|
|
%meta{ "http-equiv" => "X-UA-Compatible", charset: "IE=edge,chrome=1" } |
|
|
%meta{ name: "viewport", content: "width=device-width, initial-scale=1.0" } |
|
|
%title= "Sensu Documentation" |
|
|
- wrap_layout :layout do |
|
|
|
|
|
= stylesheet_link_tag "sensuapp" |
|
|
= favicon_tag "/img/ico/favicon.png" |
|
|
= partial "layouts/breadcrumbs" |
|
|
|
|
|
%link{ href: 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,300,400,600,700', rel: "stylesheet", type: "text/css" } |
|
|
%div.documentation |
|
|
= stylesheet_link_tag "documentation" |
|
|
%div.container |
|
|
%div.row |
|
|
%div.col-md-3.col-sm-4 |
|
|
= partial "layouts/toc" |
|
|
|
|
|
%body |
|
|
%div.col-md-9.col-sm-8{ id: "documentation" } |
|
|
|
|
|
%div |
|
|
// Breadcrumbs |
|
|
%div.container |
|
|
%hr |
|
|
%ul.breadcrumb |
|
|
%li |
|
|
%a{ href: "/docs" }= "Documentation" |
|
|
%span.divider= "/" |
|
|
= partial "layouts/alerts" |
|
|
|
|
|
- if current_resource.data.version |
|
|
%li |
|
|
- if current_resource.parent |
|
|
%a{ href: current_resource.parent.url }= current_resource.data.version |
|
|
%span.divider= "/" |
|
|
- else |
|
|
%a{ href: "#{}" }= current_resource.data.version |
|
|
%span.divider= "/" |
|
|
:preserve |
|
|
#{yield} |
|
|
|
|
|
%li.active |
|
|
#{current_resource.data.title} |
|
|
%span.divider= "/" |
|
|
= partial "layouts/suggestions" |
|
|
|
|
|
// Content |
|
|
%div.container |
|
|
%div.row-fluid |
|
|
- if current_resource.data.version? |
|
|
- unless current_resource.data.hide_toc |
|
|
%div.span3.well#toc |
|
|
= partial "/docs/#{current_resource.data.version}/index" |
|
|
|
|
|
%div.span9#documentation |
|
|
|
|
|
- if current_resource.data.danger |
|
|
%div.alert.alert-error= current_resource.data.danger |
|
|
|
|
|
- if current_resource.data.warning |
|
|
%div.alert.alert= current_resource.data.warning |
|
|
|
|
|
- if current_resource.data.info |
|
|
%div.alert.alert-info= current_resource.data.alert |
|
|
|
|
|
:preserve |
|
|
#{yield} |
|
|
|
|
|
// Suggestions |
|
|
%div.container#suggestions{ style: "margin-top: 30px;" } |
|
|
%div.row-fluid |
|
|
%div.span4{ style: "float: right;" } |
|
|
- if current_resource.data.next |
|
|
%a.button.btn.btn-large.btn-success.pull-right{ href: current_resource.data.next.url }= "Next: #{current_resource.data.next.text}" |
|
|
|
|
|
%div.container |
|
|
%hr |
|
|
|
|
|
= javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" |
|
|
= javascript_include_tag "bootstrap.js" |
|
|
= javascript_include_tag "header-rollover.js" |