<% if Redmine::OmniAuthCAS.cas_server.present? %>

<% content_for :header_tags do %>
  <%= stylesheet_link_tag "login", :plugin => "redmine_omniauth_cas" %>
<% end %>

<div id="cas-login">
  <%= link_to label_for_cas_login, '/auth/cas' %>
</div>

<% end %>

<% if Redmine::OmniAuthCAS.cas_server.present? %>

<% content_for :header_tags do %>
  <%= stylesheet_link_tag "login", :plugin => "redmine_omniauth_cas" %>
<% end %>

<div id="cas-login">
  <%= link_to label_for_cas_login, :controller => "account", :action => "blank", :provider => "cas" %>
</div>

<% end %>

Fix "Login with CAS" link when Redmine is installed in a subdirectory.
Fix "Login with CAS" link when Redmine is installed in a subdirectory.
