<commit_before>.help
  -if @help && !@help.content.blank?
    -content_for :modal_title do
      -if CMS_CONFIG["ALLOW_HELP_EDIT"]
        %a.btn.btn-mini.pull-right{:'data-toggle' => 'collapse', :href => '#helpedit', :title => "Edit Help", :rel => "tooltip", :'data-placement' => "left"}
          %i.grcicon-edit
      -if @help.title.present?
        =@help.title
      -else
        =@help_slug.humanize
        Help
    .help-content.rtf
      =display_as_html @help.content
  -else
    -content_for :modal_title do
      -if CMS_CONFIG["ALLOW_HELP_EDIT"]
        %a.btn.btn-mini.pull-right{:'data-toggle' => 'collapse', :href => '#helpedit', :title => "Edit Help", :rel => "tooltip", :'data-placement' => "left"}
          %i.grcicon-edit
      GRC Help
    .help-content.rtf
      %p This content is coming soon.  We are working on it.


-if CMS_CONFIG["ALLOW_HELP_EDIT"]
  #helpedit.collapse
    .row-fluid
      .well
        =form_for @help, :url => update_help_path, :method => :post, :remote => true do |f|
          =f.label :help_title
          =f.text_field :title, :class => 'span12'
          =f.label :help_content
          =f.text_area :content, :class => 'span12 double wysihtml5 rtftextarea', :rows => 8
          .row-fluid
            .span12
              =f.submit :Save, :class => 'btn btn-warning pull-right'
          =f.hidden_field :slug

=render :partial => "shared/wysihtml5"
<commit_msg>Story 46515017: In help modals, the wysihtml5 editor is now resizable<commit_after>.help
  -if @help && !@help.content.blank?
    -content_for :modal_title do
      -if CMS_CONFIG["ALLOW_HELP_EDIT"]
        %a.btn.btn-mini.pull-right{:'data-toggle' => 'collapse', :href => '#helpedit', :title => "Edit Help", :rel => "tooltip", :'data-placement' => "left"}
          %i.grcicon-edit
      -if @help.title.present?
        =@help.title
      -else
        =@help_slug.humanize
        Help
    .help-content.rtf
      =display_as_html @help.content
  -else
    -content_for :modal_title do
      -if CMS_CONFIG["ALLOW_HELP_EDIT"]
        %a.btn.btn-mini.pull-right{:'data-toggle' => 'collapse', :href => '#helpedit', :title => "Edit Help", :rel => "tooltip", :'data-placement' => "left"}
          %i.grcicon-edit
      GRC Help
    .help-content.rtf
      %p This content is coming soon.  We are working on it.


-if CMS_CONFIG["ALLOW_HELP_EDIT"]
  #helpedit.collapse
    .row-fluid
      .well
        =form_for @help, :url => update_help_path, :method => :post, :remote => true do |f|
          =f.label :help_title
          =f.text_field :title, :class => 'span12'
          =f.label :help_content
          .wysiwyg-area
            =f.text_area :content, :class => 'span12 double wysihtml5 rtftextarea', :rows => 8
          .row-fluid
            .span12
              =f.submit :Save, :class => 'btn btn-warning pull-right'
          =f.hidden_field :slug

=render :partial => "shared/wysihtml5"

{'fraction_non_alphanumeric': 0.15516062884483936, 'fraction_numerical': 0.009227614490772385, 'mean_word_length': 2.4034883720930234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '7428101', 'n_tokens_mistral': 1049, 'n_tokens_neox': 1019, 'n_words': 225}