aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-10-20 22:32:19 +0200
committerHarald Eilertsen <haraldei@anduin.net>2013-10-20 22:32:19 +0200
commit2652e9bb2dcc8a0eaf2e314a6107c52d8b3b6469 (patch)
tree6bc8d0adb0ef88d11ab9a724b8c612dc6a96b80e /app/views
parent05db001fe9211d66d2ee02484635af478a308ccc (diff)
downloadhmnoweb-2652e9bb2dcc8a0eaf2e314a6107c52d8b3b6469.tar.gz
hmnoweb-2652e9bb2dcc8a0eaf2e314a6107c52d8b3b6469.tar.bz2
hmnoweb-2652e9bb2dcc8a0eaf2e314a6107c52d8b3b6469.zip
Basic simple styling.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/common/_left_sidebar.html.erb3
-rw-r--r--app/views/common/_right_sidebar.html.erb3
-rw-r--r--app/views/layouts/application.html.erb23
-rw-r--r--app/views/refinery/_header.html.erb7
4 files changed, 36 insertions, 0 deletions
diff --git a/app/views/common/_left_sidebar.html.erb b/app/views/common/_left_sidebar.html.erb
new file mode 100644
index 0000000..72f83bb
--- /dev/null
+++ b/app/views/common/_left_sidebar.html.erb
@@ -0,0 +1,3 @@
+<div id="left_sidebar">
+No content yet, but that will hopefully change soon!
+</div>
diff --git a/app/views/common/_right_sidebar.html.erb b/app/views/common/_right_sidebar.html.erb
new file mode 100644
index 0000000..1707324
--- /dev/null
+++ b/app/views/common/_right_sidebar.html.erb
@@ -0,0 +1,3 @@
+<div id="right_sidebar">
+No content yet, but that will hopefully change soon!
+</div>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
new file mode 100644
index 0000000..43e0863
--- /dev/null
+++ b/app/views/layouts/application.html.erb
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<%= render '/refinery/html_tag' %>
+ <% site_bar = render('/refinery/site_bar', :head => true) -%>
+ <%= render '/refinery/head' %>
+ <body>
+ <%= site_bar -%>
+ <%= render '/refinery/ie6check' if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
+ <div id="page_container">
+ <header id="header">
+ <%= render '/refinery/header' -%>
+ </header>
+ <section id="page">
+ <%= render 'common/left_sidebar' %>
+ <%= yield %>
+ <%= render 'common/right_sidebar' %>
+ </section>
+ <footer>
+ <%= render '/refinery/footer' -%>
+ </footer>
+ </div>
+ <%= render '/refinery/javascripts' %>
+ </body>
+</html>
diff --git a/app/views/refinery/_header.html.erb b/app/views/refinery/_header.html.erb
new file mode 100644
index 0000000..f5450fa
--- /dev/null
+++ b/app/views/refinery/_header.html.erb
@@ -0,0 +1,7 @@
+<div id='logo'>
+ <%= link_to image_tag("logo.png", :alt => "Heavymetal.no"), refinery.root_path %>
+</div>
+<%= render(:partial => "/refinery/menu", :locals => {
+ :dom_id => 'menu',
+ :css => 'menu'
+ }) %>