Skip to content
Snippets Groups Projects
Commit 855c75eb authored by Ron Lucke's avatar Ron Lucke Committed by Till Glöggler
Browse files

fix #1919

Closes #1919

Merge request studip/studip!1277
parent 47c7e04e
No related branches found
No related tags found
No related merge requests found
......@@ -2025,10 +2025,9 @@ c o m p a n i o n o v e r l a y
}
}
.cw-container-wrapper {
.cw-companion-box-wrapper {
.cw-companion-box-wrapper {
width: 100%;
}
max-width: 1095px;
}
/* * * * * * * * * * * * * * * * * *
......
......@@ -66,6 +66,31 @@
/>
</template>
</courseware-ribbon>
<div v-if="structuralElementLoaded && !isLink" class="cw-companion-box-wrapper">
<courseware-companion-box
v-if="!canVisit"
mood="sad"
:msgCompanion="$gettext('Diese Seite steht Ihnen leider nicht zur Verfügung.')"
/>
<courseware-companion-box
v-if="blockedByAnotherUser"
:msgCompanion="$gettextInterpolate($gettext('Die Einstellungen dieser Seite werden im Moment von %{blockingUserName} bearbeitet'), {blockingUserName: blockingUserName})"
mood="pointing"
>
<template #companionActions>
<button v-if="userIsTeacher" class="button" @click="menuAction('removeLock')">
{{ textRemoveLock.title }}
</button>
</template>
</courseware-companion-box>
<courseware-empty-element-box
v-if="showEmptyElementBox"
:canEdit="canEdit"
:noContainers="noContainers"
/>
<courseware-wellcome-screen v-if="noContainers && isRoot && canEdit" />
</div>
<div
v-if="canVisit && !editView && !isLink"
......@@ -75,25 +100,6 @@
'cw-container-wrapper-discuss': discussView,
}"
>
<div v-if="structuralElementLoaded" class="cw-companion-box-wrapper">
<courseware-companion-box
v-if="blockedByAnotherUser"
:msgCompanion="$gettextInterpolate($gettext('Die Einstellungen dieser Seite werden im Moment von %{blockingUserName} bearbeitet'), {blockingUserName: blockingUserName})"
mood="pointing"
>
<template #companionActions>
<button v-if="userIsTeacher" class="button" @click="menuAction('removeLock')">
{{ textRemoveLock.title }}
</button>
</template>
</courseware-companion-box>
<courseware-empty-element-box
v-if="showEmptyElementBox"
:canEdit="canEdit"
:noContainers="noContainers"
/>
<courseware-wellcome-screen v-if="noContainers && isRoot && canEdit" />
</div>
<courseware-structural-element-discussion
v-if="!noContainers && discussView"
:structuralElement="structuralElement"
......@@ -184,18 +190,6 @@
</template>
<studip-progress-indicator v-if="processing" :description="$gettext('Vorgang wird bearbeitet...')" />
</div>
<div
v-if="!canVisit"
class="cw-container-wrapper"
:class="{ 'cw-container-wrapper-consume': consumeMode }"
>
<div v-if="structuralElementLoaded" class="cw-companion-box-wrapper">
<courseware-companion-box
mood="sad"
:msgCompanion="$gettext('Diese Seite steht Ihnen leider nicht zur Verfügung.')"
/>
</div>
</div>
</div>
<studip-dialog
......
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