-
Notifications
You must be signed in to change notification settings - Fork 71
/
administration.html.erb
66 lines (60 loc) · 2.53 KB
/
administration.html.erb
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
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="csrf-token" content="<%= form_authenticity_token %>" />
<meta name="csrf-param" content="authenticity_token" />
<title><%= "#{h(page_title)} @ #{h(Company.owner.name)}" %></title>
<%= stylesheet_link_tag 'project_website' %>
<% additional_stylesheets.each do |ss| -%>
<%= stylesheet_link_tag ss %>
<% end unless additional_stylesheets.nil? -%>
<%= javascript_include_tag 'jquery.js' %>
<%= javascript_include_tag 'jquery-ui.js' %>
<%= javascript_include_tag 'jrails.js' %>
<%= javascript_include_tag 'application.js' %>
<!-- head needs to go here? -->
</head>
<body id="body">
<div id="wrapper">
<!-- header -->
<div id="headerWrapper">
<div id="header">
<h1><%= link_to t('administration'), :controller => 'administration' %></h1>
<div id="userboxWrapper"><%= render :partial => 'layouts/user_box', :locals => {:user => @logged_user, :projects => @active_projects, :running_times => @running_times} %></div>
</div>
</div>
<!-- /header -->
<%= render :partial => 'layouts/tabs', :object => administration_tabbed_navigation %>
<div id="crumbsWrapper">
<div id="crumbsBlock">
<%= render :partial => 'layouts/crumbs', :object => administration_crumbs %>
</div>
</div>
<!-- content wrapper -->
<div id="outerContentWrapper">
<div id="innerContentWrapper">
<% if flash[:message] %>
<div id="<%= flash[:error] ? 'error' : 'success' %>" class="StatusMessage <%= flash[:error] ? 'flash_error' : 'flash_success' %>"><%= h flash[:message] %></div>
<% end %>
<h1 id="pageTitle"><%= h page_title %></h1>
<div id="pageContent">
<div id="content" <%= @content_for_sidebar.nil? ? '' : 'class=\'sidebar\'' %>>
<%= render :partial => 'layouts/actions' unless page_actions.nil? %>
<!-- Content -->
<%= yield %>
<!-- /Content -->
</div>
<% unless @content_for_sidebar.nil? %>
<div id="sidebar"><%= render :partial => @content_for_sidebar %></div>
<% end %>
<div class="clear"></div>
</div>
</div>
<!--Footer -->
<%= render :partial => 'layouts/footer' %>
</div>
<!-- /content wrapper -->
</div>
</body>
</html>