diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb new file mode 100644 index 0000000..827995b --- /dev/null +++ b/app/views/layouts/_footer.html.erb @@ -0,0 +1,3 @@ + diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb new file mode 100644 index 0000000..65ad76e --- /dev/null +++ b/app/views/layouts/_header.html.erb @@ -0,0 +1,29 @@ +
+ Plottservice Fachbereich AB + <% if user_signed_in? && current_user&.admin? || current_user&.operator? %> + + <% end %> + +
\ No newline at end of file diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 11378a8..8fda818 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -12,37 +12,10 @@ <%= render "layouts/flash" %> -
- Plottservice Fachbereich AB - - -
+ <%= render "layouts/header" %>
<%= yield %>
- + <%= render "layouts/footer" %>