Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
e1b4a3b8
Commit
e1b4a3b8
authored
3 years ago
by
Ron Lucke
Committed by
Marcus Eibrink-Lunzenauer
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
BIEST #536
parent
10339902
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/assets/stylesheets/scss/courseware.scss
+6
-0
6 additions, 0 deletions
resources/assets/stylesheets/scss/courseware.scss
resources/vue/components/courseware/CoursewareActionWidget.vue
+21
-0
21 additions, 0 deletions
...rces/vue/components/courseware/CoursewareActionWidget.vue
with
27 additions
and
0 deletions
resources/assets/stylesheets/scss/courseware.scss
+
6
−
0
View file @
e1b4a3b8
...
@@ -1637,6 +1637,12 @@ v i e w w i d g e t
...
@@ -1637,6 +1637,12 @@ v i e w w i d g e t
}
}
}
}
.cw-action-widget
{
.cw-action-widget
{
.cw-action-widget-show-toc
{
@include
background-icon
(
table-of-contents
,
clickable
);
}
.cw-action-widget-show-consume-mode
{
@include
background-icon
(
fullscreen-on
,
clickable
);
}
.cw-action-widget-edit
{
.cw-action-widget-edit
{
@include
background-icon
(
edit
,
clickable
);
@include
background-icon
(
edit
,
clickable
);
}
}
...
...
This diff is collapsed.
Click to expand it.
resources/vue/components/courseware/CoursewareActionWidget.vue
+
21
−
0
View file @
e1b4a3b8
<
template
>
<
template
>
<ul
class=
"widget-list widget-links cw-action-widget"
v-if=
"structuralElement"
>
<ul
class=
"widget-list widget-links cw-action-widget"
v-if=
"structuralElement"
>
<li
class=
"cw-action-widget-show-toc"
@
click=
"toggleTOC"
>
{{
tocText
}}
</li>
<li
class=
"cw-action-widget-show-consume-mode"
@
click=
"showConsumeMode"
>
<translate>
Vollbild einschalten
</translate>
</li>
<li
v-show=
"canEdit"
class=
"cw-action-widget-edit"
@
click=
"editElement"
>
<li
v-show=
"canEdit"
class=
"cw-action-widget-edit"
@
click=
"editElement"
>
<translate>
Seite bearbeiten
</translate>
<translate>
Seite bearbeiten
</translate>
</li>
</li>
...
@@ -37,6 +43,8 @@ export default {
...
@@ -37,6 +43,8 @@ export default {
oerEnabled
:
'
oerEnabled
'
,
oerEnabled
:
'
oerEnabled
'
,
oerTitle
:
'
oerTitle
'
,
oerTitle
:
'
oerTitle
'
,
userId
:
'
userId
'
,
userId
:
'
userId
'
,
consumeMode
:
'
consumeMode
'
,
showToolbar
:
'
showToolbar
'
}),
}),
isRoot
()
{
isRoot
()
{
if
(
!
this
.
structuralElement
)
{
if
(
!
this
.
structuralElement
)
{
...
@@ -66,6 +74,9 @@ export default {
...
@@ -66,6 +74,9 @@ export default {
blockedByAnotherUser
()
{
blockedByAnotherUser
()
{
return
this
.
blocked
&&
this
.
userId
!==
this
.
blockerId
;
return
this
.
blocked
&&
this
.
userId
!==
this
.
blockerId
;
},
},
tocText
()
{
return
this
.
showToolbar
?
this
.
$gettext
(
'
Inhaltsverzeichnis ausblenden
'
)
:
this
.
$gettext
(
'
Inhaltsverzeichnis anzeigen
'
);
}
},
},
methods
:
{
methods
:
{
...
mapActions
({
...
mapActions
({
...
@@ -78,6 +89,9 @@ export default {
...
@@ -78,6 +89,9 @@ export default {
companionInfo
:
'
companionInfo
'
,
companionInfo
:
'
companionInfo
'
,
addBookmark
:
'
addBookmark
'
,
addBookmark
:
'
addBookmark
'
,
lockObject
:
'
lockObject
'
,
lockObject
:
'
lockObject
'
,
setConsumeMode
:
'
coursewareConsumeMode
'
,
setViewMode
:
'
coursewareViewMode
'
,
setShowToolbar
:
'
coursewareShowToolbar
'
}),
}),
async
editElement
()
{
async
editElement
()
{
if
(
this
.
blockedByAnotherUser
)
{
if
(
this
.
blockedByAnotherUser
)
{
...
@@ -118,6 +132,13 @@ export default {
...
@@ -118,6 +132,13 @@ export default {
oerElement
()
{
oerElement
()
{
this
.
showElementOerDialog
(
true
);
this
.
showElementOerDialog
(
true
);
},
},
toggleTOC
()
{
this
.
setShowToolbar
(
!
this
.
showToolbar
);
},
showConsumeMode
()
{
this
.
setViewMode
(
'
read
'
);
this
.
setConsumeMode
(
true
);
},
},
},
};
};
</
script
>
</
script
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment