-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into pe/update-dependencies
- Loading branch information
Showing
18 changed files
with
946 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...pp/app/overview/course-conversations/course-wide-search/course-wide-search.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<div class="conversation-header"> | ||
<div class="d-flex justify-content-between"> | ||
<div> | ||
@if (!courseWideSearchConfig.searchTerm) { | ||
<h3 class="conversation-name d-inline-block rounded p-2 info">All Messages</h3> | ||
} @else { | ||
<h3 class="conversation-name d-inline-block rounded p-2 info">Search Results for "{{ courseWideSearchConfig.searchTerm }}"</h3> | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row p-3 justify-content-center coursewide-search"> | ||
<div class="justify-content-center"> | ||
<div class="row mt-3"> | ||
<!-- loading messages --> | ||
@if (isFetchingPosts) { | ||
<div class="envelope"> | ||
<fa-icon size="3x" [icon]="faCircleNotch" [spin]="true" /> | ||
</div> | ||
} | ||
<!-- no message exist --> | ||
@if (!isFetchingPosts && totalNumberOfPosts === 0) { | ||
<div class="envelope"> | ||
<fa-icon size="5x" [icon]="faEnvelope" /> | ||
</div> | ||
} | ||
<!-- list of messages --> | ||
<div | ||
id="scrollableDiv" | ||
#container | ||
class="{{ totalNumberOfPosts !== 0 ? 'posting-infinite-scroll-container' : '' }}" | ||
infinite-scroll | ||
[scrollWindow]="false" | ||
(scrolledUp)="fetchNextPage()" | ||
> | ||
<!-- list of all top level posts --> | ||
<!-- answers are opened in the thread sidebar --> | ||
@for (post of posts; track postsTrackByFn($index, post)) { | ||
<jhi-posting-thread | ||
#postingThread | ||
[lastReadDate]="post.conversation?.lastMessageDate" | ||
[hasChannelModerationRights]="!!getAsChannel(post.conversation)?.hasChannelModerationRights" | ||
[id]="'item-' + post.id" | ||
[post]="post" | ||
[showAnswers]="false" | ||
[readOnlyMode]="!!getAsChannel(post.conversation)?.isArchived" | ||
[isCourseMessagesPage]="true" | ||
[isCommunicationPage]="true" | ||
(openThread)="setPostForThread($event)" | ||
/> | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
28 changes: 28 additions & 0 deletions
28
...pp/app/overview/course-conversations/course-wide-search/course-wide-search.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.coursewide-search { | ||
.bold-line { | ||
height: 1px; | ||
background: var(--metis-light-gray); | ||
} | ||
|
||
.form-select { | ||
border: 0; | ||
box-shadow: none !important; | ||
} | ||
|
||
.selection-prefix { | ||
padding-top: 0.375rem !important; | ||
} | ||
|
||
.posting-infinite-scroll-container { | ||
max-height: 700px; | ||
overflow-y: auto; | ||
} | ||
|
||
.envelope { | ||
text-align: center; | ||
opacity: 0.75; | ||
height: 250px; | ||
padding-top: 100px; | ||
padding-bottom: 100px; | ||
} | ||
} |
Oops, something went wrong.