*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 1ed18eaa authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Merge branch 'fwoerister/fixlogin' into 'master'

login fixed

See merge request fairdata/invenio-theme-tuw!4
parents d850445d 6b985857
1 merge request!4login fixed
...@@ -75,6 +75,7 @@ span.ui.label.access-right.embargoed { ...@@ -75,6 +75,7 @@ span.ui.label.access-right.embargoed {
--blue2: #72ADD5; --blue2: #72ADD5;
--blue3: #DFF2FD; --blue3: #DFF2FD;
--grey1: #646363; --grey1: #646363;
--orange1: #E18922;
} }
.bold { .bold {
...@@ -215,6 +216,10 @@ header { ...@@ -215,6 +216,10 @@ header {
padding-bottom: 30px; padding-bottom: 30px;
} }
#searchbutton {
background-color: var(--orange1);
}
#login { #login {
float:right; float:right;
} }
...@@ -228,6 +233,10 @@ header { ...@@ -228,6 +233,10 @@ header {
/* feature list */ /* feature list */
#features {
margin-bottom: 50px;
}
.feature-icon { .feature-icon {
background-color: var(--blue2); background-color: var(--blue2);
border-radius: 20px; border-radius: 20px;
...@@ -249,6 +258,7 @@ header { ...@@ -249,6 +258,7 @@ header {
.feature-text p { .feature-text p {
margin-top: 30px; margin-top: 30px;
text-align: center; text-align: center;
color: var(--grey1);
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</p> </p>
</section> </section>
<section id="features" class="ui four column stackable vertically padded grid container"> <section id="features" class="ui four column stackable grid container">
<h2 style="display: none;">Features</h2> <h2 style="display: none;">Features</h2>
<div class="column"> <div class="column">
<div class="feature-icon box-shaddow"> <div class="feature-icon box-shaddow">
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<div class="center aligned column"> <div class="center aligned column">
<img class="signet-image" src="{{ url_for('static', filename='images/signet.png') }}"> <img class="signet-image" src="{{ url_for('static', filename='images/signet.png') }}">
</div> </div>
</div> </div>
</div> </div>
...@@ -27,9 +26,7 @@ ...@@ -27,9 +26,7 @@
{%- for item in current_menu.submenu('main').children|sort(attribute='order') if item.visible recursive %} {%- for item in current_menu.submenu('main').children|sort(attribute='order') if item.visible recursive %}
<a class="item" href="{{ item.url }}">{{ item.text|safe }}</a></li> <a class="item" href="{{ item.url }}">{{ item.text|safe }}</a></li>
{%- endfor %} {%- endfor %}
<a href="{{ url_for_security('login', next=request.path) }}" class="ui button" style="color:grey"> {%- include "invenio_theme_tuw/header_login.html" %}
<i class="sign-in icon"></i> Log in
</a>
</div> </div>
</div> </div>
...@@ -38,7 +35,7 @@ ...@@ -38,7 +35,7 @@
<form action="/search" class="ui form"> <form action="/search" class="ui form">
<div class="ui fluid big action input"> <div class="ui fluid big action input">
<input type="text" name="q" class="form-control" placeholder="Type and press enter to search"> <input type="text" name="q" class="form-control" placeholder="Type and press enter to search">
<button type="submit" class="ui icon search button orange"><i class="search icon"></i></button> <button type="submit" id="searchbutton" class="ui icon search button"><i class="search icon"></i></button>
</div> </div>
</form> </form>
</div> </div>
......
{# -*- coding: utf-8 -*-
This file is part of Invenio.
Copyright (C) 2015-2018 CERN.
Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
#}
{%- if config.ACCOUNTS %}
{%- if not current_user.is_authenticated %}
<a href="{{ url_for_security('login', next=request.path) }}"
class="ui button">
<span class="grey">
<i class="sign-in icon"></i>
{{ _('Log in') }}</span></a>
{% if security.registerable %}
<a href="{{ url_for_security('register') }}" class="ui button signup">
<i class="edit outline icon"></i>
{{ _('Sign up') }}
</a>
{% endif %}
{%- else %}
{%- if config.USERPROFILES %}
<div class="ui buttons">
<a class="ui button"
href="{{ url_for('invenio_userprofiles.profile') }}">
<i class="user icon"></i> {{ current_user.email|truncate(31,true) }}
</a>
<div class="ui dropdown icon button floating">
<i class="dropdown icon"></i>
<div class="menu">
{%- for item in current_menu.submenu('settings').children if item.visible %}
<a class="item"
style="color:black;"
href="{{ item.url }}">{{ item.text|safe }}
</a>
{%- endfor %}
<div class="divider"></div>
<a class="item" style="color:black;" href="{{ url_for_security('logout') }}">
<i class="sign-out icon"></i>
{{ _('Log out') }}
</a>
</div>
</div>
</div>
{%- else %}
<a href=" {{ url_for_security('logout') }}" class="ui button"><i
class="sign-out icon"></i> {{ _('Log out') }}</a>
{%- endif %}
{%- endif %}
{%- endif %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment