2010-01-21 06:25:44 +00:00
|
|
|
!!! Strict
|
|
|
|
%html
|
|
|
|
%head
|
|
|
|
%title
|
|
|
|
#{@item[:title]} - Compass
|
|
|
|
%meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
|
2010-03-28 06:22:40 +00:00
|
|
|
- if @item[:meta_description]
|
|
|
|
%meta{:name => "description", :content => @item[:meta_description]}
|
2010-03-28 04:17:16 +00:00
|
|
|
%link(rel="shortcut icon" type="image/png" href="/docs/images/compass_icon.png")
|
2010-01-28 09:11:42 +00:00
|
|
|
%link{ :href => "/docs/stylesheets/main.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
|
|
|
%link{ :href => "/docs/stylesheets/ui-lightness/jquery-ui-1.7.2.custom.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
|
|
|
%script{:src => "/docs/javascripts/jquery-1.3.2.min.js", :type => "text/javascript"}
|
|
|
|
%script{:src => "/docs/javascripts/jquery-ui-1.7.2.custom.min.js", :type => "text/javascript"}
|
2010-01-21 19:54:47 +00:00
|
|
|
%body{body_attributes(@item)}
|
2010-01-21 06:25:44 +00:00
|
|
|
#container
|
|
|
|
#main
|
|
|
|
= yield
|
|
|
|
#sidebar
|
2010-02-03 16:02:27 +00:00
|
|
|
= render "partials/sidebar"
|
2010-01-24 09:34:05 +00:00
|
|
|
#footer= @item[:content_for_footer]
|
|
|
|
:javascript
|
|
|
|
$(function(){
|
2010-03-17 15:41:30 +00:00
|
|
|
$('span.color').each(function(i,e){
|
|
|
|
e = $(e);
|
|
|
|
e.after('<span class="swatch" style="background-color:'+e.text()+';"></span>');
|
2010-01-24 09:34:05 +00:00
|
|
|
});
|
2010-03-29 06:06:56 +00:00
|
|
|
$('span.arg[data-default-value]').each(function(i,e){
|
|
|
|
e = $(e);
|
|
|
|
e.attr("title", "Defaults to: " + e.attr("data-default-value"))
|
|
|
|
})
|
2010-01-24 09:34:05 +00:00
|
|
|
});
|
2010-03-28 04:17:53 +00:00
|
|
|
= render "partials/analytics"
|