[Pkg-owncloud-commits] [owncloud-doc] 174/270: Theme: Allow to remove the search box

David Prévot taffit at moszumanska.debian.org
Thu Jul 31 03:53:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit 6ea9328fdb0f28518c39b15d84c34bce113a4e9e
Author: Daniel Molkentin <daniel at molkentin.de>
Date:   Wed Jun 25 13:53:14 2014 +0200

    Theme: Allow to remove the search box
---
 _shared_assets/themes/owncloud_org/layout.html | 2 ++
 _shared_assets/themes/owncloud_org/theme.conf  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/_shared_assets/themes/owncloud_org/layout.html b/_shared_assets/themes/owncloud_org/layout.html
index 97dc69d..252a518 100644
--- a/_shared_assets/themes/owncloud_org/layout.html
+++ b/_shared_assets/themes/owncloud_org/layout.html
@@ -129,10 +129,12 @@
         <h1><a href="{{ pathto(master_doc) }}">{{ project|e }}</a></h1>
       </div>
       <div class="col-md-5 col-md-offset-1">
+      {% if theme_show_search %}
         <form class="headersearch" style="margin-bottom:-3px;" action="{{ pathto('search') }}" method="get">
         <input type="text" value="" name="q" id="q" class="form-control" />
         <button  class="btn btn-default" type="submit" id="searchsubmit">Search</button>
         </form>
+      {% endif %}
       </div>
     </div>
     {% block sidebartoc %}
diff --git a/_shared_assets/themes/owncloud_org/theme.conf b/_shared_assets/themes/owncloud_org/theme.conf
index 180ceac..44eb42d 100644
--- a/_shared_assets/themes/owncloud_org/theme.conf
+++ b/_shared_assets/themes/owncloud_org/theme.conf
@@ -56,3 +56,5 @@ bootswatch_theme = ""
 # Switch Bootstrap version?
 # Values: "3" (default) or "2"
 bootstrap_version = 3
+
+show_search = true

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list