X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/50b1cf56bf89fb9bb510481918d3c9d53a4bbad5..607f3a343ea400e558cc47a7c6dc508f9bafcfd2:/app/views/layouts/hc.rhtml
diff --git a/app/views/layouts/hc.rhtml b/app/views/layouts/hc.rhtml
new file mode 100644
index 0000000..4daac12
--- /dev/null
+++ b/app/views/layouts/hc.rhtml
@@ -0,0 +1,51 @@
+<% %>
+
+
+ <%= @page_title || "HyperChad" %>
+ <%= stylesheet_link_tag "hc", :media => "all" %>
+ <% #engine_stylesheet 'login_engine' %>
+
+ <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
+
+
+
+ <% if @page_title %>
+
<%= @page_title %>
+ <% else %>
+
HyperChad
+ Voting Machinery for the Masses
+ <% end %>
+
+
+ <% if session[:user] %>
+ Welcome <%= session[:user].login.capitalize %>
+ <% else %>
+ <%= link_to("Login",:controller => "user", :action => "login")
+ %>/<%= link_to("Sign up", :controller => "user", :action => "signup")%>
+ <% end %> |
+
+ <% if session[:user] %>
+ <%= link_to("Logout", :controller => "user", :action => "logout") %> |
+ <% end %>
+
+ <%= link_to("Help/About", :controller => "site", :action => "about") %>
+
+
+
+ <% if @flash[:notice]%>
+ <%= @flash[:notice] %>
+ <% end%>
+
+
+ <%= @content_for_layout %>
+
+
+
+
+
+