Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#12279] Instructor home page: Improve display of card header on mobile #12512

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,34 @@ <h1>Home</h1>
(click)="courseTabModel.isTabExpanded = handleClick($event, courseTabModel); this.loadFeedbackSessions(idx);">
<b class="course-details text-break">[{{ courseTabModel.course.courseId }}]: {{
courseTabModel.course.courseName }}</b>
<div class="card-header-btn-toolbar flex-lg-shrink-0" *ngIf="courseTabModel.isAjaxSuccess">
<div class="card-header btn-toolbar flex-lg-shrink-0" *ngIf="courseTabModel.isAjaxSuccess">
<span ngbDropdown>
<button class="btn btn-primary btn-sm" ngbDropdownToggle> Students </button>
<div ngbDropdownMenu (click)="$event.stopPropagation()">
<ng-container *ngIf="courseTabModel.instructorPrivilege.canModifyStudent">
<a class="btn btn-info btn-sm dropdown-item" tmRouterLink="/web/instructor/courses/enroll"
[queryParams]="{courseid: courseTabModel.course.courseId}"> Enroll
</a>
</a>
</ng-container>
<a class="btn btn-info btn-sm dropdown-item" tmRouterLink="/web/instructor/courses/details"
[queryParams]="{courseid: courseTabModel.course.courseId}"> View / Edit
</a>
</a>
</div>
</span>
<span ngbDropdown>
<button class="btn btn-primary btn-sm" ngbDropdownToggle> Instructors </button>
<div ngbDropdownMenu (click)="$event.stopPropagation()">
<a class="btn btn-light btn-sm dropdown-item" tmRouterLink="/web/instructor/courses/edit"
[queryParams]="{courseid: courseTabModel.course.courseId}"> View / Edit
</a>
</a>
</div>
</span>
<span ngbDropdown>
<button class="btn btn-primary btn-sm" ngbDropdownToggle> Sessions </button>
<div ngbDropdownMenu (click)="$event.stopPropagation()">
<a class="btn btn-light btn-sm dropdown-item" tmRouterLink="/web/instructor/sessions"
[queryParams]="{courseid: courseTabModel.course.courseId}"> Add
</a>
</a>
</div>
</span>
<span ngbDropdown>
Expand All @@ -79,24 +79,24 @@ <h1>Home</h1>
<a class="btn-archive-course btn btn-light btn-sm dropdown-item"
ngbTooltip="Archive the course so that it will not be shown in the home page any more (you can still access it from the 'Courses' tab)"
(click)="archiveCourse(courseTabModel.course.courseId)"> Archive
</a>
</a>
<a class="btn btn-light btn-sm dropdown-item" tmRouterLink='/web/instructor/courses/edit'
[queryParams]="{courseid: courseTabModel.course.courseId}"> View / Edit
</a>
</a>
<!-- <a class="btn btn-light btn-sm dropdown-item"-->
<!-- tmRouterLink='/web/instructor/courses/student-activity-logs' [queryParams]="{courseid: courseTabModel.course.courseId}"> View Logs-->
<!-- </a>-->
<ng-container *ngIf="courseTabModel.instructorPrivilege.canModifyCourse">
<a class="btn-copy-course btn btn-light btn-sm dropdown-item"
ngbTooltip="Copy the course and its corresponding sessions"
(click)="!isCopyingCourse && onCopy(courseTabModel.course.courseId, courseTabModel.course.courseName, courseTabModel.course.timeZone)"> Copy
</a>
</a>
</ng-container>
<ng-container *ngIf="courseTabModel.instructorPrivilege.canModifyCourse">
<a class="btn-delete-course btn btn-light btn-sm dropdown-item"
ngbTooltip="Delete the course and its corresponding students and sessions"
(click)="deleteCourse(courseTabModel.course.courseId)"> Delete
</a>
</a>
</ng-container>
</div>
</span>
Expand Down