Special topics rows on the Courses page have misaligned columns
Maintainer thường phản hồi trong vòng 7 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
Hướng nghiên cứu
Mở app/templates/snips/courseElements/adminCourseTable.html và so sánh <td> của cột Course Materials trong dòng khóa học thông thường, gần dòng 142, với các dòng special topics quanh dòng 304-312, vốn chuyển thẳng từ faculty_credit sang LAST EDITED BY. Thêm ô Resources còn thiếu vào đó, sao chép văn bản dự phòng của dòng thông thường khi chưa có gì được đặt, và kiểm tra thứ tự các ô tiêu đề có khớp không. Sau đó chạy CAS cục bộ, vào Courses -> Spring 2022 -> African and African American Studies, và xác nhận một dòng special topics chưa được phê duyệt thẳng hàng với tiêu đề.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
On the Courses page (/courses/<term>/<program>), special topics rows have their columns shifted one to the left starting at the Resources column. Regular course rows look fine.
For example, on Spring 2022 / AFR, the row for "AFR 286 African Presence in Latin America" (status: Submitted) shows:
steeles(the last editor) under Resources instead of Last Edited- the edit/delete icons under Last Edited instead of the last column
This only happens for special topics that are not approved yet (e.g. Submitted). Approved special topics display correctly, because once approved they're stored in the Course table and use the regular row template (see the comment in app/controllers/main_routes/course.py: "We exclude the approved courses, because they'll be stored in the 'Course' table already"). So the bug is only in the special topics row template.
Cause
In app/templates/snips/courseElements/adminCourseTable.html, regular course rows have a Course Materials <td> between Faculty Load and Last Edited (around line 142), but the special topics rows skip it and go straight from faculty_credit to LAST EDITED BY (around lines 304-312). So each special topics row has one fewer cell than the header.
Possible fix
Add a Resources <td> to the special topics rows between Faculty Load and Last Edited. If special topics don't have course materials stored, it could just show "Unspecified" like the regular rows do when nothing is set.
To reproduce
- Run CAS locally (dev container)
- Go to Courses -> Spring 2022 -> African and African American Studies
- Scroll to a special topics row that is not Approved yet (e.g. one with a "Submitted" badge) and compare its columns to the header
- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 3
- Merge trung bình
- 8 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của BCStudentSoftwareDevTeam/cas
-
Courses sidebar jumps up when opening the Programs dropdownCó thể đã có người làm @Ayeyomeday đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BCStudentSoftwareDevTeam/cas#473 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Adding a cross-listing through Edit Course creates a duplicate course rowCó thể đã có người làm @mathew2005 đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
BCStudentSoftwareDevTeam/cas#471 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Footer displays on the right side of the page instead of at the bottomCó thể đã có người làm @bakobagassas đã nhận 15 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
BCStudentSoftwareDevTeam/cas#452 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Improve menu selectionCó thể đã có người làm @bakobagassas đã nhận 26 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
BCStudentSoftwareDevTeam/cas#448 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Update ReadMeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BCStudentSoftwareDevTeam/cas#444 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 7 ngày
Tất cả issue của BCStudentSoftwareDevTeam/cas
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
-
data good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
pacocartones/free-llm-api-hub#747 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Berserk-hub150/skillhawk#282 · 1 bình luận ·