added an admin index and layout
This commit is contained in:
parent
d6f230d15f
commit
f3ce935bb6
4
admin.rb
4
admin.rb
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
h1
|
|
@ -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')"
|
Loading…
Reference in New Issue