Roger Haase avatar Roger Haase committed e73e4cd

fix for issue 286 search view checkbox label always wraps with modernized theme

Comments (0)

Files changed (6)

MoinMoin/search/__init__.py

 
 class SearchForm(Form):
     q = Search
-    history = InlineCheckbox.using(label=L_('search also in non-current revisions'))
+    history = InlineCheckbox.using(label=L_('search all revisions'))
     submit = Submit.using(default=L_('Search'))
 
     validators = [ValidSearch()]

MoinMoin/templates/search.html

     </p>
     {% endif %}
     {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get', action=url_for('frontend.search', item_name=item_name)) }}
-        <div>
-            {{ forms.render(medium_search_form['q']) }}
-            {{ forms.render(medium_search_form['submit']) }}
-            {{ forms.render(medium_search_form['history']) }}
-            {{ forms.render_errors(medium_search_form) }}
-        </div>
+        <p>
+        {{ forms.render(medium_search_form['q']) }}
+        {{ forms.render(medium_search_form['submit']) }}
+        </p>
+        <p>
+        {{ forms.render(medium_search_form['history']) }}
+        {{ forms.render_errors(medium_search_form) }}
+        </p>
     {{ gen.form.close() }}
     {% if results is defined %}
-        <div>
+        {% if name_suggestions or content_suggestions %}
             <p>{{ _("name term suggestions: %(termlist)s", termlist=name_suggestions) }}</p>
             <p>{{ _("content term suggestions: %(termlist)s", termlist=content_suggestions) }}</p>
-        </div>
+        {% endif %}
         {% if results %}
             <div class="searchresults">
                 <table>

MoinMoin/themes/foobar/static/css/common.css

 .searchresults dd,.searchresults p{font-size:.85em}
 .searchresults td{border-width:0}
 .searchresults p.info{margin-left:2%}
-.searchresults .searchhitinfobar{color:#51d443;margin-left:15px;margin-top:0}
+.searchresults .searchhitinfobar{margin-left:15px;margin-top:0}
 .searchresults .foundtext{margin-left:15px;margin-top:0}
 p.searchstats{font-size:.8em;text-align:right;width:100%;padding:2px}
 p.searchhint{background-color:#f4f4f4;border:1px solid #9d9d9b;padding:2px}

MoinMoin/themes/foobar/static/css/stylus/main.styl

         margin-left 2%
 
 .searchresults .searchhitinfobar
-    color active_color
     margin-left 15px
     margin-top 0
 

MoinMoin/themes/modernized/static/css/common.css

 .searchresults dd,.searchresults p{font-size:.85em}
 .searchresults td{border-width:0}
 .searchresults p.info{margin-left:2%}
-.searchresults .searchhitinfobar{color:#939393;margin-left:15px;margin-top:0}
+.searchresults .searchhitinfobar{margin-left:15px;margin-top:0}
 .searchresults .foundtext{margin-left:15px;margin-top:0}
 p.searchstats{font-size:.8em;text-align:right;width:100%;padding:2px}
 p.searchhint{background-color:#eef1f6;border:1px solid #4e7da9;padding:2px}
 #moin-searchform div{margin:-6px 5px 0 0}
 #moin-long-searchform{padding:0;font-size:.82em;text-align:left}
 #moin-long-searchform div{margin:0}
-#moin-search-query{width:80%}
+#moin-search-query{width:50%}
 #moin-logo{float:left;margin:2px 10px;padding:0;font-size:1.4em;line-height:1em;font-weight:bold}
 #moin-logo img{vertical-align:middle}
 #moin-logo a{color:#fff;text-decoration:none}

MoinMoin/themes/modernized/static/css/stylus/main.styl

     margin-left 2%
 
 .searchresults .searchhitinfobar
-    color nonexistent_link_color
     margin-left 15px
     margin-top 0
 
     margin 0
 
 #moin-search-query
-    width 80%
+    width 50%
 
 #moin-logo
     float left
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.