Commit 80d005392b7ba68a0f647acdeb0d515ad3aee3f9

Authored by Antonio Terceiro
1 parent 6fe4cacd

ActionItem1165: throwing dirty hack away

app/controllers/public/account_controller.rb
... ... @@ -230,10 +230,6 @@ class AccountController < ApplicationController
230 230 render :partial => 'identifier_status'
231 231 end
232 232  
233   - def user_menu
234   - # nothing
235   - end
236   -
237 233 protected
238 234  
239 235 def redirect?
... ...
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"
... ...