forked from bofh/fetsite
fix login menu
This commit is contained in:
@@ -43,9 +43,20 @@
|
|||||||
<li><%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%> </li>
|
<li><%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%> </li>
|
||||||
|
|
||||||
</ul></div>
|
</ul></div>
|
||||||
</li><li>
|
</li>
|
||||||
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) %>
|
<li>
|
||||||
<%# render 'layouts/login' %>
|
<% if not user_signed_in? %>
|
||||||
|
<% if Rails.env.development? %>
|
||||||
|
<%# link_to I18n.t('home.login'), user_omniauth_authorize_path(:developer) %>
|
||||||
|
<%= render 'layouts/login' %>
|
||||||
|
|
||||||
|
<% else %>
|
||||||
|
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= render 'layouts/login' %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<!--<span class="pull-right"><%if I18n.locale == :en %>
|
<!--<span class="pull-right"><%if I18n.locale == :en %>
|
||||||
|
|||||||
Reference in New Issue
Block a user