[9d35f2]: app / views / layouts / application.haml  Maximize  Restore  History

Download this file

57 lines (56 with data), 2.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
- if @use_transitional
!!!
- else
!!! Strict
%html{ :xmlns => 'http://www.w3.org/1999/xhtml', 'xml:lang' => 'en', :lang => 'en' }
%head
%title= @page_title
%meta{ 'http-equiv' => 'Content-Language', 'content' => 'en-us' }/
%meta{ 'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=utf-8' }/
%link{ :rel => 'shortcut icon', :href => '/favicon.ico', :type => 'image/x-icon' }/
= stylesheet_link_tag('reset-fonts-grids')
= stylesheet_link_tag('application')
= javascript_include_tag('prototype')
= javascript_include_tag('application')
= yield :head
%body{ :id => "#{controller.controller_name}__#{@action_name}" }
#doc
#hd
.headerTitle= link_to('<span>'+SystemSetting["installation_name"]+'</span>', :controller => '/dashboard')
.headerUserControls
%span
%script{ :type => 'text/javascript' } if(is_authenticated()) document.write('User: ' + get_username())
= link_to('Logout', {:controller => '/security', :action => 'logout'}, {:method => :post, :id => 'logout'})
= link_to('Login', {:controller => '/security', :action => 'login'}, :id => 'login')
%script{ :type => 'text/javascript' } if(is_authenticated()) Element.hide('login'); else Element.hide('logout')
.clearer
.subHeader
%span.doNotDisplay Quick Links:
%p
= link_to( 'Home', :controller => '/dashboard', :action => 'index' )
|
= link_to( 'Hosts', :controller => '/results/host', :action => 'list' )
|
= link_to( 'Search', :controller => 'results/test_case_execution', :action => 'list_by_matching_output' )
|
= link_to( 'Compare', :controller => 'results/compare_runs', :action => 'compare_two_runs' )
%span#admin_link
|
= link_to( 'Administration', :controller => '/admin/dashboard', :action => 'index')
%script{ :type => 'text/javascript' } if(!is_admin()) Element.hide('admin_link')
#bd
%table.layout
%tr
- menu = menu_name
- if menu
%td.menu= render(:partial => menu)
%td
.main-copy
= yield :breadcrumbs
= render(:partial => '/common/flash_messages')
= yield
#ft= "Powered by CatTrack (Version \##{db_version})."
- if RAILS_ENV == 'development'
%center
%button{ :onclick => 'show_debug_popup(); return false;' } Show debug popup
= debug_popup