application.rhtml
3.13 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<%= javascript_include_tag 'prototype' %>
<%= javascript_include_tag 'tiny_mce/tiny_mce.js' %>
<%= javascript_include_tag 'scriptaculous' %>
<%= javascript_include_tag 'dragdrop' %>
<%= javascript_include_tag 'effects' %>
<%= javascript_include_tag 'noosfero_tiny_mce.js' %>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
theme_advanced_toolbar_location : "top",
});
</script>
<%= design_all_header_tags %>
<%= javascript_include_tag 'cms' %>
<% if params[:controller] == 'cms' %>
<%= stylesheet_link_tag 'cms' %>
<% end %>
<%= stylesheet_link_tag 'common' %>
<%= stylesheet_link_tag 'menu' %>
<%= javascript_include_tag 'menu' %>
</head>
<body onload='javascript: if (document.forms[0] != null && document.forms[0].elements[0] != null) { document.forms[0].elements[0].focus(); }'>
<% unless flash[:notice].nil? %>
<div id='notice'>
<%= flash[:notice] %>
<div class='button'>
<%= link_to_function( content_tag(:span, _('Close') ), visual_effect(:fade, "notice", :duration => 0.5), :id => 'button_close_notice' ) %>
</div>
</div>
<% end %>
<%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;", :alt => _('Image for Loading...') %>
<div id="wrap" class='category<%= category_color %>'>
<div id='noosfero_bar' class='category<%= category_color %>'>
<div id='accessibility_menu'>
<a href='#'>Acessibilidade</a>
<a href='#'>Central de Buscas</a>
<a href='#'>Ir para conteúdo</a>
</div><!-- accessibility_menu -->
<div id='navigation_bar'>
<%= render :file => 'shared/categories_menu' %>
</div><!-- id='navigation_bar' -->
<script type="text/javascript">
prepareMenu('navigation_bar', { timeout: 50 });
</script>
<div id='search_box'>
<form action="" method="GET">
<input type='text' name='q' value='sua busca aqui ...'>
<input type='submit' value='Buscar'>
</form>
</div><!-- id='search_box' -->
<div id="header">
<%= header %>
</div>
<% if @category %>
<div id='category'>
<%= @category.full_name %>
</div>
<% end %>
</div><!-- id="noosfero_bar" -->
<div id='content'>
<!-- <a name='main_content'/></a> -->
<!-- Aqui entra um conteudo tipo o titulo da pagina do usuário e os botoes do comatose? -->
<!--
<div id='header_content'>
</div>
-->
<% if params[:controller] == 'cms' %>
<div id='boxes'>
<%= yield %>
</div>
<% else %>
<%= design_display(yield) %>
<% end %>
</div><!-- id="content" -->
<div id="footer">
<!-- <a name='footer'/></a> -->
<%= footer %>
</div><!-- id="footer" -->
</div><!-- id="wrap" -->
</body>
</html>