application-ng.rhtml
3.55 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= html_language %>" lang="<%= html_language %>">
<head>
<title><%= h page_title %></title>
<%= yield(:feeds) %>
<!--<meta http-equiv="refresh" content="1"/>-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="<%= @environment.name %>" />
<link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
<%= noosfero_javascript %>
<%= stylesheet_link_tag noosfero_stylesheets, :cache => 'cache' %>
<%= stylesheet_link_tag template_stylesheet_path %>
<%= stylesheet_link_tag icon_theme_stylesheet_path %>
<%= stylesheet_link_tag theme_stylesheet_path %>
<%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %>
<%# Add custom tags/styles/etc via content_for %>
<%= yield :head %>
<%= javascript_tag('render_all_jquery_ui_widgets()') %>
</head>
<body class="<%=
# Identify the current controller and action for the CSS:
" controller-"+ @controller.controller_name() +
" action-"+ @controller.controller_name() +"-"+ @controller.action_name() +
" template-"+ ( profile.nil? ? "default" : profile.layout_template )
%>" >
<a href="#content" id="link-go-content"><span><%= _("Go to the content") %></span></a>
<div id="wrap-1">
<div id='theme-header'>
<%= theme_header %>
</div>
<div id="wrap-2">
<div id="user">
<span class='logged-in' style='display: none;'>
<%= usermenu_logged_in %>
</span>
<span class='not-logged-in' style='display: none'>
<%= _('%s or %s') % [thickbox_inline_popup_link('<i class="icon-menu-login"></i><strong>' + _('Login') + '</strong>', login_url, 'inlineLoginBox', :id => 'link_login'), link_to('<strong>' + _('Register') + '</strong>', :controller => 'account', :action => 'signup') ] %>
<div id='inlineLoginBox' style='display: none;'>
<%= render :file => 'account/login', :locals => { :is_thickbox => true } %>
</div>
</span>
<form action="/search" class="search_form" method="get" class="clean">
<input name="query" size="15" value="<%=_('Search...')%>"
onfocus="this.form.className='focused';
if(this.value=='<%=_('Search...')%>'){this.value=''}"
onblur="this.form.className='';
if(/^\s*$/.test(this.value)){
this.value='<%=_('Search...')%>';
this.form.className='clean'
}" />
<div><%=_('Press <strong>Enter</strong> to send the search query.')%></div>
</form>
</div><!-- end id="user" -->
<h1 id="site-title">
<%= theme_site_title %>
</h1>
<div id="navigation">
<ul>
<%= theme_extra_navigation %>
</ul>
<div id="navigation-end"></div>
</div><!-- end id="navigation" -->
<div id="content">
<%= insert_boxes(yield) %>
<br style='clear: both'/>
</div><!-- end id="content" -->
</div><!-- end id="wrap-2" -->
</div><!-- end id="wrap-1" -->
<%= render_environment_features(:logged_in) %>
<div id="theme-footer">
<%= theme_footer %>
</div><!-- end id="theme-footer" -->
<%= noosfero_layout_features %>
<%= theme_javascript_ng %>
</body>
</html>