Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (74 sloc) 2.95 KB
!!! XML
!!! 1.1
%html(xmlns="http://www.w3.org/1999/xhtml")
%head
%meta(http-equiv="Content-Type" content="text/html; charset=utf-8" )
%meta(http-equiv="expires" content="0" )
%meta(http-equiv="Content-Script-Type" content="text/javascript" )
%meta(http-equiv="Content-Style-Type" content="text/css" )
%meta(http-equiv="X-UA-Compatible" content="IE=8")
%meta(name="author" content="MyAppAuthor")
%link(rel="icon" type="image/png" href="/favicon.png")
%title Sol, an open source hosting platform for Ruby apps
%link(type="text/css" rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-1.2.0.min.css")
%link(type="text/css" rel="stylesheet" href="/css/style.css")
%link(type="text/css" href='http://fonts.googleapis.com/css?family=Montez|Josefin+Sans' rel='stylesheet')
%link(type="text/css" rel="stylesheet" href="/css/landing.css")
%script(type="text/javascript" src="/js/jquery.js")
%script(type="text/javascript" src="/js/bootstrap.js")
%script(type="text/javascript" src="/js/application.js")
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25630518-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
%body{id:@action}
%div.topbar-wrapper{:style => "z-index: 5;"}
%div.topbar
%div.fill
%div.container
%h3.main_title
%a{:href => "/"} Sol
%ul
- if (@active == "root")
%li.active
%a{:href => "/"} Home
%li
%a{:href => "/about"} About
%li
%a{:href => "/contact"} Contact
- elsif (@active == "about")
%li
%a{:href => "/"} Home
%li.active
%a{:href => "/about"} About
%li
%a{:href => "/contact"} Contact
- elsif (@active == "contact")
%li
%a{:href => "/"} Home
%li
%a{:href => "/about"} About
%li.active
%a{:href => "/contact"} Contact
%div.container
%div.content
- if flash[:error]
%div.alert-message.error
%a.close{:href => "#"} ×
%p
%strong Error
= flash[:error]
- if flash[:notice]
%div.alert-message.success
%a.close{:href => "#"} ×
%p= flash[notice]
- if flash[:warning]
%div.alert-message.warning
%a.close{:href => "#"} ×
%p= flash[:warning]
= yield