<commit_before>extends ../node_modules/maki/views/layouts/default

block content
  h2 #{show.name}
  p #{show.description}

  h3 Recordings
  .ui.feed
    each recording in recordings
      - var item = recording
      include partials/recording

  //- TODO: improve Context
  if (user && user.can('manage', { _show: show } ))
    h3 Publishing
    h4 Publish to...
    form.ui.form
      .field
        label Soundcloud
        select.ui.dropdown(name="soundcloud")
          option(value="null") none (disable publishing)
          for editor in people
            for profile in editor.profiles.soundcloud
              if (show.profiles && show.profiles.soundcloud && show.profiles.soundcloud._id && show.profiles.soundcloud._id.toString() === profile._id.toString())
                option(value="#{profile._id}", selected) #{profile.username} (from user "#{user.username}")
              else<commit_msg>Fix auto-selection on shows page.<commit_after>extends ../node_modules/maki/views/layouts/default

block content
  h2 #{show.name}
  p #{show.description}

  h3 Recordings
  .ui.feed
    each recording in recordings
      - var item = recording
      include partials/recording

  //- TODO: improve Context
  if (user && user.can('manage', { _show: show } ))
    h3 Publishing
    h4 Publish to...
    form.ui.form
      .field
        label Soundcloud
        select.ui.dropdown(name="soundcloud")
          if (!show.profiles || !show.profiles.soundcloud || !show.profiles.soundcloud.id)
            option(value="disable", selected) none (disable publishing)
          else
            option(value="disable") none (disable publishing)
          for editor in people
            for profile in editor.profiles.soundcloud
              if (show.profiles && show.profiles.soundcloud && show.profiles.soundcloud.id && show.profiles.soundcloud.id === profile._id.toString())
                option(value="#{profile._id}", selected) #{profile.username} (from user "#{user.username}")
              else
{'fraction_non_alphanumeric': 0.12139303482587065, 'fraction_numerical': 0.003980099502487562, 'mean_word_length': 2.5280701754385966, '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': '6091335', 'n_tokens_mistral': 569, 'n_tokens_neox': 560, 'n_words': 139}