@@ -1,123 +1,123 | |||||
1 | <!DOCTYPE html> |
|
1 | <!DOCTYPE html> | |
2 | <html lang="<%= current_language %>"> |
|
2 | <html lang="<%= current_language %>"> | |
3 | <head> |
|
3 | <head> | |
4 | <meta charset="utf-8" /> |
|
4 | <meta charset="utf-8" /> | |
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
|
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
6 | <title><%= html_title %></title> |
|
6 | <title><%= html_title %></title> | |
7 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
|
7 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
8 | <meta name="description" content="<%= Redmine::Info.app_name %>" /> |
|
8 | <meta name="description" content="<%= Redmine::Info.app_name %>" /> | |
9 | <meta name="keywords" content="issue,bug,tracker" /> |
|
9 | <meta name="keywords" content="issue,bug,tracker" /> | |
10 | <%= csrf_meta_tag %> |
|
10 | <%= csrf_meta_tag %> | |
11 | <%= favicon %> |
|
11 | <%= favicon %> | |
12 | <%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', 'responsive', :media => 'all' %> |
|
12 | <%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', 'responsive', :media => 'all' %> | |
13 | <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> |
|
13 | <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> | |
14 | <%= javascript_heads %> |
|
14 | <%= javascript_heads %> | |
15 | <%= heads_for_theme %> |
|
15 | <%= heads_for_theme %> | |
16 | <%= call_hook :view_layouts_base_html_head %> |
|
16 | <%= call_hook :view_layouts_base_html_head %> | |
17 | <!-- page specific tags --> |
|
17 | <!-- page specific tags --> | |
18 | <%= yield :header_tags -%> |
|
18 | <%= yield :header_tags -%> | |
19 | </head> |
|
19 | </head> | |
20 | <body class="<%= body_css_classes %>"> |
|
20 | <body class="<%= body_css_classes %>"> | |
21 | <div id="wrapper"> |
|
21 | <div id="wrapper"> | |
22 |
|
22 | |||
23 | <div class="flyout-menu js-flyout-menu"> |
|
23 | <div class="flyout-menu js-flyout-menu"> | |
24 |
|
24 | |||
25 |
|
25 | |||
26 | <% if User.current.logged? || !Setting.login_required? %> |
|
26 | <% if User.current.logged? || !Setting.login_required? %> | |
27 | <div class="flyout-menu__search"> |
|
27 | <div class="flyout-menu__search"> | |
28 | <%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> |
|
28 | <%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> | |
29 | <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> |
|
29 | <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> | |
30 | <%= label_tag 'flyout-search', '⚲'.html_safe, :class => 'search-magnifier search-magnifier--flyout' %> |
|
30 | <%= label_tag 'flyout-search', '⚲'.html_safe, :class => 'search-magnifier search-magnifier--flyout' %> | |
31 | <%= text_field_tag 'q', @question, :id => 'flyout-search', :class => 'small js-search-input', :placeholder => l(:label_search) %> |
|
31 | <%= text_field_tag 'q', @question, :id => 'flyout-search', :class => 'small js-search-input', :placeholder => l(:label_search) %> | |
32 | <% end %> |
|
32 | <% end %> | |
33 | </div> |
|
33 | </div> | |
34 | <% end %> |
|
34 | <% end %> | |
35 |
|
35 | |||
36 | <% if User.current.logged? %> |
|
36 | <% if User.current.logged? %> | |
37 | <div class="flyout-menu__avatar <% if !Setting.gravatar_enabled? %>flyout-menu__avatar--no-avatar<% end %>"> |
|
37 | <div class="flyout-menu__avatar <% if !Setting.gravatar_enabled? %>flyout-menu__avatar--no-avatar<% end %>"> | |
38 | <% if Setting.gravatar_enabled? %> |
|
38 | <% if Setting.gravatar_enabled? %> | |
39 | <%= link_to(avatar(User.current, :size => "80"), user_path(User.current)) %> |
|
39 | <%= link_to(avatar(User.current, :size => "80"), user_path(User.current)) %> | |
40 | <% end %> |
|
40 | <% end %> | |
41 | <%= link_to_user(User.current, :format => :username) %> |
|
41 | <%= link_to_user(User.current, :format => :username) %> | |
42 | </div> |
|
42 | </div> | |
43 | <% end %> |
|
43 | <% end %> | |
44 |
|
44 | |||
45 | <% if display_main_menu?(@project) %> |
|
45 | <% if display_main_menu?(@project) %> | |
46 | <h3><%= l(:label_project) %></h3> |
|
46 | <h3><%= l(:label_project) %></h3> | |
47 | <span class="js-project-menu"></span> |
|
47 | <span class="js-project-menu"></span> | |
48 | <% end %> |
|
48 | <% end %> | |
49 |
|
49 | |||
50 | <h3><%= l(:label_general) %></h3> |
|
50 | <h3><%= l(:label_general) %></h3> | |
51 | <span class="js-general-menu"></span> |
|
51 | <span class="js-general-menu"></span> | |
52 |
|
52 | |||
53 | <span class="js-sidebar flyout-menu__sidebar"></span> |
|
53 | <span class="js-sidebar flyout-menu__sidebar"></span> | |
54 |
|
54 | |||
55 | <h3><%= l(:label_profile) %></h3> |
|
55 | <h3><%= l(:label_profile) %></h3> | |
56 | <span class="js-profile-menu"></span> |
|
56 | <span class="js-profile-menu"></span> | |
57 |
|
57 | |||
58 | </div> |
|
58 | </div> | |
59 |
|
59 | |||
60 | <div id="wrapper2"> |
|
60 | <div id="wrapper2"> | |
61 | <div id="wrapper3"> |
|
61 | <div id="wrapper3"> | |
62 | <div id="top-menu"> |
|
62 | <div id="top-menu"> | |
63 | <div id="account"> |
|
63 | <div id="account"> | |
64 | <%= render_menu :account_menu -%> |
|
64 | <%= render_menu :account_menu -%> | |
65 | </div> |
|
65 | </div> | |
66 | <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %> |
|
66 | <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %> | |
67 | <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> |
|
67 | <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> | |
68 | </div> |
|
68 | </div> | |
69 |
|
69 | |||
70 | <div id="header"> |
|
70 | <div id="header"> | |
71 |
|
71 | |||
72 | <a href="#" class="mobile-toggle-button js-flyout-menu-toggle-button"></a> |
|
72 | <a href="#" class="mobile-toggle-button js-flyout-menu-toggle-button"></a> | |
73 |
|
73 | |||
74 | <% if User.current.logged? || !Setting.login_required? %> |
|
74 | <% if User.current.logged? || !Setting.login_required? %> | |
75 | <div id="quick-search"> |
|
75 | <div id="quick-search"> | |
76 | <%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> |
|
76 | <%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %> | |
77 | <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> |
|
77 | <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> | |
78 | <label for='q'> |
|
78 | <label for='q'> | |
79 | <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>: |
|
79 | <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>: | |
80 | </label> |
|
80 | </label> | |
81 | <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> |
|
81 | <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> | |
82 | <% end %> |
|
82 | <% end %> | |
83 | <%= render_project_jump_box %> |
|
83 | <%= render_project_jump_box %> | |
84 | </div> |
|
84 | </div> | |
85 | <% end %> |
|
85 | <% end %> | |
86 |
|
86 | |||
87 | <h1><%= page_header_title %></h1> |
|
87 | <h1><%= page_header_title %></h1> | |
88 |
|
88 | |||
89 | <% if display_main_menu?(@project) %> |
|
89 | <% if display_main_menu?(@project) %> | |
90 | <div id="main-menu"> |
|
90 | <div id="main-menu"> | |
91 | <%= render_main_menu(@project) %> |
|
91 | <%= render_main_menu(@project) %> | |
92 | </div> |
|
92 | </div> | |
93 | <% end %> |
|
93 | <% end %> | |
94 | </div> |
|
94 | </div> | |
95 |
|
95 | |||
96 | <div id="main" class="<%= sidebar_content? ? '' : 'nosidebar' %>"> |
|
96 | <div id="main" class="<%= sidebar_content? ? '' : 'nosidebar' %>"> | |
97 | <div id="sidebar"> |
|
97 | <div id="sidebar"> | |
98 | <%= yield :sidebar %> |
|
98 | <%= yield :sidebar %> | |
99 | <%= view_layouts_base_sidebar_hook_response %> |
|
99 | <%= view_layouts_base_sidebar_hook_response %> | |
100 | </div> |
|
100 | </div> | |
101 |
|
101 | |||
102 | <div id="content"> |
|
102 | <div id="content"> | |
103 | <%= render_flash_messages %> |
|
103 | <%= render_flash_messages %> | |
104 | <%= yield %> |
|
104 | <%= yield %> | |
105 | <%= call_hook :view_layouts_base_content %> |
|
105 | <%= call_hook :view_layouts_base_content %> | |
106 | <div style="clear:both;"></div> |
|
106 | <div style="clear:both;"></div> | |
107 | </div> |
|
107 | </div> | |
108 | </div> |
|
108 | </div> | |
109 | </div> |
|
109 | </div> | |
110 |
|
110 | |||
111 | <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> |
|
111 | <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> | |
112 | <div id="ajax-modal" style="display:none;"></div> |
|
112 | <div id="ajax-modal" style="display:none;"></div> | |
113 |
|
113 | |||
114 | <div id="footer"> |
|
114 | <div id="footer"> | |
115 | <div class="bgl"><div class="bgr"> |
|
115 | <div class="bgl"><div class="bgr"> | |
116 |
Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-201 |
|
116 | Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-2017 Jean-Philippe Lang | |
117 | </div></div> |
|
117 | </div></div> | |
118 | </div> |
|
118 | </div> | |
119 | </div> |
|
119 | </div> | |
120 | </div> |
|
120 | </div> | |
121 | <%= call_hook :view_layouts_base_body_bottom %> |
|
121 | <%= call_hook :view_layouts_base_body_bottom %> | |
122 | </body> |
|
122 | </body> | |
123 | </html> |
|
123 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now