forked from bofh/fetsite
Login auf Startseite verschoben
This commit is contained in:
@@ -19,3 +19,4 @@ alle anderen sind nur zur Voransicht. Bezüglich Design und Steuerung sind Vorsc
|
||||
</div>
|
||||
<p><%= t 'home.hallobeiderfet' %></p>
|
||||
<%= link_to "Entwicklungsstatus" , home_dev_path %>
|
||||
<%= render 'layouts/login' %>
|
||||
|
||||
9
app/views/layouts/_login.html.erb
Normal file
9
app/views/layouts/_login.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<% if user_signed_in? %>
|
||||
<li>Logged in as : <%= current_user.email %>
|
||||
<%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
|
||||
</li>
|
||||
<% else %>
|
||||
<li>
|
||||
<%= link_to('Login', new_user_session_path) %>
|
||||
</li>
|
||||
<% end %>
|
||||
@@ -23,15 +23,7 @@
|
||||
<%= link_to "English" ,switch_locale_url(:en)%>
|
||||
<%end %>
|
||||
</li>
|
||||
<% if user_signed_in? %>
|
||||
<li>Logged in as : <%= current_user.email %>
|
||||
<%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
|
||||
</li>
|
||||
<% else %>
|
||||
<li>
|
||||
<%= link_to('Login', new_user_session_path) %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<li>
|
||||
<%= link_to 'Admin' , config_path%>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user