Commit 07f68036 authored by Lyred's avatar Lyred
Browse files

added new layout

parent d589330e
<!DOCTYPE html>
<html>
<head>
<title>Gruppenverwaltung</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_pack_tag "application", media: "all", 'data-turbolinks-track': "reload" %>
<%= javascript_pack_tag "application", 'data-turbolinks-track': "reload" %>
<%= yield :js %>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<%= stylesheet_link_tag "application", :media => "all" %>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css">
</head>
<body style="display: flex;flex-direction: column;min-height: 100vh;">
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<a class="navbar-brand" href="/"><%= t('navBar.mainPage') %></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
</li>
</ul>
<div class=dropdown-container>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<%= t('language') %>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<%= link_to "English", change_locale_path(:en) %></li>
<li>
<%= link_to "Deutsch", change_locale_path(:de) %>
</li>
</ul>
</div>
<% if cookies[:sessionToken] === 'a' %>
<span data-toggle="tooltip" data-placement="bottom" title="Tutorial"> <i class="navbar-brand tutorialEnable pointer bi bi-question-circle"></i></span>
<% end %>
<a class="navbar-brand"><%= t('navBar.user') %> <%= session[:user_login] %> </a>
</div>
</nav>
<div class="d-flex flex-grow-1">
<aside class="p-3 border-right d-flex flex-column" style="width: 15%; border-color: rgba(0, 0, 0, 0.5)">
<a href="<%= url_for controller: 'group', action: 'create' %>" class="btn btn-primary mb-3"><%= t('sidebar.createGroupButton') %></a>
<div class="d-flex flex-column">
<p><%= t('sidebar.myGroups') %></p>
<% @user_groups.each do |g| %>
<a class="ml-4 mb-2" href="<%= url_for controller: 'group', action: 'get', id: g.id %>">
<%= g.name %>
</a>
<% end %>
</div>
</aside>
<main role="main" class="ml-3 mt-3 mr-5 w-100">
<%= yield %>
</main>
</div>
<% if cookies[:allow_cookies].blank? %>
<% if cookies[:sessionToken] === 'a' %>
<%= render 'layouts/tutorial' %>
<% end %>
<% if cookies[:sessionToken] === 'b' %>
<%= render 'layouts/info' %>
<% end %>
<% end %>
</body>
</html>
This diff is collapsed.
......@@ -14,7 +14,7 @@
</div>
<div class="col">
<div class="row">
<div class="col-11">
<div class="col">
<select name="admins" id="admins" class="form-control pointer">
<% @members.each do |m| %>
<% if m.role == Roles::ADMIN %>
......@@ -23,12 +23,10 @@
<% end %>
</select>
</div>
<div class="col-1">
<div class="col-2">
<i class="btn btn-primary bi bi-clipboard pointer adminEmailCopy"></i>
</div>
</div>
</div>
</div>
<div class="row">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment