<commit_before>extends ./layout

include ./mixin/listHelper
include ./mixin/pagination
include ./mixin/actions

block body
  div.horizontal.layout
      h3 List of #{instance.name}
      div.flex
      div
        +globalActions('list', instance)
        if instance.config.add
          a(href='#{instance.uri}/add')
            paper-button(raised='').button-green
              iron-icon(icon='check')
              | &nbsp;Create new record

  div.layout
    table.flex
      thead
        +listHead(fields)
      tbody
        each obj in list
          +listRow(obj, instance)

    if total > 0
      div: mark Total: #{total}
    hr
    +pagination(instance.uri, (req.param('page') || 1), total, instance.config.list.limit, requestProcessor)

    if list.length == 0
      .alert.alert-info
        i.glyphicon.glyphicon-warning-sign
        | &nbsp;#{__('No records found !')}<commit_msg>moved to paper-fab<commit_after>extends ./layout

include ./mixin/listHelper
include ./mixin/pagination
include ./mixin/actions

block body
  div.horizontal.layout
      h3 List of #{instance.name}
      div.flex
      div
        +globalActions('list', instance)


  div.layout
    table.flex
      thead
        +listHead(fields)
      tbody
        each obj in list
          +listRow(obj, instance)

    if total > 0
      div: mark Total: #{total}
    hr
    +pagination(instance.uri, (req.param('page') || 1), total, instance.config.list.limit, requestProcessor)

    if list.length == 0
      .alert.alert-info
        i.glyphicon.glyphicon-warning-sign
        | &nbsp;#{__('No records found !')}

    if instance.config.add
      a(href='#{instance.uri}/add')
        paper-fab(raised='').button-green
          iron-icon(icon='plus')
          | &nbsp;Create new record
{'fraction_non_alphanumeric': 0.1267605633802817, 'fraction_numerical': 0.004507042253521127, 'mean_word_length': 2.229090909090909, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4400164', 'n_tokens_mistral': 558, 'n_tokens_neox': 537, 'n_words': 122}