X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/c65b1e11059c5cf510b54c785d4a246215058f70..b9f3bbdefb7bb1abd63193e2162aae1e78e1a1cb:/app/views/layouts/main.rhtml
diff --git a/app/views/layouts/main.rhtml b/app/views/layouts/main.rhtml
new file mode 100644
index 0000000..0b9d5cb
--- /dev/null
+++ b/app/views/layouts/main.rhtml
@@ -0,0 +1,52 @@
+<% %>
+
+
+ <%= @page_title || "Selectricity" %>
+ <%= stylesheet_link_tag "main", :media => "all" %>
+
+ <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
+
+
+
+ <% if @page_title %>
+
<%= @page_title %>
+ <% else %>
+
+ <% end %>
+
+
+ <% if session[:user] %>
+ Welcome <%= User.find(session[:user]).login.capitalize %>
+ <% else %>
+ <%= link_to("Login", :controller => "account", :action => "login")
+ %>/<%= link_to("Sign up", :controller => "account", :action => "signup")%>
+ <% end %> |
+
+ <% if session[:user] %>
+ <%= link_to("Logout", :controller => "account", :action => "logout") %> |
+ <% end %>
+
+ <%= link_to("Help/About", :controller => "site", :action => "about") %>
+
+
+
+ <% if flash[:notice]%>
+ <%= flash[:notice] %>
+ <% end%>
+
+
+ <%= @content_for_layout %>
+
+
+
+
+
+