Edgewall Software
Modify

Opened 17 years ago

Closed 16 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)

Logo.PNG (41.7 KB ) - added by jl 17 years ago.
Wrong logo position

Download all attachments as: .zip

Change History (4)

by jl, 17 years ago

Attachment: Logo.PNG added

Wrong logo position

comment:1 by anonymous, 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 osimons, 16 years ago

Milestone: 0.11.10.11
Owner: changed from Jonas Borgström to osimons
Status: newassigned

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

     
    4343          height="${chrome.logo.height or None}" width="${chrome.logo.width or None}" /></a>
    4444        <h1 py:otherwise=""><a href="${chrome.logo.link}">${project.name}</a></h1>
    4545      </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>
    5253      ${navigation('metanav')}
    5354    </div>
    5455    ${navigation('mainnav')}

If we're OK with restoring the 0.10 way of things, then I'll apply the patch.

comment:3 by osimons, 16 years ago

Component: generalsearch system
Resolution: fixed
Status: assignedclosed

Patch applied in [6278]. Closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from osimons to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.