Skip to content
Snippets Groups Projects
Verified Commit fc3730e5 authored by Georg Krause's avatar Georg Krause
Browse files

Do not show registration form for logged in users

parent 10a611bf
Branches
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div class="ui vertically fitted basic stripe segment"> <div class="ui vertically fitted basic stripe segment">
<div class="ui two stackable cards"> <div class="ui two stackable cards">
<div class="ui card"> <div class="ui card">
<div class="signup-form content"> <div class="signup-form content" v-if="!$store.state.auth.authenticated">
<h3 class="header"> <h3 class="header">
<translate translate-context="*/Signup/Title">Sign up</translate> <translate translate-context="*/Signup/Title">Sign up</translate>
</h3> </h3>
...@@ -51,6 +51,14 @@ ...@@ -51,6 +51,14 @@
</a> </a>
</div> </div>
</div> </div>
<div class="signup-form content" v-else>
<div class="ui positive message">
<div class="header">
<translate translate-context="Content/About/Message">You're already signed in!</translate>
</div>
<p><translate translate-contect="Content/About/Hello">Hello</translate> {{ $store.state.auth.username }}</p>
</div>
</div>
</div> </div>
<div class="ui card"> <div class="ui card">
<section :class="['ui', 'head', {'with-background': banner}, 'vertical', 'center', 'aligned', 'stripe', 'segment']" :style="headerStyle"> <section :class="['ui', 'head', {'with-background': banner}, 'vertical', 'center', 'aligned', 'stripe', 'segment']" :style="headerStyle">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment