<commit_before>- extends '__base.jade'

block style
  link(rel='stylesheet', href='{{ STATIC_URL }}brand/css/brand.css')

block content

  h1 Brands List

  div
    form(method="get")
      input(type="text", name="search", value="{{search}}")
      input(type="submit", value="Search")
      
  if search
    h2 Search results for {{search}}
    
  div.pagination
    span.step-links
      if brands.has_previous
        a(href="?page={{ brands.previous_page_number }}") Previous  
      span.current Page {{ brands.number }} of {{ brands.paginator.num_pages }}.  
      if brands.has_next
        a(href="?page={{ brands.next_page_number }}") Next

  br

  table
    thead
      tr: th Brand
          th BSIN
          th Logo
          th Link
    tbody
      for brand in brands
        tr
          td.brand-table-td-name
            a(href='{% url "brand" brand.bsin %}') {{ brand.brand_nm }}
          td.brand-table-td-bsin
            a(href='{% url "brand" brand.bsin %}') {{ brand.bsin }}
          td.brand-table-td-logo
            if brand.brand_logo
              img(src="{{ MEDIA_URL }}{{ brand.brand_logo.name }}", title=brand.brand_nm, alt=brand.brand_nm, height='50')
            else
              img(src="{{ STATIC_URL }}brand/images/no_picture.gif", title=brand.brand_nm, alt=brand.brand_nm, height='50')
          td.brand-table-td-link
            if brand.brand_link
              a(href=brand.brand_link) {{ brand.brand_link }}
            else
              h4 No link
              
  div.pagination
    span.step-links
      if brands.has_previous
        a(href="?page={{ brands.previous_page_number }}") Previous  
      span.current Page {{ brands.number }} of {{ brands.paginator.num_pages }}.  
      if brands.has_next
        a(href="?page={{ brands.next_page_number }}") Next
<commit_msg>Change display of brand list<commit_after>- extends '__base.jade'

block style
  link(rel='stylesheet', href='{{ STATIC_URL }}brand/css/brand.css')

block content

  h1 Brands List

  div
    form(method="get")
      input(type="text", name="search", value="{{search}}")
      input(type="submit", value="Search")
      
  if search
    h2 Search results for {{search}}
    
  div.pagination
    span.step-links
      if brands.has_previous
        a(href="?page={{ brands.previous_page_number }}") Previous  
      span.current Page {{ brands.number }} of {{ brands.paginator.num_pages }}.  
      if brands.has_next
        a(href="?page={{ brands.next_page_number }}") Next

  br

  table
    thead
      tr: th Logo
          th BSIN
          th Brand Name
          th Website
    tbody
      for brand in brands
        tr
          td.brand-table-td-logo
            if brand.brand_logo
              img(src="{{ MEDIA_URL }}{{ brand.brand_logo.name }}", title=brand.brand_nm, alt=brand.brand_nm, height='50')
            else
              img(src="{{ STATIC_URL }}brand/images/no_picture.gif", title=brand.brand_nm, alt=brand.brand_nm, height='50')
          td.brand-table-td-bsin
            a(href='{% url "brand" brand.bsin %}') {{ brand.bsin }}
          td.brand-table-td-name
            a(href='{% url "brand" brand.bsin %}') {{ brand.brand_nm }}
          td.brand-table-td-link
            if brand.brand_link
              a(href=brand.brand_link) {{ brand.brand_link }}
            else
              h4 No link
              
  div.pagination
    span.step-links
      if brands.has_previous
        a(href="?page={{ brands.previous_page_number }}") Previous  
      span.current Page {{ brands.number }} of {{ brands.paginator.num_pages }}.  
      if brands.has_next
        a(href="?page={{ brands.next_page_number }}") Next

{'fraction_non_alphanumeric': 0.1364501223158467, 'fraction_numerical': 0.0038053818972546886, 'mean_word_length': 2.156089193825043, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5986404', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1139, 'n_words': 239}