<commit_before>template(name="cardDetails")
  section.card-details.js-card-details.js-perfect-scrollbar: .card-details-canvas
    .card-details-header
      +inlinedForm(classNames="js-card-details-title")
        +editCardTitleForm
      else
        a.fa.fa-times-thin.close-card-details.js-close-card-details
        if currentUser.isBoardMember
          a.fa.fa-navicon.card-details-menu.js-open-card-details-menu
        h2.card-details-title.js-card-title(
          class="{{#if canModifyCard}}js-open-inlined-form is-editable{{/if}}")
            +viewer
              = title
              if isWatching
                i.fa.fa-eye.card-details-watch

    if archived
      p.warning {{_ 'card-archived'}}

    .card-details-items
      .card-details-item.card-details-item-members
        h3.card-details-item-title {{_ 'members'}}
        each members
          +userAvatar(userId=this cardId=../_id)
          | {{! XXX Hack to hide syntaxic coloration /// }}
        if canModifyCard
          a.member.add-member.card-details-item-add-button.js-add-members(title="{{_ 'card-members-title'}}")
            i.fa.fa-plus

      .card-details-item.card-details-item-labels
        h3.card-details-item-title {{_ 'labels'}}
        a(class="{{#if canModifyCard}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
          each labels
            span.card-label(class="card-label-{{color}}" title=name)= name
        if canModifyCard
          a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
            i.fa.fa-plus

      if startAt
        .card-details-item.card-details-item-start
          h3.card-details-item-title {{_ 'card-start'}}
          +cardStartDate

      if dueAt
        .card-details-item.card-details-item-due
          h3.card-details-item-title {{_ 'card-due'}}
          +cardDueDate

    .card-details-items
      if spentTime
        .card-details-item.card-details-item-spent
          if isOvertime
            h3.card-details-item-title {{_ 'overtime-hours'}}
          else
            h3.card-details-item-title {{_ 'spent-time-hours'}}
          +cardSpentTime

    //- XXX We should use "editable" to avoid repetiting ourselves
    if canModifyCard
      h3.card-details-item-title {{_ 'description'}}
      +inlinedCardDescription(classNames="card-description js-card-description")
        +editor(autofocus=true)
          | {{getUnsavedValue 'cardDescription' _id description}}
        .edit-controls.clearfix
          button.primary(type="submit") {{_ 'save'}}
          a.fa.fa-times-thin.js-close-inlined-form
      else
        a.js-open-inlined-form
          if description
            +viewer
              = description
          else
            | {{_ 'edit'}}
        if (hasUnsavedValue 'cardDescription' _id)
          p.quiet
            | {{_ 'unsaved-description'}}
            a.js-open-inlined-form {{_ 'view-it'}}
            = ' - '
            a.js-close-inlined-form {{_ 'discard'}}
    else if description
      h3.card-details-item-title {{_ 'description'}}
      +viewer
        = description

    hr
    +checklists(cardId = _id)

    if attachments.count
      hr
      h2
        i.fa.fa-paperclip
        | {{_ 'attachments'}}

      +attachmentsGalery

    hr
    .activity-title
      h2 {{ _ 'activity'}}
      if currentUser.isBoardMember
        .material-toggle-switch
          span.toggle-switch-title {{_ 'hide-system-messages'}}
          if hiddenSystemMessages
            input.toggle-switch(type="checkbox" id="toggleButton" checked="checked")
          else
            input.toggle-switch(type="checkbox" id="toggleButton")
          label.toggle-label(for="toggleButton")
    if currentUser.isBoardMember
      +commentForm
    if isLoaded.get<commit_msg>Always display attachment section for uploading file quickly<commit_after>template(name="cardDetails")
  section.card-details.js-card-details.js-perfect-scrollbar: .card-details-canvas
    .card-details-header
      +inlinedForm(classNames="js-card-details-title")
        +editCardTitleForm
      else
        a.fa.fa-times-thin.close-card-details.js-close-card-details
        if currentUser.isBoardMember
          a.fa.fa-navicon.card-details-menu.js-open-card-details-menu
        h2.card-details-title.js-card-title(
          class="{{#if canModifyCard}}js-open-inlined-form is-editable{{/if}}")
            +viewer
              = title
              if isWatching
                i.fa.fa-eye.card-details-watch

    if archived
      p.warning {{_ 'card-archived'}}

    .card-details-items
      .card-details-item.card-details-item-members
        h3.card-details-item-title {{_ 'members'}}
        each members
          +userAvatar(userId=this cardId=../_id)
          | {{! XXX Hack to hide syntaxic coloration /// }}
        if canModifyCard
          a.member.add-member.card-details-item-add-button.js-add-members(title="{{_ 'card-members-title'}}")
            i.fa.fa-plus

      .card-details-item.card-details-item-labels
        h3.card-details-item-title {{_ 'labels'}}
        a(class="{{#if canModifyCard}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
          each labels
            span.card-label(class="card-label-{{color}}" title=name)= name
        if canModifyCard
          a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
            i.fa.fa-plus

      if startAt
        .card-details-item.card-details-item-start
          h3.card-details-item-title {{_ 'card-start'}}
          +cardStartDate

      if dueAt
        .card-details-item.card-details-item-due
          h3.card-details-item-title {{_ 'card-due'}}
          +cardDueDate

    .card-details-items
      if spentTime
        .card-details-item.card-details-item-spent
          if isOvertime
            h3.card-details-item-title {{_ 'overtime-hours'}}
          else
            h3.card-details-item-title {{_ 'spent-time-hours'}}
          +cardSpentTime

    //- XXX We should use "editable" to avoid repetiting ourselves
    if canModifyCard
      h3.card-details-item-title {{_ 'description'}}
      +inlinedCardDescription(classNames="card-description js-card-description")
        +editor(autofocus=true)
          | {{getUnsavedValue 'cardDescription' _id description}}
        .edit-controls.clearfix
          button.primary(type="submit") {{_ 'save'}}
          a.fa.fa-times-thin.js-close-inlined-form
      else
        a.js-open-inlined-form
          if description
            +viewer
              = description
          else
            | {{_ 'edit'}}
        if (hasUnsavedValue 'cardDescription' _id)
          p.quiet
            | {{_ 'unsaved-description'}}
            a.js-open-inlined-form {{_ 'view-it'}}
            = ' - '
            a.js-close-inlined-form {{_ 'discard'}}
    else if description
      h3.card-details-item-title {{_ 'description'}}
      +viewer
        = description

    hr
    +checklists(cardId = _id)

    hr
    h2
      i.fa.fa-paperclip
      | {{_ 'attachments'}}

    +attachmentsGalery

    hr
    .activity-title
      h2 {{ _ 'activity'}}
      if currentUser.isBoardMember
        .material-toggle-switch
          span.toggle-switch-title {{_ 'hide-system-messages'}}
          if hiddenSystemMessages
            input.toggle-switch(type="checkbox" id="toggleButton" checked="checked")
          else
            input.toggle-switch(type="checkbox" id="toggleButton")
          label.toggle-label(for="toggleButton")
    if currentUser.isBoardMember
      +commentForm
    if isLoaded.get
{'fraction_non_alphanumeric': 0.1349894847528917, 'fraction_numerical': 0.0028916929547844372, 'mean_word_length': 2.0423830467812873, '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': '7646285', 'n_tokens_mistral': 2389, 'n_tokens_neox': 2347, 'n_words': 336}