<commit_before>extends /templates/base

block content

  .text-center
    if me.isAnonymous() || !me.get('name')
      .welcome Welcome!
    else
      .welcome Welcome, #{me.get('name')}!

  .container-fluid
    .row
      .col-md-2
      .col-md-8
        .well
          .text-center
            strong.uppercase Getting Started with Courses
          br
          .text-center
            a.btn.btn-info(href='http://codecombat.com/docs/CodeCombatHourofCodeGettingStartedGuide.pdf') Download Getting Started Guide [PDF]
          br
          ol
            li Create a new class by clicking the green "Create New Class" button below.
            li Once you've created a class, click the blue "Add Students" button.
            li You'll see student's progress below as they sign up and join your class.
          br
          .text-center
            strong Additional Resources
          ul
            li
              span.spr Download/print our
              a.spr(href='http://codecombat.com/docs/CodeCombatTeacherGuideCourse1.pdf') Course 1 Teacher's Guide
              span for explanations and solutions to each level.
            li
              span.spr Complete our
              a.spr(href='/teachers/freetrial') Teacher Survey
              span to get 15 more hours of content for FREE for 2 months.
            li
              span.spr Visit our
              a.spr(href='http://discourse.codecombat.com/c/teachers') Teacher Forums
              span to connect to fellow educators who are using CodeCombat.

  .section-header Your Classes

  if view.classrooms.models.length > 0
    .container-fluid
      each classroom in view.classrooms.models
        +classroom(classroom)
  else
    .no-students No classes yet!

  .text-center
    button.btn.btn-lg.btn-success.uppercase.create-new-class create new class

  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
    
  p
    | All students get access to Introduction to Computer Science for free.
    | One enrollment per student is required to assign them to paid CodeCombat courses.
    | A single student does not need multiple enrollments to access all paid courses.
    
  .container-fluid
    - var courses = view.courses.models;
    - var i = 0;
    while i < courses.length
      - var course = courses[i];<commit_msg>Make unused enrollments section hidden for anonymous users in TeacherCoursesView<commit_after>extends /templates/base

block content

  .text-center
    if me.isAnonymous() || !me.get('name')
      .welcome Welcome!
    else
      .welcome Welcome, #{me.get('name')}!

  .container-fluid
    .row
      .col-md-2
      .col-md-8
        .well
          .text-center
            strong.uppercase Getting Started with Courses
          br
          .text-center
            a.btn.btn-info(href='http://codecombat.com/docs/CodeCombatHourofCodeGettingStartedGuide.pdf') Download Getting Started Guide [PDF]
          br
          ol
            li Create a new class by clicking the green "Create New Class" button below.
            li Once you've created a class, click the blue "Add Students" button.
            li You'll see student's progress below as they sign up and join your class.
          br
          .text-center
            strong Additional Resources
          ul
            li
              span.spr Download/print our
              a.spr(href='http://codecombat.com/docs/CodeCombatTeacherGuideCourse1.pdf') Course 1 Teacher's Guide
              span for explanations and solutions to each level.
            li
              span.spr Complete our
              a.spr(href='/teachers/freetrial') Teacher Survey
              span to get 15 more hours of content for FREE for 2 months.
            li
              span.spr Visit our
              a.spr(href='http://discourse.codecombat.com/c/teachers') Teacher Forums
              span to connect to fellow educators who are using CodeCombat.

  .section-header Your Classes

  if view.classrooms.models.length > 0
    .container-fluid
      each classroom in view.classrooms.models
        +classroom(classroom)
  else
    .no-students No classes yet!

  .text-center
    button.btn.btn-lg.btn-success.uppercase.create-new-class create new class

  br
  .section-header Available Courses
  
  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.
    | One enrollment per student is required to assign them to paid CodeCombat courses.
    | A single student does not need multiple enrollments to access all paid courses.
    
  .container-fluid
    - var courses = view.courses.models;
    - var i = 0;
    while i < courses.length
      - var course = courses[i];
{'fraction_non_alphanumeric': 0.07643564356435643, 'fraction_numerical': 0.0035643564356435645, 'mean_word_length': 2.074254412659769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4731873', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1358, 'n_words': 454}