summaryrefslogtreecommitdiff
path: root/app/views/home
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-01-22 02:18:30 -0800
committerelijah <elijah@riseup.net>2014-01-23 11:37:49 -0800
commit67650ea9fead442cb2f66a2fbbec452c890d0775 (patch)
tree22e2042d2b416f01f645f75901f2bf077329f412 /app/views/home
parent87383e624855def55e13d238b2f20b79c418c1d9 (diff)
added a default footer with links to privacy policy, tos, pricing, about us, contact.
Diffstat (limited to 'app/views/home')
-rw-r--r--app/views/home/_content.html.haml14
-rw-r--r--app/views/home/_masthead.html.haml6
-rw-r--r--app/views/home/index.html.haml42
3 files changed, 41 insertions, 21 deletions
diff --git a/app/views/home/_content.html.haml b/app/views/home/_content.html.haml
new file mode 100644
index 0000000..3d351e9
--- /dev/null
+++ b/app/views/home/_content.html.haml
@@ -0,0 +1,14 @@
+.row-fluid
+ %h1= t(:welcome, :provider => APP_CONFIG[:domain])
+ %p We provide secure communication services, including encrypted internet, email (coming soon), and chat (coming later).
+
+.row-fluid
+ = home_page_buttons
+
+ - if Rails.env == 'development'
+ .row-fluid
+ %hr
+ %p
+ = link_to "fetch a cert", cert_path
+ %p
+ = link_to "make donation", new_payment_path if APP_CONFIG[:payment].present?
diff --git a/app/views/home/_masthead.html.haml b/app/views/home/_masthead.html.haml
new file mode 100644
index 0000000..e5d63d6
--- /dev/null
+++ b/app/views/home/_masthead.html.haml
@@ -0,0 +1,6 @@
+-# An example masthead:
+-#
+-# #masthead-text
+-# .container-fluid
+-# .row-fluid
+-# %h1 Example \ No newline at end of file
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml
index 67b2c06..2d5b238 100644
--- a/app/views/home/index.html.haml
+++ b/app/views/home/index.html.haml
@@ -1,21 +1,21 @@
-#main
- .container-fluid
- .row-fluid
- %h1= t(:welcome, :provider => APP_CONFIG[:domain])
-
- %p
- We provide secure communication services, including encrypted internet, email (coming soon), and chat (coming later).
-
- .row-fluid
- .span6.offset3
- = render 'layouts/messages'
- .row-fluid
- = home_page_buttons
-
- - if Rails.env == 'development'
- .row-fluid
- %hr
- %p
- = link_to "fetch a cert", cert_path
- %p
- = link_to "make donation", new_payment_path if APP_CONFIG[:payment].present?
+!!!
+%html
+ %head
+ %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
+ %title= html_title
+ %meta{:content => content_for?(:description) ? yield(:description) : "Leap Web", :name => "description"}
+ = stylesheet_link_tag "application", :media => "all"
+ = javascript_include_tag "application"
+ = csrf_meta_tags
+ = yield(:head)
+ %body
+ #wrap
+ #masthead
+ = render 'home/masthead'
+ #main
+ .container-fluid
+ = render 'home/content'
+ #push
+ -# #push is used for sticky footer in bootstrap 2. remove when upgrading to bootstrap 3
+ #footer
+ = render 'layouts/footer' \ No newline at end of file