summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-03-04 11:40:48 -0800
committerelijah <elijah@riseup.net>2016-03-04 11:40:48 -0800
commit2b139e15d408e0bd3c2d4c0801ecc3f0bb8744d6 (patch)
treea59a0b3e739ef4eb6f3fcf92c3e695dee4f63d77
parent096ba605bbcf2de54f709371fc7cc428b593e0ed (diff)
added duckduckgo search bar
-rw-r--r--amber/layouts/_sidebar.html.haml9
-rw-r--r--pages/assets/_bootstrap-3.3.2.scss2
2 files changed, 10 insertions, 1 deletions
diff --git a/amber/layouts/_sidebar.html.haml b/amber/layouts/_sidebar.html.haml
index 87a00f9..532a3c5 100644
--- a/amber/layouts/_sidebar.html.haml
+++ b/amber/layouts/_sidebar.html.haml
@@ -4,6 +4,15 @@
%li{:class => "#{item[:active]} level#{item[:level]}"}
%a{:href => item[:href], :class => ''}= item[:label]
+.sidebar-addendum
+ %br
+ %form#searchform(method="get" action="https://duckduckgo.com" onsubmit="document.forms.searchform.q.value = document.forms.searchform.query.value + ' site:leap.se'; true")
+ .input-group
+ %input.form-control(name="query" type="search")
+ .span.input-group-btn
+ %input.btn.btn-default(value="Search" type="submit")
+ %input(name="q" type="hidden")
+
-# .sidebar-addendum
-# .locale-links
-# - available_languages.each do |name, code, url|
diff --git a/pages/assets/_bootstrap-3.3.2.scss b/pages/assets/_bootstrap-3.3.2.scss
index a89db63..c7e75ea 100644
--- a/pages/assets/_bootstrap-3.3.2.scss
+++ b/pages/assets/_bootstrap-3.3.2.scss
@@ -20,7 +20,7 @@
//@import "bootstrap/component-animations";
//@import "bootstrap/dropdowns";
//@import "bootstrap/button-groups";
-//@import "bootstrap/input-groups";
+@import "bootstrap/input-groups";
@import "bootstrap/navs";
@import "bootstrap/navbar";
@import "bootstrap/breadcrumbs";