Skip to content
Snippets Groups Projects
Commit 3e271cf0 authored by Julian Rother's avatar Julian Rother
Browse files

Merge branch 'master' of git.fsmpi.rwth-aachen.de:julianundandyfrickelnkram/videoagwebsite

parents b420a344 601a9130
No related branches found
No related tags found
No related merge requests found
...@@ -56,17 +56,24 @@ ...@@ -56,17 +56,24 @@
</li> </li>
{% endfor %} {% endfor %}
<li class="navbar-right"> <li class="navbar-right">
{% if not session.userid is defined %}
<a id="loginpopover" data-container="body" data-toggle="popover" data-placement="bottom"> <a id="loginpopover" data-container="body" data-toggle="popover" data-placement="bottom">
<span class="glyphicon glyphicon-user"></span> <span class="glyphicon glyphicon-menu-down"></span> <span class="glyphicon glyphicon-log-in"></span>
</a> </a>
<script> <script>
$('#loginpopover').popover( $('#loginpopover').popover(
{ {
html:true, html:true,
content:'<form method="post" action="login"><span>User: <input name="user" type="text"></span><br><span>Password: <input name="password" type="password"></span><input type="hidden" name="ref" value="{{ request.url|e }}"><input type="submit"></form>' title:'Login für Moderatoren',
content:'<form method="post" action="login"><input placeholder="User" name="user" type="text"><br><input placeholder="Password" name="password" type="password"><br><input type="hidden" name="ref" value="{{ request.url|e }}"><input type="submit" value="Login"></form>'
} }
) )
</script> </script>
{% else %}
<a herf="/logout">
<span class="glyphicon glyphicon-log-out"></span>
</a>
{% endif %}
</li> </li>
</ul> </ul>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment