summaryrefslogtreecommitdiff
path: root/app/views/layouts/application.html.haml
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
committergitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
commit9ba1224867665844b117fa037e1465bb706b3685 (patch)
tree52fbfc1cdb55df21843965479c97be0c91121a9a /app/views/layouts/application.html.haml
parent93efff945215a4407afcaf0cba15ac601b56df0d (diff)
downloadgitlab-ce-9ba1224867665844b117fa037e1465bb706b3685.tar.gz
init commit
Diffstat (limited to 'app/views/layouts/application.html.haml')
-rw-r--r--app/views/layouts/application.html.haml28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
new file mode 100644
index 00000000000..8ac413a1f44
--- /dev/null
+++ b/app/views/layouts/application.html.haml
@@ -0,0 +1,28 @@
+!!!
+%html
+ %head
+ %title
+ GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
+ = stylesheet_link_tag 'blueprint/screen', :media => "screen, projection"
+ = stylesheet_link_tag 'blueprint/print', :media => "print"
+ = stylesheet_link_tag 'blueprint/plugins/buttons/screen', :media => "screen, projection"
+ = stylesheet_link_tag 'blueprint/plugins/link-icons/screen', :media => "screen, projection"
+ = stylesheet_link_tag 'jquery_ui/jquery-ui-1.8.16.custom', :media => "screen, projection"
+ = stylesheet_link_tag "application"
+ = javascript_include_tag "application"
+ = csrf_meta_tags
+ %link{:href => "/assets/favicon.png", :rel => "icon", :type => "image/png"}/
+ = javascript_tag do
+ REQ_URI = "#{request.env["REQUEST_URI"]}";
+ REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
+ %body#thebody
+ = render :partial => "layouts/flash"
+ - if user_signed_in?
+ = render :partial => "layouts/head_panel"
+ .top_bar.container
+ = render :partial => "projects/top_menu" if @project && !@project.new_record?
+ = render :partial => "profile/top_menu" if ["keys", "profile"].include?(controller.controller_name)
+ = render :partial => "admin/top_menu" if admin_namespace?
+ #content-container.container
+ .span-24
+ = yield