Make unused enrollments section hidden for anonymous users in TeacherCoursesView

This commit is contained in:
Scott Erickson 2015-12-04 15:02:58 -08:00
parent ed478e7c5e
commit a573f49c98

View file

@ -55,10 +55,11 @@ block content
br
.section-header Available Courses
p.text-center
strong.spr Unused enrollments available:
strong.spr= view.prepaids.totalAvailable()
a.btn.btn-success.btn(href="/courses/purchase") Purchase Enrollments
if !me.isAnonymous()
p.text-center
strong.spr Unused enrollments available:
strong.spr= view.prepaids.totalAvailable()
a.btn.btn-success.btn(href="/courses/purchase") Purchase Enrollments
p
| All students get access to Introduction to Computer Science for free.