root/app/views/layouts/main.html.erb @ 8

Revision 8, 2.6 kB (checked in by falcon, 17 years ago)

Tweaks and upgrades, routes/paginate/etc

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
4  <head>
5    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6    <title>The Art of Engineering</title>
7    <%= stylesheet_link_tag 'style' %>
8    <%= stylesheet_link_tag 'scaffold' %>
9    <%= stylesheet_link_tag 'MultiUpload' %>
10    <%= stylesheet_link_tag 'lightbox' %>
11           
12    <%= javascript_include_tag 'controls' %>
13    <%= javascript_include_tag 'application' %>
14    <%= javascript_include_tag 'comboBox.js' %>
15    <%= javascript_include_tag 'multi_selector.js' %>
16    <%= javascript_include_tag 'mootools-1.2.js' %>
17    <%= javascript_include_tag "scriptaculous/lib/prototype.js" %>
18    <%= javascript_include_tag "scriptaculous/src/scriptaculous.js" %>
19    <%= javascript_include_tag "lightbox/lightbox.js" %>
20   
21  </head>
22  <body>
23 
24        <div id="Main">
25                <!-- <div id="BorderLeft" style="float: left; width: 68px; "> 
26                        <%= image_tag ( "block-test.png ") %>
27                </div> -->
28                <div id="InnerMain" >
29                        <div id="Header" style="
30                                /*background-image: url('/images/Header<%= ((rand(10) % 5) + 1).to_s %>.jpg');*/
31                                background-image: url('/images/Header1.jpg');
32                        "></div>
33                        <div id="Sidebar">
34                                <h3><%= link_to "Bio", :controller => "Main", :action => "bio" %></h3>
35                                <h3><a href="/Artwork/">Art</a></h3>
36                                <% if @sidebar == "Artwork" %>
37                                        <% for gallery in @galleries %>
38                                                <span>» <%= link_to gallery.sTitle, :action => "show", :params => {:id => gallery.id} %></a></span><br/>
39                                        <% end %>                               
40                                <% end %>
41                                <h3><a href="/Engineering/">Engineering</a></h3>
42                                <% if @sidebar == "Engineering" %>
43                                        <% for gallery in @galleries %>
44                                                <span>» <a href="#<%= gallery.sTitle.to_s + "_" + gallery.id.to_s %>"><%= gallery.sTitle %></span><br/>
45                                        <% end %>
46                                <% end %>
47                                <h3><%= link_to "Contact", :controller => "Main", :action => "contact" %></h3>
48                        </div> <!-- end Sidebar -->
49                        <div id="Title">
50                                <h1><a href="/">The Art of Engineering</a><h1>
51                                <p>Computers, Art, and Everything in Between...</>
52                        </div> <!-- end Title -->
53
54                        <div id="Content">
55                               
56                                        <%= yield  %>
57
58                        </div> <!-- end Content -->
59                        <div class="divclear"></div>
60                        <div id="Footer">
61                                <% if logged_in? %>
62                                        <span>[<%= link_to 'Logout', :controller => "account", :action => "logout" %>] | </span>
63                                <% end %>
64                                <p><span>[<a href="">xhtml</a>] | [<a href="">css</a>]</span></p>
65                        </div> <!-- end Footer -->
66                </div> <!-- end InnerMain-->
67        </div> <!-- end Main -->
68  </body>
69</html>
Note: See TracBrowser for help on using the browser.