Commit 7413325b authored by Lyred's avatar Lyred
Browse files

added my_groups and tutorial tab in sidebar

tutorial is not ok :(
changed some labels
parent 19e6a399
<div class="row">
<div class="col">
<h5><%= t('group.create.title')%></h5>
<h1><%= t('group.create.title')%></h1>
<p>
<%= t('group.create.description')%>
</p>
......
<div class="d-flex flex-column">
<h1><%= t('sidebar.myGroups') %></h1>
<% @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>
\ No newline at end of file
<div class="row">
<div class="col">
<div class="mainPageText">
<h2><%= t('main.title') %></h2>
<img src="<%= image_path('Logo.png') %>" class="mainPageText" style='display: block; margin-left: auto; margin-right: auto '/>
<p>
<%= raw(t('main.subtitle')) %>
......
......@@ -363,26 +363,21 @@
<div class="col-md-4 col-lg-3 hsmw-site-nav">
<nav class="navbar navbar-dark bg-primary d-md-none">
<a class="navbar-brand">
Webtitel
Gruppenverwaltung
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
<div class="collapse d-md-inline" id="navbarToggleExternalContent">
<p class="h1 d-none d-md-block">
<%= t('sidebar.myGroups') %>
<%= t('navBar.mainPage') %>
</p>
<a href="<%= url_for controller: 'group', action: 'create' %>" class="btn btn-primary mb-3"><%= t('sidebar.createGroupButton') %></a>
<br>
<nav aria-label="Seitennavigation">
<nav aria-label="Seitennavigation">
<ul class="nav flex-column">
<%# <li class="nav-item chevron-right"><a href="#" class="nav-link active">Selektierter Navigationspunkt 1</a></li> %>
<% @user_groups.each do |g| %>
<li class="nav-item no-icon"><a href="<%= url_for controller: 'group', action: 'get', id: g.id %>" class="nav-link"><%= g.name %></a></li>
<% end %>
<li class="nav-item no-icon"><a href="<%= url_for controller: 'group', action: 'create' %>" class="nav-link active"><%= t('sidebar.createGroupButton') %></a></li>
<li class="nav-item no-icon"><a href="<%= url_for controller: 'group', action: 'my_groups' %>" class="nav-link active"><%= t('sidebar.myGroups') %></a></li>
<li class="nav-item no-icon"><a href="<%= url_for controller: 'tutorial', action: 'tutorial' %>" class="nav-link active">Tutorial</a></li>
</ul>
</nav>
</div>
......@@ -393,13 +388,9 @@
Partials/MainContent.html
-->
<main class="col-md-8 col-lg-9 hsmw-main-content">
<h1>Gruppenverwaltung</h1>
<main role="main" class="ml-3 mt-3 mr-5 w-100">
<div id="alerts"></div>
<div id="alerts"></div>
<%= yield %>
</main>
</main>
......
......@@ -28,6 +28,10 @@ Rails.application.routes.draw do
match 'lang/:locale', to: 'index#change_locale', as: :change_locale, via: [:get]
get '/', to: 'index#main'
get '/groups', to: 'group#my_groups'
get '/vpntest', to: proc { |env|
[
302,
......
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