<commit_before>%aside#sidebar
  %header#branding
    = logo

  .login.box
    - if request.ssl?
      = image_tag 'icones/lock-secure.png', :alt => "Accès sécurisé (https)", :class => "access"
    - else
      = link_to params.merge(:protocol => 'https', :only_path => false) do
        = image_tag 'icones/lock-insecure.png', :alt => "Accès en clair (http)", :class => "access"
    - if account_signed_in?
      %h1= current_user.name
      %p Il vous reste #{current_user.account.nb_votes} avis
      %p= link_to "Proposer un contenu", '/proposer-un-contenu'
      %p= link_to "Mon tableau de bord", '/tableau-de-bord'
      %p= link_to "Modifier mes préférences", '/compte/modifier'
      %p= link_to "Changer de CSS", '/stylesheet/modifier'
      %p= link_to "Se déconnecter", '/compte/deconnexion'
    - else
      %h1 Se connecter
      = render "sessions/new"
      %p= link_to "Pas de compte ? S'inscrire !", '/compte/inscription'
      %p= link_to "Proposer un contenu", '/proposer-un-contenu'
  - if current_user && current_user.admin?
    = render 'admin/box'
  - if current_user && current_user.amr?
    = render 'moderation/box'
  - if current_user && (current_user.writer? || current_user.amr?)
    = render 'redaction/box'
  = yield :column<commit_msg>Use Js for http/https icon, so we can share the cache for http and https<commit_after>%aside#sidebar
  %header#branding
    = logo

  .login.box
    :javascript
      if (location.protocol == 'http:') {
        document.write('<a href="https://' + location.hostname + location.pathname + '"><img alt="Accès en clair (http)" class="access" src="/images/icones/lock-insecure.png" /></a>');
      } else {
        document.write('<img alt="Accès sécurisé (https)" class="access" src="/images/icones/lock-secure.png" />');
      }
    - if account_signed_in?
      %h1= current_user.name
      %p Il vous reste #{current_user.account.nb_votes} avis
      %p= link_to "Proposer un contenu", '/proposer-un-contenu'
      %p= link_to "Mon tableau de bord", '/tableau-de-bord'
      %p= link_to "Modifier mes préférences", '/compte/modifier'
      %p= link_to "Changer de CSS", '/stylesheet/modifier'
      %p= link_to "Se déconnecter", '/compte/deconnexion'
    - else
      %h1 Se connecter
      = render "sessions/new"
      %p= link_to "Pas de compte ? S'inscrire !", '/compte/inscription'
      %p= link_to "Proposer un contenu", '/proposer-un-contenu'
  - if current_user && current_user.admin?
    = render 'admin/box'
  - if current_user && current_user.amr?
    = render 'moderation/box'
  - if current_user && (current_user.writer? || current_user.amr?)
    = render 'redaction/box'
  = yield :column
{'fraction_non_alphanumeric': 0.15056179775280898, 'fraction_numerical': 0.00149812734082397, 'mean_word_length': 3.1029185867895546, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 1, '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': '2998190', 'n_tokens_mistral': 942, 'n_tokens_neox': 947, 'n_words': 224}