Skip to content

Instantly share code, notes, and snippets.

@turingmachine
Created May 11, 2009 15:46
Show Gist options
  • Save turingmachine/110030 to your computer and use it in GitHub Desktop.
Save turingmachine/110030 to your computer and use it in GitHub Desktop.
!!! XML
!!! Strict
%html{ html_attrs('en-us') }
%head
%meta{'http-equiv' => 'Content-Type', :content => 'text/html'}
%title cinemaniacs
= stylesheet_link_tag 'base'
= stylesheet_link_tag 'themes/default/style.css'
= javascript_include_tag :defaults
= javascript_include_tag 'cinemaniacs'
%body
#container
- if logged_in?
#header
%span#userbar
%h1= link_to 'Cinemaniacs', '/'
#user-navigation
%ul
%li.first= link_to 'Admin', '/admin/movies'
%li= link_to 'Admin', '/admin/movies'
%li= link_to 'Downloads', '/downloads'
%li= link_to 'Rules', '/rules'
%li= link_to 'Logout', '/logout'
.clear
#main-navigation
%ul
%li.first= link_to 'Dashboard', '/dashboard'
%li= link_to 'Music', '/music'
%li= link_to 'Movies', '/movies'
%li= link_to 'Software', '/software'
.clear
#wrapper
#main
- if flash[:notice]
.notice.flash-messages.fade-and-hide
p= flash[:notice]
- if flash[:error]
.error.flash-messages.fade-and-hide
p= flash[:error]
= yield
#sidebar
= render :partial => 'sidebar'
.clear
#footer
.block
%p Cinemaniacs! admin at cinemaniacs dot org
- else
= yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment