<commit_before>extends ../layout

block content
  .section-header
    .container
      .row.vertical-align
        .col-md-9
          .section-header-title
            h2 #{name}
        .col-md-3
          a(href="/#{username}/#{courseId}/edit").btn.btn-block.btn-default Edit
  .section-body
    .container
      .row
        .col-md-9
          .single
            p.lead #{description}
            table.table.table-hover
              thead
                tr
                  th Title
                  th Content
              tbody
              each value in sections
                tr
                  td
                    a(href="/#{username}/#{courseId}/#{value.id}") #{value.title}
                  td #{value.content}
                  
            form.form-horizontal(action="/courses/#{courseId}", method="POST")
              fieldset
                .form-group
                  label.col-md-4.control-label(for="title") Title
                  .col-md-4
                    input.form-control.input-md(name="title", required, type="text")
                .form-group
                  label.col-md-4.control-label(for="content") Content
                  .col-md-4
                    input.form-control.input-md(name="content", required, type="text")
                .form-group
                  .col-md-4.col-md-offset-4
                    button.btn.btn-primary Create new section

                
                
          
        .col-md-3
          .panel.panel-default
            .panel-heading.text-center
                .panel-title #{username}
              .panel-body #{username} is an ipsum dolor sit amet, consectetur
              | adipisicing elit, sed do eiusmod tempor incididunt ut labore et 
<commit_msg>improve section btn on edit course view<commit_after>extends ../layout

block content
  .section-header
    .container
      .row.vertical-align
        .col-md-9
          .section-header-title
            h2 #{name}
        .col-md-3
          .row
            .col-md-6.col-md-offset-5
              a(href="/#{username}/#{courseId}").btn.btn-block.btn-primary
                i.fa.fa-bars
                | &nbsp;Sections
  .section-body
    .container
      .row
        .col-md-9
          .single
            p.lead #{description}
            table.table.table-hover
              thead
                tr
                  th Title
                  th Content
              tbody
              each value in sections
                tr
                  td
                    a(href="/#{username}/#{courseId}/#{value.id}") #{value.title}
                  td #{value.content}
                  
            form.form-horizontal(action="/courses/#{courseId}", method="POST")
              fieldset
                .form-group
                  label.col-md-4.control-label(for="title") Title
                  .col-md-4
                    input.form-control.input-md(name="title", required, type="text")
                .form-group
                  label.col-md-4.control-label(for="content") Content
                  .col-md-4
                    input.form-control.input-md(name="content", required, type="text")
                .form-group
                  .col-md-4.col-md-offset-4
                    button.btn.btn-primary Create new section

                
                
          
        .col-md-3
          .panel.panel-default
            .panel-heading.text-center
                .panel-title #{username}
              .panel-body #{username} is an ipsum dolor sit amet, consectetur
              | adipisicing elit, sed do eiusmod tempor incididunt ut labore et 

{'fraction_non_alphanumeric': 0.10916552667578659, 'fraction_numerical': 0.006566347469220246, 'mean_word_length': 1.0927303949627933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1437816', 'n_tokens_mistral': 1004, 'n_tokens_neox': 958, 'n_words': 181}