Special topics rows on the Courses page have misaligned columns
Maintainer antworten meist innerhalb von 7 Tagen
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 82/100
Rechercherichtung
Öffne app/templates/snips/courseElements/adminCourseTable.html und vergleiche die <td> der Spalte Course Materials in der regulären Kurszeile bei etwa Zeile 142 mit den Zeilen für Special Topics um Zeile 304-312, die direkt von faculty_credit zu LAST EDITED BY springen. Füge dort die fehlende Resources-Zelle hinzu, die den Ersatztext der regulären Zeile übernimmt, wenn nichts gesetzt ist, und prüfe, ob die Reihenfolge der Kopfzellen übereinstimmt. Starte danach CAS lokal, gehe zu Courses -> Spring 2022 -> African and African American Studies und bestätige, dass eine noch nicht genehmigte Special-Topics-Zeile mit dem Header übereinstimmt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- JavaScript
- Sterne
- 0
- Forks
- 3
- Ø Merge
- 8 T. 5 Std.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus BCStudentSoftwareDevTeam/cas
-
Courses sidebar jumps up when opening the Programs dropdownEvtl. vergeben @Ayeyomeday hat das vor 11 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
BCStudentSoftwareDevTeam/cas#473 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 7 Tagen
-
Adding a cross-listing through Edit Course creates a duplicate course rowEvtl. vergeben @mathew2005 hat das vor 11 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
BCStudentSoftwareDevTeam/cas#471 ·
Maintainer antworten meist innerhalb von 7 Tagen
-
Footer displays on the right side of the page instead of at the bottomEvtl. vergeben @bakobagassas hat das vor 15 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
BCStudentSoftwareDevTeam/cas#452 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 7 Tagen
-
Improve menu selectionEvtl. vergeben @bakobagassas hat das vor 26 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
BCStudentSoftwareDevTeam/cas#448 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 7 Tagen
-
Update ReadMeEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
BCStudentSoftwareDevTeam/cas#444 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 7 Tagen
Alle Issues in BCStudentSoftwareDevTeam/cas
Ähnliche Issues
-
marketing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
-
data good first issue help wanted
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
pacocartones/free-llm-api-hub#747 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
Berserk-hub150/skillhawk#282 · 1 Kommentar ·