summaryrefslogtreecommitdiff
path: root/app/views/layouts/admin.html.erb
blob: 469b18e4ad74748b58c84559e6c0ad7c683b840c (plain)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  
    <title><%= "#{params[:controller]} | #{params[:action]}" %></title>
    <%= stylesheet_link_tag 'admin' %>
    <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %>
    <%= javascript_include_tag 'jquery-1.3.2.min' %>
    <%= javascript_include_tag 'admin_interface.js' %>
    
    <script type="text/javascript">
    tinyMCE.init({
      theme: "advanced",
      mode : "specific_textareas",
      editor_selector : "with_editor",
      theme_advanced_toolbar_location : "top",
      theme_advanced_toolbar_align : "left",
      theme_advanced_buttons1 : "bold, italic, underline, bullist, numlist, link, unlink, formatselect, code",
      theme_advanced_buttons2 : "",
      theme_advanced_buttons3 : "",
      extended_valid_elements : "aggregate[tags|limit|order_by|order_direction|partial]",
      relative_urls : false,
      entity_encoding : "raw"
    });
    </script>
  </head>
  
  <body>
    <div id="wrapper">
      <div id="navigation">
        <%= render :partial => 'admin/menu' if current_user %>
      </div>
      <div id="subnavigation">
        <%= yield :subnavigation %>
      </div>
      <div style="clear: both"></div>
      <div id="flash">
        <%= flash[:notice] %>
      </div>
      <div id="content">
        <%= yield :layout %>
      </div>
    </div>
  </body>
</html>