Opened 18 years ago
Closed 17 years ago
#5400 closed defect (fixed)
Header logo on wrong position, when SEARCH_VIEW not activated
Reported by: | jl | Owned by: | osimons |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | search system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The header logo is on the wrong position (crossing the wiki/timeline/roadmap/… -bar), when the SEARCH_VIEW permission is not available for the user. This happens not in version 0.10.4. My actual test version is 0.11dev-r5552.
Attachments (1)
Change History (4)
by , 18 years ago
comment:1 by , 17 years ago
Same error here, only I have disabled trac.search.web_ui entirely so same effect for all users. Using 0.11dev-r6038
comment:2 by , 17 years ago
Milestone: | 0.11.1 → 0.11 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Found it. It is a minor change from 0.10 that we no doudt didn't see the formatting consequences of. Basically, the search form consists of the <form>
tag, and a <div>
containing the textfield and button. In 0.10, we keep the form regardless, but don't show any fields - basically the search will not show, but the form 'lives' and takes up it's usual place in the page layout.
Here is a patch:
-
trac/templates/layout.html
43 43 height="${chrome.logo.height or None}" width="${chrome.logo.width or None}" /></a> 44 44 <h1 py:otherwise=""><a href="${chrome.logo.link}">${project.name}</a></h1> 45 45 </div> 46 <form py:if="'SEARCH_VIEW' in perm" id="search" 47 action="${href.search()}" method="get"><div> 48 <label for="proj-search">Search:</label> 49 <input type="text" id="proj-search" name="q" size="18" accesskey="f" value="" /> 50 <input type="submit" value="Search" /> 51 </div></form> 46 <form id="search" action="${href.search()}" method="get"> 47 <div py:if="'SEARCH_VIEW' in perm"> 48 <label for="proj-search">Search:</label> 49 <input type="text" id="proj-search" name="q" size="18" accesskey="f" value="" /> 50 <input type="submit" value="Search" /> 51 </div> 52 </form> 52 53 ${navigation('metanav')} 53 54 </div> 54 55 ${navigation('mainnav')}
If we're OK with restoring the 0.10 way of things, then I'll apply the patch.
comment:3 by , 17 years ago
Component: | general → search system |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Patch applied in [6278]. Closing.
Wrong logo position