diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 6e2e796..6f48250 100755 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -19,3 +19,4 @@ alle anderen sind nur zur Voransicht. Bezüglich Design und Steuerung sind Vorsc

<%= t 'home.hallobeiderfet' %>

<%= link_to "Entwicklungsstatus" , home_dev_path %> +<%= render 'layouts/login' %> diff --git a/app/views/layouts/_login.html.erb b/app/views/layouts/_login.html.erb new file mode 100644 index 0000000..7a65018 --- /dev/null +++ b/app/views/layouts/_login.html.erb @@ -0,0 +1,9 @@ +<% if user_signed_in? %> +
  • Logged in as : <%= current_user.email %> + <%= link_to('Logout', destroy_user_session_path, :method => :delete) %> +
  • + <% else %> +
  • + <%= link_to('Login', new_user_session_path) %> +
  • + <% end %> diff --git a/app/views/layouts/menu.html.erb b/app/views/layouts/menu.html.erb index dc77e62..3c3e69b 100755 --- a/app/views/layouts/menu.html.erb +++ b/app/views/layouts/menu.html.erb @@ -23,15 +23,7 @@ <%= link_to "English" ,switch_locale_url(:en)%> <%end %> - <% if user_signed_in? %> -
  • Logged in as : <%= current_user.email %> - <%= link_to('Logout', destroy_user_session_path, :method => :delete) %> -
  • - <% else %> -
  • - <%= link_to('Login', new_user_session_path) %> -
  • - <% end %> +
  • <%= link_to 'Admin' , config_path%>