mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-03 09:23:41 -04:00
Show something reasonable when class has no students
This commit is contained in:
parent
cf76434943
commit
ebc94e6e4b
2 changed files with 30 additions and 21 deletions
app
|
@ -1339,6 +1339,7 @@
|
|||
unarchive_class: "unarchive class"
|
||||
unarchive_this_class: "Unarchive this class"
|
||||
no_students_yet: "This class has no students yet."
|
||||
try_refreshing: "(You may need to refresh the page)"
|
||||
add_students: "Add Students"
|
||||
create_new_class: "Create a New Class"
|
||||
class_overview: "Class Overview" # View Class page
|
||||
|
|
|
@ -108,6 +108,7 @@ block content
|
|||
+copyCodes
|
||||
+addStudentsButton
|
||||
|
||||
if view.students.length > 0
|
||||
ul.nav.nav-tabs.m-t-5(role='tablist')
|
||||
- var activeTab = state.get('activeTab');
|
||||
li(class=(activeTab === "#students-tab" ? 'active' : ''))
|
||||
|
@ -131,6 +132,13 @@ block content
|
|||
else
|
||||
+enrollmentStatusTab
|
||||
|
||||
else
|
||||
.text-center.m-t-5.m-b-5
|
||||
.text-h2
|
||||
span(data-i18n="teacher.no_students_yet")
|
||||
.text-h4
|
||||
span(data-i18n="teacher.try_refreshing")
|
||||
|
||||
mixin breadcrumbs
|
||||
.breadcrumbs
|
||||
a(data-i18n='teacher.my_classes' href='/teachers/classes')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue