/
application.html.erb
110 lines (102 loc) · 4.56 KB
/
application.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><%= title :append_site_name => true %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="<%= @description %>" />
<meta name="keywords" content="red,social" />
<meta name="author" content="atd, nogates / Design: Gnoyxs - http://www.gnoxys.net/" />
<% if @openid_server_agent -%>
<meta http-equiv="X-XRDS-Location" content="<%= formatted_polymorphic_url([ @openid_server_agent, :xrds ]) -%>" />
<link rel="openid.server" href="<%= openid_server_url -%>" />
<link rel="openid2.provider" href="<%= openid_server_url -%>" />
<% end -%>
<%= stylesheet_link_tag "move", :media => 'all', :plugin => 'cmsplugin' %>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag "move", :plugin => 'cmsplugin' %>
<%= javascript_include_tag "fckeditor/fckeditor" if @uses_fckeditor %>
<%= calendar_date_select_includes %>
<% if @collection_path -%>
<link href="<%= @collection_path + '.atom' %>" rel="alternate" title="<%= @title %>" type="application/atom+xml" />
<% end -%>
<% if false # @space %>
<link rel="icon" href="<%= @space.logo.public_filename('icon') %>" type="image/x-icon">
<% end -%>
<% if false -%>
<link rel="service" type="application/atomsvc+xml" href="<%= url_for :controller => :users, :action => :show, :id => current_user.id, :format => "atomsvc", :only_path => false %>" />
<% end -%>
</head>
<body onload="onLoadPage();">
<!-- open wrap -->
<div id="wrap">
<!-- logo -->
<div id="meta">
<div id="meta_top">
<span class="site_title"><%= site.name %></span>
</div>
<div id="meta_center">
<%=
#image_tag 'move_static.png', :plugin => 'cmsplugin', :alt => "[move static logo]", :id => "move_logo", :onclick => "this.src='#{ image_path('move_dynamic.gif', :plugin => 'cmsplugin') }';"
%>
</div>
<div id="meta_bottom">
<% if authenticated? -%>
<%= link_to(t(:logout), logout_path, {:id => "logout"} ) %>
<% if authorized?(:site, :update) -%>
<%= link_to(t(:"site.config"), site_path, {:id => "site_config"}) %>
<% end -%>
<% else -%>
<%= link_to(t(:login), login_path) %>
<%= link_to(t(:join), new_user_path) %>
<% end -%>
</div>
</div>
<!-- containers -->
<%= menu_box(:containers) { |item| "#{ link_to(image_tag(icon_image(item), :alt => item.name + ' logo'), item) }<span class=\"box_unit_title\">#{ link_to item.name, item }</span>" } %>
<!-- agents -->
<%= menu_box(:agents) { |item| "#{ link_to(image_tag(icon_image(item), :alt => item.name + ' logo'), item) }<span class=\"box_unit_title\">#{ link_to item.name, item }</span>" } %>
<!-- open menu content div -->
<div id="contents">
<!-- top menu content decoration, close it -->
<div id="contents_top"></div>
<!-- menu content center -->
<div id="contents_center">
<!-- menu content inside wrapper -->
<div id="contents_center_inside">
<%= yield :contents_menu %>
<!-- close menu content inside -->
</div>
<!-- cloose menu content center -->
</div>
<!-- bottom menu content decoration, close it -->
<div id="contents_bottom"></div>
<!-- close menu content -->
</div>
<!-- open the interaction_screen -->
<div id="interaction_screen">
<!-- top interaction screen decoration, close it -->
<div id="interaction_screen_top"></div>
<!-- interaction screen center -->
<div id="interaction_screen_center">
<!-- interaction screen wrapper -->
<div id="interaction_screen_center_inside">
<%= notification_area %>
<%= yield %>
<!-- close interaction screen wrapper -->
</div>
<!-- cloose interaction screen center -->
</div>
<!-- bottom interaction screen decoration, close it -->
<div id="interaction_screen_bottom"></div>
<!-- cloose interaction screen -->
</div>
<!-- open footer -->
<div id="footer">
<%= t(:layout_footnote, :site => link_to(site.name, root_path), :plugin => link_to('CMSplugin','http://rubyforge.org/projects/cmsplugin/'), :designer => link_to('Gnoxys','http://www.gnoxys.net/')) %>
<!-- cloose footer -->
</div>
<!-- close wrap -->
</div>
</body>
</html>