<commit_before>#course_home
  #details.block
    %h3 Course Details
    %dl
      %dt Course Title:
      %dd= @topic.title
      %dt Course Code:
      %dd.last= @topic.code
      %dt Course Date:
      %dd.last= @topic.year
  #students.block
    .clearfix{:style => "height:#{[[255,((@topic.person_courses.count / 4)+1) * 85].min,85].max}px;padding-top:1ex"}
      - @topic.person_courses.each do |pc|
        - next unless pc.person
        = render :partial => "person", :object => pc.person, :locals => {:status => pc.status}
    - if @topic.person_courses.count > 12
      #expand_students=   link_to_function "See all students...", "$('students').down('.clearfix').setStyle({height:'auto'});$('expand_students').hide()"
  .details_home_container    
    #next_lesson.block
      .details_left
        %h4 Next lesson
        = link_to image_tag("timetable.png"), person_timetables_url(@topic)
      .details_right   
        - if @next_timetable_event
          #lesson_block
            .timetable_event_link= link_to @next_timetable_event.title, person_timetables_url(@topic)          
            .timetable_event_date
              .timetable_event_header= @next_timetable_event.start.strftime('%A')
              .small_text= @next_timetable_event.start.strftime('%H.%M%P')
              .small_text
                Room:
                = @next_timetable_event.rooms.join ", "
            .timetable_event_location
              .small_text= @next_timetable_event.start.strftime('%d/%m/%y')            
              .small_text= @next_timetable_event.teachers.map{|t| t.name}.join ", "
        - else 
          %b There are no current timetable events.
  .details_home_container.last
    #reviews.block
      .details_left
        %h4 Reviews
      .details_right
  .details_home_container
    #moodle_course.block
      .details_left
        %h4 Moodle
        = link_to image_tag("moodle.png"), "#{Settings.moodle_host}#{Settings.moodle_path}"
      .details_right
      - if @moodle_courses
        #moodle_course_list      
          - @moodle_courses.each do |mdl|
            .mdl_course{:style => "font-weight: #{mdl["canedit"] == "1" ? "bold" : "normal"}"}= link_to mdl["fullname"], "#{Settings.moodle_host}#{Settings.moodle_path}/course/view.php?id=#{mdl["id"]}"
      - else
        %p There are no current Moodle enrolments
  .details_home_container.last      <commit_msg>Course next lesson link linked to person timetables insetead of course ones This fixes #18<commit_after>#course_home
  #details.block
    %h3 Course Details
    %dl
      %dt Course Title:
      %dd= @topic.title
      %dt Course Code:
      %dd.last= @topic.code
      %dt Course Date:
      %dd.last= @topic.year
  #students.block
    .clearfix{:style => "height:#{[[255,((@topic.person_courses.count / 4)+1) * 85].min,85].max}px;padding-top:1ex"}
      - @topic.person_courses.each do |pc|
        - next unless pc.person
        = render :partial => "person", :object => pc.person, :locals => {:status => pc.status}
    - if @topic.person_courses.count > 12
      #expand_students=   link_to_function "See all students...", "$('students').down('.clearfix').setStyle({height:'auto'});$('expand_students').hide()"
  .details_home_container    
    #next_lesson.block
      .details_left
        %h4 Next lesson
        = link_to image_tag("timetable.png"), person_timetables_url(@topic)
      .details_right   
        - if @next_timetable_event
          #lesson_block
            .timetable_event_link= link_to @next_timetable_event.title, course_timetables_url(@topic)          
            .timetable_event_date
              .timetable_event_header= @next_timetable_event.start.strftime('%A')
              .small_text= @next_timetable_event.start.strftime('%H.%M%P')
              .small_text
                Room:
                = @next_timetable_event.rooms.join ", "
            .timetable_event_location
              .small_text= @next_timetable_event.start.strftime('%d/%m/%y')            
              .small_text= @next_timetable_event.teachers.map{|t| t.name}.join ", "
        - else 
          %b There are no current timetable events.
  .details_home_container.last
    #reviews.block
      .details_left
        %h4 Reviews
      .details_right
  .details_home_container
    #moodle_course.block
      .details_left
        %h4 Moodle
        = link_to image_tag("moodle.png"), "#{Settings.moodle_host}#{Settings.moodle_path}"
      .details_right
      - if @moodle_courses
        #moodle_course_list      
          - @moodle_courses.each do |mdl|
            .mdl_course{:style => "font-weight: #{mdl["canedit"] == "1" ? "bold" : "normal"}"}= link_to mdl["fullname"], "#{Settings.moodle_host}#{Settings.moodle_path}/course/view.php?id=#{mdl["id"]}"
      - else
        %p There are no current Moodle enrolments
  .details_home_container.last      
{'fraction_non_alphanumeric': 0.13318284424379231, 'fraction_numerical': 0.007387646213831316, 'mean_word_length': 2.4939068100358424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7226392', 'n_tokens_mistral': 1669, 'n_tokens_neox': 1600, 'n_words': 268}