Skip to content
Snippets Groups Projects
Commit 07ed8132 authored by Sebastien's avatar Sebastien
Browse files

add link to go back to my capsule only if the current view is opened by logged user

parent 884c2e04
No related merge requests found
......@@ -16,7 +16,15 @@
</head>
{% set topShift = 0 %}
<body class="container col-10 col-md-8 col-lg-6 m-auto">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
{% set topShift = 30 %}
<div class="position-absolute top-0 start-0 px-2">
<a href="{{ path('capsule_list') }}" class="text-decoration-none fs-5">Go home</a>
</div>
{% endif %}
<div class="position-relative d-flex flex-row align-items-center justify-content-center mb-5">
<img id="header-memorekall-logo" class="memorekall-logo" src="{{ asset('build/images/MemoRekall.png') }}">
</div>
......@@ -26,9 +34,8 @@
<span class="spinner-grow spinner-grow-sm mx-2" role="status" aria-hidden="true"></span>
<span class="spinner-grow spinner-grow-sm mx-2" role="status" aria-hidden="true"></span>
</div>
<iframe src="{{ url }}"
style="width:100%;height:100%;top:0;left:0;position:absolute"
style="width:100%;height:calc(100vh - {{ topShift }}px);top:{{ topShift }}px;left:0;position:absolute"
frameborder="0"
webkitallowfullscreen
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment