Commit 80d005392b7ba68a0f647acdeb0d515ad3aee3f9
1 parent
6fe4cacd
Exists in
master
and in
28 other branches
ActionItem1165: throwing dirty hack away
Showing
3 changed files
with
1 additions
and
11 deletions
Show diff stats
app/controllers/public/account_controller.rb
app/views/account/user_menu.rjs
... | ... | @@ -1 +0,0 @@ |
1 | -page.replace_html 'user_box', :file => 'shared/user_menu' |
app/views/layouts/application.rhtml
... | ... | @@ -102,12 +102,7 @@ |
102 | 102 | </div> |
103 | 103 | |
104 | 104 | <div id="user_box"> |
105 | - <%# WARNING this is a horrible hack while we don't have an actual SSO system. %> | |
106 | - <% if environment.enable_ssl && request.host != environment.default_hostname %> | |
107 | - <%= content_tag 'script', '', :type => 'text/javascript', :src => environment.top_url(true) + '/account/user_menu' %> | |
108 | - <% else %> | |
109 | - <%= render :file => 'shared/user_menu' %> | |
110 | - <% end %> | |
105 | + <%= render :file => 'shared/user_menu' %> | |
111 | 106 | </div><!-- id='user_box' --> |
112 | 107 | |
113 | 108 | <a href="#" id="btShowHelp" class="icon-help32on help-on icon-help-on" | ... | ... |