<commit_before>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

:javascript
  $(function() {
    $(".question_mark").tipsy({trigger: 'hover', gravity: 'n'});
    $(".service_icon").tipsy({trigger: 'hover', gravity: 'n'});
    $(".public_icon").tipsy({trigger: 'hover', gravity: 'n'});
  });

#publisher.closed{:class => ((aspect == :profile)? 'mention_popup' : nil )}
  .content_creation
    = form_for(StatusMessage.new, :remote => true, :html => {"data-type" => "json"}) do |status|
      - if @selected_people
        = hidden_field_tag :contact_json, @selected_people.to_json
      = status.error_messages
      %p
        %params
          #publisher_textarea_wrapper
            = link_to( image_tag('deletelabel.png'), "#", :id => "hide_publisher", :title => t('.discard_post'))
            %ul#photodropzone
            = status.text_area :fake_text, :rows => 2, :value => h(params[:prefill]), :tabindex => 1, :placeholder => t('.whats_on_your_mind')
            = status.hidden_field :text, :value => '', :class => 'clear_on_submit'

            #file-upload{:title => t('.upload_photos')}
              = image_tag 'icons/camera.svg', :height => 14


      - for aspect_id in aspect_ids
        = hidden_field_tag 'aspect_ids[]', aspect_id.to_s

      .options_and_submit
        - if aspect == :profile
          .mention_helper
            .badges
              %i= t('.publishing_to')
              = aspect_badges(aspects_with_person, :link => false)

        .public_toggle
          %span#publisher_service_icons
            = t("shared.publisher.click_to_share_with")
            - if aspect == :all || :profile
              = status.hidden_field( :public)
              = image_tag "icons/globe.png", :title => t('.public'), :class => 'public_icon dim', :width => 16, :height => 16
            - if current_user.services
              - for service in current_user.services
                = image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider.titleize, :class => "service_icon dim", :id =>"#{service.provider}", :maxchar => "#{service.class::MAX_CHARACTERS}"
            = link_to (image_tag "icons/monotone_wrench_settings.png"), "#question_mark_pane", :class => 'question_mark', :rel => 'facebox', :title => t('shared.public_explain.manage')
          = status.submit t('.share'), :disable_with => t('.posting'), :class => 'button creation', :tabindex => 2

          .facebox_content
            #question_mark_pane
              = render 'shared/public_explain'

    #publisher_photo_upload
      = render 'photos/new_photo', :aspect_ids => aspect_ids.join(',')
<commit_msg>don't display public posting option if not posting to all aspects<commit_after>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

:javascript
  $(function() {
    $(".question_mark").tipsy({trigger: 'hover', gravity: 'n'});
    $(".service_icon").tipsy({trigger: 'hover', gravity: 'n'});
    $(".public_icon").tipsy({trigger: 'hover', gravity: 'n'});
  });

#publisher.closed{:class => ((aspect == :profile)? 'mention_popup' : nil )}
  .content_creation
    = form_for(StatusMessage.new, :remote => true, :html => {"data-type" => "json"}) do |status|
      - if @selected_people
        = hidden_field_tag :contact_json, @selected_people.to_json
      = status.error_messages
      %p
        %params
          #publisher_textarea_wrapper
            = link_to( image_tag('deletelabel.png'), "#", :id => "hide_publisher", :title => t('.discard_post'))
            %ul#photodropzone
            = status.text_area :fake_text, :rows => 2, :value => h(params[:prefill]), :tabindex => 1, :placeholder => t('.whats_on_your_mind')
            = status.hidden_field :text, :value => '', :class => 'clear_on_submit'

            #file-upload{:title => t('.upload_photos')}
              = image_tag 'icons/camera.svg', :height => 14


      - for aspect_id in aspect_ids
        = hidden_field_tag 'aspect_ids[]', aspect_id.to_s

      .options_and_submit
        - if aspect == :profile
          .mention_helper
            .badges
              %i= t('.publishing_to')
              = aspect_badges(aspects_with_person, :link => false)

        .public_toggle
          %span#publisher_service_icons
            = t("shared.publisher.click_to_share_with")
            - if aspect == :all || aspect == :profile
              = status.hidden_field(:public)
              = image_tag "icons/globe.png", :title => t('.public'), :class => 'public_icon dim', :width => 16, :height => 16
            - if current_user.services
              - for service in current_user.services
                = image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider.titleize, :class => "service_icon dim", :id =>"#{service.provider}", :maxchar => "#{service.class::MAX_CHARACTERS}"
            = link_to (image_tag "icons/monotone_wrench_settings.png"), "#question_mark_pane", :class => 'question_mark', :rel => 'facebox', :title => t('shared.public_explain.manage')
          = status.submit t('.share'), :disable_with => t('.posting'), :class => 'button creation', :tabindex => 2

          .facebox_content
            #question_mark_pane
              = render 'shared/public_explain'

    #publisher_photo_upload
      = render 'photos/new_photo', :aspect_ids => aspect_ids.join(',')

{'fraction_non_alphanumeric': 0.15768606956208325, 'fraction_numerical': 0.006487655433411426, 'mean_word_length': 2.8381742738589213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, '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': '6596863', 'n_tokens_mistral': 1772, 'n_tokens_neox': 1708, 'n_words': 354}