Skip to content

Commit

Permalink
Fixes header in order to allow for dropdown to work without javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Nov 13, 2012
1 parent 115e703 commit 9af5318
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ckan/public/base/less/bootstrap-fixes.less
@@ -0,0 +1,6 @@
// Shows dropdown menu by default
// ... and re-forces it to show on .open
.dropdown-menu,
.js .open .dropdown-menu {
display: block;
}
1 change: 1 addition & 0 deletions ckan/public/base/less/ckan.less
Expand Up @@ -17,6 +17,7 @@
@import "activity.less";
@import "popover-context.less";
@import "follower-list.less";
@import "bootstrap-fixes.less";

body {
// Using the masthead/footer gradient prevents the color from changing
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/header.html
Expand Up @@ -21,7 +21,7 @@ <h1>
{{ h.gravatar((c.userobj.email_hash if c and c.userobj else ''),size=25) }}
<i class="icon-caret-down"></i>
</a>
<ul class="dropdown-menu pull-right" role="menu">
<ul id="user-menu" class="dropdown-menu pull-right js-hide" role="menu">
<li>
<a href="{{ h.url_for(controller='user', action='dashboard') }}">
<i class="icon-dashboard"></i> {{ _('Dashboard') }}
Expand Down

0 comments on commit 9af5318

Please sign in to comment.