mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-03 01:14:46 -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_class: "unarchive class"
|
||||||
unarchive_this_class: "Unarchive this class"
|
unarchive_this_class: "Unarchive this class"
|
||||||
no_students_yet: "This class has no students yet."
|
no_students_yet: "This class has no students yet."
|
||||||
|
try_refreshing: "(You may need to refresh the page)"
|
||||||
add_students: "Add Students"
|
add_students: "Add Students"
|
||||||
create_new_class: "Create a New Class"
|
create_new_class: "Create a New Class"
|
||||||
class_overview: "Class Overview" # View Class page
|
class_overview: "Class Overview" # View Class page
|
||||||
|
|
|
@ -108,28 +108,36 @@ block content
|
||||||
+copyCodes
|
+copyCodes
|
||||||
+addStudentsButton
|
+addStudentsButton
|
||||||
|
|
||||||
ul.nav.nav-tabs.m-t-5(role='tablist')
|
if view.students.length > 0
|
||||||
- var activeTab = state.get('activeTab');
|
ul.nav.nav-tabs.m-t-5(role='tablist')
|
||||||
li(class=(activeTab === "#students-tab" ? 'active' : ''))
|
- var activeTab = state.get('activeTab');
|
||||||
a.students-tab-btn(href='#students-tab')
|
li(class=(activeTab === "#students-tab" ? 'active' : ''))
|
||||||
.small-details.text-center(data-i18n='teacher.students')
|
a.students-tab-btn(href='#students-tab')
|
||||||
.tab-spacer
|
.small-details.text-center(data-i18n='teacher.students')
|
||||||
li(class=(activeTab === "#course-progress-tab" ? 'active' : ''))
|
.tab-spacer
|
||||||
a.course-progress-tab-btn(href='#course-progress-tab')
|
li(class=(activeTab === "#course-progress-tab" ? 'active' : ''))
|
||||||
.small-details.text-center(data-i18n='teacher.course_progress')
|
a.course-progress-tab-btn(href='#course-progress-tab')
|
||||||
.tab-spacer
|
.small-details.text-center(data-i18n='teacher.course_progress')
|
||||||
li(class=(activeTab === "#enrollment-status-tab" ? 'active' : ''))
|
.tab-spacer
|
||||||
a.course-progress-tab-btn(href='#enrollment-status-tab')
|
li(class=(activeTab === "#enrollment-status-tab" ? 'active' : ''))
|
||||||
.small-details.text-center(data-i18n='teacher.enrollment_status')
|
a.course-progress-tab-btn(href='#enrollment-status-tab')
|
||||||
.tab-filler
|
.small-details.text-center(data-i18n='teacher.enrollment_status')
|
||||||
|
.tab-filler
|
||||||
|
|
||||||
.tab-content
|
.tab-content
|
||||||
if activeTab === '#students-tab'
|
if activeTab === '#students-tab'
|
||||||
+studentsTab
|
+studentsTab
|
||||||
else if activeTab === '#course-progress-tab'
|
else if activeTab === '#course-progress-tab'
|
||||||
+courseProgressTab
|
+courseProgressTab
|
||||||
else
|
else
|
||||||
+enrollmentStatusTab
|
+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
|
mixin breadcrumbs
|
||||||
.breadcrumbs
|
.breadcrumbs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue