public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
mephisto / app / views / layouts / application.rhtml
100644 102 lines (91 sloc) 3.683 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
<!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">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title><%= site.title %>: Admin <%= controller.controller_name %></title>
    <%= stylesheet_link_tag 'mephisto/mephisto' %>
    <%= javascript_include_tag 'mephisto/prototype', 'mephisto/effects', 'mephisto/dragdrop', 'mephisto/lowpro', 'mephisto/application' %>
    <script type="text/javascript">Mephisto.root = '<%= ActionController::AbstractRequest.relative_url_root %>';</script>
    <%= yield :head %>
  </head>
  <body>
  
    <!-- div.header -->
    <div id="header">
      <ul id="sec-nav">
        <li><strong><%= link_to 'Website', dispatch_path([]) %></strong></li>
      <% if admin? -%>
        <li><%= link_to 'Settings', :controller => 'settings' %></li>
      <% end -%>
        <li><%= link_to 'Account', :controller => 'users', :action => 'show', :id => current_user %></li>
        <li><%= link_to 'Logout', :controller => '/account', :action => 'logout' %></li>
      </ul>
 
      <h1><%= link_to "#{site.title} &mdash; Admin", { :controller => '/admin/overview' }, :title => "#{site.title} admin" %></h1>
 
      <!-- div.nav -->
      <div id="nav">
        <% if logged_in? -%>
          <ul>
            <li><%= link_to 'Overview', :controller => '/admin/overview' %></li>
            <li><%= link_to 'Articles', :controller => '/admin/articles' %></li>
            <li><%= link_to 'Assets', :controller => '/admin/assets' %></li>
          <% Mephisto::Plugin.tabs.each do |tab| -%>
            <li><%= link_to tab.first, tab.last %></li>
          <% end -%>
          </ul>
          <% if admin? -%>
          <ul id="nav-r">
            <li><%= link_to 'Sections', :controller => '/admin/sections' %></li>
            <li><%= link_to 'Design', :controller => '/admin/design' %></li>
            <li><%= link_to "Users", :controller => "users" %></li>
            <li><%= link_to 'Plugins', :controller => '/admin/plugins' %></li>
          <% Mephisto::Plugin.admin_tabs.each do |tab| -%>
            <li><%= link_to tab.first, tab.last %></li>
          <% end -%>
          </ul>
          <% end -%>
        <% end -%>
      </div>
      <!-- /div.nav -->
      
      <!-- TODO: Figure out where to put this
<div id="search">
<form action="#">
<input type="text" name="q" />
<select name="context">
<%= options_for_select %w(Comments Articles) %>
</select>
</form>
</div>
-->
      
    </div>
    <!-- /div.header -->
    
 
    <div id="container">
      <%= yield :form if @content_for_form %>
      <!-- div.content -->
      <div id="content">
        
        <!-- div.left -->
        <div id="main">
          <div id="flashes">
            <div id="flash-errors" style="display: none;"><%= flash[:error] %></div>
            <div id="flash-notice" style="display:none"><%= flash[:notice] %></div>
          </div>
          <!-- begin action nav -->
          <%= yield :action_nav %>
          <!-- /end action nav -->
          <div id="main-content"><%= yield %></div>
          <div id="shadow"></div>
        </div>
        <!-- /div.left -->
        
        <!-- div.right -->
        <div id="sbar">
          <%= yield :sidebar %>
        </div>
        <!-- /div.right -->
      </div>
      <!-- /div.content -->
      <%= '</form>' if @content_for_form %>
      
      <!-- begin div.footer -->
      <div id="footer">
 
      </div>
    </div>
  </body>
</html>