Special topics rows on the Courses page have misaligned columns
Mantenedores costumam responder em até 7 dias
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 82/100
Direção de pesquisa
Abra app/templates/snips/courseElements/adminCourseTable.html e compare o <td> de Course Materials da linha de curso regular, perto da linha 142, com as linhas de special topics por volta das linhas 304-312, que pulam de faculty_credit diretamente para LAST EDITED BY. Adicione ali a célula Resources que está faltando, espelhando o texto de fallback da linha regular quando nada estiver definido, e verifique se a ordem das células do cabeçalho corresponde. Depois, execute o CAS localmente, acesse Courses -> Spring 2022 -> African and African American Studies e confirme que uma linha de special topics ainda não aprovada se alinha com o cabeçalho.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- JavaScript
- Estrelas
- 0
- Forks
- 3
- Merge médio
- 8d 5h
- PRs com merge (30d)
- 6
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de BCStudentSoftwareDevTeam/cas
-
Courses sidebar jumps up when opening the Programs dropdownTalvez já em andamento @Ayeyomeday assumiu há 11 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
BCStudentSoftwareDevTeam/cas#473 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 7 dias
-
Adding a cross-listing through Edit Course creates a duplicate course rowTalvez já em andamento @mathew2005 assumiu há 11 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
BCStudentSoftwareDevTeam/cas#471 ·
Mantenedores costumam responder em até 7 dias
-
Footer displays on the right side of the page instead of at the bottomTalvez já em andamento @bakobagassas assumiu há 15 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
BCStudentSoftwareDevTeam/cas#452 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 7 dias
-
Improve menu selectionTalvez já em andamento @bakobagassas assumiu há 26 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
BCStudentSoftwareDevTeam/cas#448 · 1 responsável ·
Mantenedores costumam responder em até 7 dias
-
Update ReadMeTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
BCStudentSoftwareDevTeam/cas#444 · 2 comentários ·
Mantenedores costumam responder em até 7 dias
Todas as issues de BCStudentSoftwareDevTeam/cas
Issues semelhantes
-
marketing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
-
data good first issue help wanted
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
pacocartones/free-llm-api-hub#747 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
Berserk-hub150/skillhawk#282 · 1 comentário ·