summaryrefslogtreecommitdiff
path: root/amber
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-07-21 02:17:06 -0700
committerelijah <elijah@riseup.net>2014-07-21 02:17:06 -0700
commit780e7f0d882a22503f9ce7caab0a2e969e8529e6 (patch)
treeba1f36532a7e6f471dc1007728da210bf5919cfc /amber
parenta91bb680740c80eac5d19e61dc3c16e10b78b2c0 (diff)
initial draft content
Diffstat (limited to 'amber')
-rw-r--r--amber/config.rb2
-rw-r--r--amber/layouts/_footer.html.haml13
-rw-r--r--amber/layouts/_masthead.html.haml12
-rw-r--r--amber/layouts/_sidebar.html.haml10
-rw-r--r--amber/layouts/default.html.haml41
-rw-r--r--amber/locales/en.yml10
-rw-r--r--amber/menu.txt10
7 files changed, 98 insertions, 0 deletions
diff --git a/amber/config.rb b/amber/config.rb
index e69de29..0bdbcc0 100644
--- a/amber/config.rb
+++ b/amber/config.rb
@@ -0,0 +1,2 @@
+@title = 'Bitmask Help'
+@path_prefix = '/help' \ No newline at end of file
diff --git a/amber/layouts/_footer.html.haml b/amber/layouts/_footer.html.haml
new file mode 100644
index 0000000..04bfbcb
--- /dev/null
+++ b/amber/layouts/_footer.html.haml
@@ -0,0 +1,13 @@
+#footer-inner
+ .container
+ .row
+ .col-sm-12
+ %div.footer-text
+ %div.creativecommons
+ %a(href="https://creativecommons.org/licenses/by-sa/3.0/" rel="license")<
+ (cc) Attribution, Share-Alike
+ %a(href="https://creativecommons.org/licenses/by-sa/3.0/" rel="license")<
+ %img(alt="Creative Commons License" src="/assets/images/by-sa-3.0-80x15.png" style="border-width:0; vertical-align: text-top")
+ &nbsp;
+ &#169; 2014
+ %a(href="https://leap.se")=t :leap
diff --git a/amber/layouts/_masthead.html.haml b/amber/layouts/_masthead.html.haml
new file mode 100644
index 0000000..71892f5
--- /dev/null
+++ b/amber/layouts/_masthead.html.haml
@@ -0,0 +1,12 @@
+.container
+ .row
+ .col-sm-12
+ .masthead-inner
+ .text.top
+ Bitmask
+ .text.bottom
+ Help
+ %ul.list-unstyled#top-menu
+ - top_navigation_items(include_home:true) do |item|
+ %li{:class => item[:class]}
+ %a{:href => item[:href], :class => item[:class]}= item[:label] \ No newline at end of file
diff --git a/amber/layouts/_sidebar.html.haml b/amber/layouts/_sidebar.html.haml
new file mode 100644
index 0000000..f911131
--- /dev/null
+++ b/amber/layouts/_sidebar.html.haml
@@ -0,0 +1,10 @@
+#navigation
+ %ul.nav.nav-pills.nav-stacked
+ - navigation_items do |item|
+ %li{:class => "#{item[:active]} level#{item[:level]}"}
+ %a{:href => item[:href], :class => ''}= item[:label]
+
+.sidebar-addendum
+ .locale-links
+ - available_languages.each do |name, code, url|
+ %a.label{:href => url, :class => (I18n.locale == code ? 'label-primary' : '')}= name \ No newline at end of file
diff --git a/amber/layouts/default.html.haml b/amber/layouts/default.html.haml
new file mode 100644
index 0000000..0ee9b0f
--- /dev/null
+++ b/amber/layouts/default.html.haml
@@ -0,0 +1,41 @@
+!!!
+%html{:lang => @locals[:locale].to_s}
+ %head
+ %title
+ = @page.nav_title + ' - ' + @site.title
+ %meta(name="viewport" content="width=device-width, initial-scale=1.0")
+ %meta(charset="UTF-8")
+ %link(rel="stylesheet" href="/assets/bootstrap.min.css")
+ %link(rel="stylesheet" href="/assets/font-awesome/css/font-awesome.min.css")
+ %link(rel="stylesheet" href="/assets/style.css")
+ %link(rel="icon" href="/assets/images/favicon.png" type="image/x-icon")
+ = html_head_base
+ %body
+ #wrap
+ #masthead
+ = render 'layouts/masthead'
+ #main.container
+ .row
+ - if has_navigation?
+ #sidebar.col-sm-3.col-md-2
+ = render 'layouts/sidebar'
+ .col-sm-9.col-md-10
+ .shadow-box
+ .title-box
+ = yield :title
+ - if @page.props.summary
+ .summary
+ = @page.props.summary
+ .content-box
+ - if translation_missing?
+ .alert.alert-info= t(:missing_translation)
+ = yield :content
+ - else
+ .col-sm-12
+ .shadow-box
+ .title-box
+ = yield :title
+ .content-box
+ = yield :content
+ #footer
+ = render 'layouts/footer'
diff --git a/amber/locales/en.yml b/amber/locales/en.yml
new file mode 100644
index 0000000..659a337
--- /dev/null
+++ b/amber/locales/en.yml
@@ -0,0 +1,10 @@
+en:
+ site_title: 'Bitmask Help'
+ contribute_to_help: 'Contribute to these help pages'
+ download_bitmask: 'Download Bitmask'
+ downloads: Downloads
+ download: Download
+ leap: 'LEAP Encryption Access Project'
+ footer_text:
+ warning: <b>WARNING:</b> Bitmask is still experimental. Please do not use these beta releases of Bitmask for situations where a compromise of your data could put you in danger.
+ warning_disabled: Also, although Bitmask is improving rapidly, it is possible that you could lose your email when using an early beta release. \ No newline at end of file
diff --git a/amber/menu.txt b/amber/menu.txt
new file mode 100644
index 0000000..b3b56b6
--- /dev/null
+++ b/amber/menu.txt
@@ -0,0 +1,10 @@
+install
+ android
+ linux
+ mac
+eip
+ android
+ desktop
+ benefits
+ limitations
+email