diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2024-09-09 08:51:37 +0200 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2024-09-09 08:51:37 +0200 |
| commit | 37107768e799e2eeada8e839bd4a30e672616324 (patch) | |
| tree | a2803c850a6bfc688e19e359e134a4827cce2835 | |
| parent | 66956d7ca6d3e4ec1cf1e59065dc31e1e8978650 (diff) | |
fix pipeline
| -rw-r--r-- | resources/vue/components/courseware/CoursewareActivityItem.vue | 84 | ||||
| -rw-r--r-- | resources/vue/components/courseware/panel/CoursewarePanelComComments.vue | 2 |
2 files changed, 22 insertions, 64 deletions
diff --git a/resources/vue/components/courseware/CoursewareActivityItem.vue b/resources/vue/components/courseware/CoursewareActivityItem.vue index f4207eb..a99ee4c 100644 --- a/resources/vue/components/courseware/CoursewareActivityItem.vue +++ b/resources/vue/components/courseware/CoursewareActivityItem.vue @@ -1,41 +1,24 @@ <template> <li class="cw-activity-item"> - <img class="cw-activity-avatar" :src="avatar" width="48" height="48"> + <img class="cw-activity-avatar" :src="avatar" width="48" height="48" /> <header class="cw-activity-title"> - <h3><a :href="linkUrl" :title="elementTitle">{{ headerTitle }}</a></h3> - <p><a :href="userUrl">{{ username }}</a></p> + <h3> + <a :href="linkUrl" :title="elementTitle">{{ headerTitle }}</a> + </h3> + <p> + <a :href="userUrl">{{ username }}</a> + </p> <p><span v-html="content"></span></p> </header> - <div class="cw-activity-buttons-wrapper"> - </div> - - - - <!-- <p v-if="item.username" class="cw-activity-item-user"> - <a :href="userUrl"><studip-icon role="inactive" shape="headache" />{{ username }}</a> - </p> - <p v-if="item.readableDate" class="cw-activity-item-date"> - <studip-icon role="inactive" shape="timetable" />{{ item.readableDate }} - </p> - <p class="cw-activity-item-element"> - <a :href="linkUrl" :title="elementTitle"><studip-icon role="inactive" shape="content2" />{{ unitTitle }} | {{ breadcrumb }}</a> - </p> - <p v-if="content" class="cw-activity-item-content"> - <studip-icon role="inactive" :shape="shape" /><span v-html="content"></span> - </p> --> + <div class="cw-activity-buttons-wrapper"></div> </li> </template> <script> -import StudipIcon from './../StudipIcon.vue'; - import { mapGetters } from 'vuex'; export default { name: 'courseware-activity-item', - components: { - StudipIcon, - }, props: { item: Object, }, @@ -64,42 +47,16 @@ export default { return this.user.meta.avatar.small; }, linkUrl() { - return STUDIP.URLHelper.base_url + 'dispatch.php/course/courseware/courseware/' + this.item.unitId + '?cid=' + this.item.contextId + '#/structural_element/' + this.item.elementId; + return ( + STUDIP.URLHelper.base_url + + 'dispatch.php/course/courseware/courseware/' + + this.item.unitId + + '?cid=' + + this.item.contextId + + '#/structural_element/' + + this.item.elementId + ); }, - // shape() { - // switch (this.item.type) { - // case 'interacted': - // return 'item'; - // case 'answered': - // return 'support'; - // case 'created': - // return 'add'; - // case 'edited': - // return 'edit'; - // default: - // return 'question-circle-full'; - // } - // }, - // breadcrumb() { - // let breadcrumb = this.element.attributes.title; - // let currentStructuralElement = this.element; - // let i = 1; //max breadcrumb navigation depth check - // while (currentStructuralElement.relationships.parent.data !== null) { - // let parentId = currentStructuralElement.relationships.parent.data.id; - // currentStructuralElement = this.getStructuralElementById({ id: parentId }); - // if (currentStructuralElement === undefined) { - // break; - // } - // if (++i <= 3) { - // breadcrumb = currentStructuralElement.attributes.title + '/' + breadcrumb; - // if (currentStructuralElement.relationships.parent.data !== null && i === 3) { - // breadcrumb = '.../' + breadcrumb; - // } - // } - // } - - // return breadcrumb; - // }, element() { return this.getStructuralElementById({ id: this.item.elementId }); }, @@ -108,14 +65,15 @@ export default { }, unitTitle() { if (this.item.unit) { - return this.getStructuralElementById({id: this.item.unit.relationships['structural-element'].data.id }).attributes.title; + return this.getStructuralElementById({ id: this.item.unit.relationships['structural-element'].data.id }) + .attributes.title; } return '-'; }, headerTitle() { - return this.unitTitle === this.elementTitle ? this.unitTitle : this.unitTitle + ' | ' + this.elementTitle; - } + return this.unitTitle === this.elementTitle ? this.unitTitle : this.unitTitle + ' | ' + this.elementTitle; + }, }, }; </script> diff --git a/resources/vue/components/courseware/panel/CoursewarePanelComComments.vue b/resources/vue/components/courseware/panel/CoursewarePanelComComments.vue index 547ea2d..a33b9e5 100644 --- a/resources/vue/components/courseware/panel/CoursewarePanelComComments.vue +++ b/resources/vue/components/courseware/panel/CoursewarePanelComComments.vue @@ -2,7 +2,7 @@ <div v-if="commentsLoaded" class="cw-panel-com-comments"> <h2>{{ $gettext('Kommentare und Anmerkungen') }}</h2> <CoursewareCommentsBlocks /> - <!-- <CoursewareCommentsStructuralElements /> --> + <CoursewareCommentsStructuralElements v-if="false"/> </div> </template> |
