0
0
Fork 0

added an admin index and layout

This commit is contained in:
Gibheer 2011-06-26 08:57:59 +02:00
parent d6f230d15f
commit f3ce935bb6
3 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,9 @@
class Admin < Sinatra::Base
set $settings
enable :sessions
set :haml, :layout => :admin_layout
get '/' do
'das Adminpanel! und <a href="/">zurueck</a>'
haml :admin_index
end
end

1
views/admin_index.haml Normal file
View File

@ -0,0 +1 @@
h1

11
views/admin_layout.haml Normal file
View File

@ -0,0 +1,11 @@
!!! 5
%html
%head
%title="zero-knowledge - Adminpanel"
%link{:rel => 'stylesheet', :href => '/stylesheet.css', :type => 'text/css'}
%script{:src => 'public/head.min.js'}
%body
#menu="Menue"
#content="Bereich oder so"
%script
="head.js('http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js','/public/admin.js')"