Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
redl
redeleitsystem
Commits
9a26e165
Commit
9a26e165
authored
Oct 18, 2015
by
Lars Beckers
Browse files
fix authenicated attribute in updated flask plugin
parent
846a7ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/layout.html
View file @
9a26e165
...
...
@@ -42,7 +42,7 @@
<header
class=
"rede-drawer-header"
>
<div
class=
"rede-account-dropdown"
>
<span>
{% if current_user.is_authenticated
()
%}
{% if current_user.is_authenticated %}
<p
class=
"md-24"
>
<i
class=
"material-icons md-48"
>
{% if "user" in current_user.roles and not "admin" in current_user.roles %}
...
...
@@ -67,7 +67,7 @@
</button>
</span>
<ul
class=
"mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effet"
for=
"accbtn"
>
{% if current_user.is_authenticated
()
%}
{% if current_user.is_authenticated %}
<li
class=
"mdl-menu__item"
><a
class=
"mdl-navigation__link"
href=
"{{ url_for("
logout
")
}}"
>
Logout
</a></li>
{% else %}
<li
class=
"mdl-menu__item"
><a
class=
"mdl-navigation__link"
href=
"{{ url_for("
login
")
}}"
>
Login
</a></li>
...
...
@@ -77,11 +77,11 @@
</div>
</header>
<nav
class=
"rede-navigation mdl-navigation mdl-color--blue-grey-800"
>
{% if current_user.is_authenticated
()
and "user" in current_user.roles %}
{% if current_user.is_authenticated and "user" in current_user.roles %}
<a
class=
"mdl-navigation__link"
href=
"{{ url_for("
speech.index
")
}}"
><i
class=
"mdl-color-text--blue-grey-400 material-icons"
role=
"presentation"
>
build
</i>
Handle speakers
</a>
{% endif %}
<a
class=
"mdl-navigation__link"
href=
"{{ url_for("
speech.show
")
}}"
><i
class=
"mdl-color-text--blue-grey-400 material-icons"
role=
"presentation"
>
announcement
</i>
Pending speakers
</a>
{% if current_user.is_authenticated
()
and "admin" in current_user.roles %}
{% if current_user.is_authenticated and "admin" in current_user.roles %}
<a
class=
"mdl-navigation__link"
href=
"{{ url_for("
admin.index
")
}}"
><i
class=
"mdl-color-text--blue-grey-400 material-icons"
role=
"presentation"
>
computer
</i>
Administration
</a>
{% endif %}
</nav>
...
...
Lars Beckers
@larsb
mentioned in issue
#3 (closed)
·
Nov 07, 2015
mentioned in issue
#3 (closed)
mentioned in issue #3
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment