Modify ↓
#13216 closed defect (fixed)
Logged in label not processing text correctly
Reported by: | Kevin Shea | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | BlueFlatTheme |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
The "Logged in user" label in the top right is interpreting the text incorrectly and escaping html as entities:
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> logged in as <span class="trac-author-user">admin</span> <span class="caret"></span> </a>
Attachments (0)
Change History (4)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
I'm unsure why there is conditional handling for the children of first_metanav
.
The following seems to fix the issue in Trac 1.2-stable and 1.0-stable:
-
blueflattheme/templates/blueflat_theme.html
1 <?python2 3 first_metanav = chrome['nav']['metanav'][0]['label']4 if hasattr(first_metanav, 'children'):5 user_menu_text = first_metanav.children6 else:7 user_menu_text = first_metanav8 9 ?>10 1 <!DOCTYPE html 11 2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 12 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> … … 74 65 75 66 <div class="collapse navbar-collapse"> 76 67 <div class="btn-group pull-right" id="metanav"> 77 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> 78 ${user_menu_text} 68 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#" 69 py:with="first_metanav = chrome['nav']['metanav'][0]['label'];"> 70 ${first_metanav} 79 71 <span class="caret"></span> 80 72 </a> 81 73 <ul class="dropdown-menu" py:if="chrome.nav['metanav']">
comment:3 Changed 7 years ago by
Owner: | changed from Cinc-th to Ryan J Ollos |
---|---|
Status: | new → accepted |
Note: See
TracTickets for help on using
tickets.
Is there any chance that this bug will be fixed?