diff options
author | elijah <elijah@riseup.net> | 2016-03-04 11:40:48 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-04 11:40:48 -0800 |
commit | 2b139e15d408e0bd3c2d4c0801ecc3f0bb8744d6 (patch) | |
tree | a59a0b3e739ef4eb6f3fcf92c3e695dee4f63d77 /amber/layouts | |
parent | 096ba605bbcf2de54f709371fc7cc428b593e0ed (diff) |
added duckduckgo search bar
Diffstat (limited to 'amber/layouts')
-rw-r--r-- | amber/layouts/_sidebar.html.haml | 9 |
1 files changed, 9 insertions, 0 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| |