<commit_before>//////////////// shared ////////////////
%script{ :type => "text/template", :id => "tpl_proposal_description"}

  .l-message.m-proposal-introduction

    .l-message-speaker.l-message-initiator
      %a{ :'data-id' => "{{ user_id }}", :'data-target' => "user_profile_page" }
        %img{:src => "{{ avatar }}"}

    .l-message-body.m-proposal-description
      = render :partial => "shared/bubble", :locals => {:left => true, :down => false}

      .l-message-title
        %span.m-proposal-description-title
        (( if(!show_details){ ))
        %span.m-proposal-description-title-readmore
          more info
        (( if(active && !show_details) { ))
        %a.m-position-your-action-body.join{ :href => "{{Routes.new_position_proposal_path( long_id )}}", :title => "Decide on {{name}}"}
          //fa-pencil-square-o
          %i.icon-large 
            &#xf044;
          {{ call }}

        %a.m-reasons-view-results{:'data-target' => 'show-results'}
          %i.icon-bar-chart-o.icon-large 
            &#xf080;
          View Results
      
        (( } ))

        (( } ))

    

  (( if(show_details){ ))

  .l-message.m-proposal-details

    .l-message-body
      .m-proposal-description-body

      (( if(published) { ))
      .m-proposal-details-wrapper
        .m-proposal-description-details

          (( _.each(description_detail_fields, function(field) {  ))

          (( if( $.trim(field[2]) != '') { ))
          .m-proposal-description-detail-field
            .m-proposal-description-detail-field-heading
              %a.hidden
                Read {{ field[1] }} &raquo;
            .m-proposal-description-detail-field-full.hide
              %div{ :class => "m-proposal-description-detail-field-{{field[0]}}" }
                %h1
                  {{ field[1] }}
                {{ field[2] }}
              %a.showing
                hide
          (( } ))

          (( }); ))
        .m-proposal-description-details.m-proposal-links
          %h3
            More information
          (( _.each([{field: url1, name: 'Link'} ], function(url) {  ))
          (( if( url.field && $.trim(url.field) != '' ){ ))
          .m-proposal-url-field
            %a{ :href => "{{url.field}}", :target => "_blank"}
              {{url.name}}
          (( } ))
          (( }); ))

      (( } ))

    
  (( } ))<commit_msg>only show link region if one exists<commit_after>//////////////// shared ////////////////
%script{ :type => "text/template", :id => "tpl_proposal_description"}

  .l-message.m-proposal-introduction

    .l-message-speaker.l-message-initiator
      %a{ :'data-id' => "{{ user_id }}", :'data-target' => "user_profile_page" }
        %img{:src => "{{ avatar }}"}

    .l-message-body.m-proposal-description
      = render :partial => "shared/bubble", :locals => {:left => true, :down => false}

      .l-message-title
        %span.m-proposal-description-title
        (( if(!show_details){ ))
        %span.m-proposal-description-title-readmore
          more info
        (( if(active && !show_details) { ))
        %a.m-position-your-action-body.join{ :href => "{{Routes.new_position_proposal_path( long_id )}}", :title => "Decide on {{name}}"}
          //fa-pencil-square-o
          %i.icon-large 
            &#xf044;
          {{ call }}

        %a.m-reasons-view-results{:'data-target' => 'show-results'}
          %i.icon-bar-chart-o.icon-large 
            &#xf080;
          View Results
      
        (( } ))

        (( } ))

    

  (( if(show_details){ ))

  .l-message.m-proposal-details

    .l-message-body
      .m-proposal-description-body

      (( if(published) { ))
      .m-proposal-details-wrapper
        .m-proposal-description-details

          (( _.each(description_detail_fields, function(field) {  ))

          (( if( $.trim(field[2]) != '') { ))
          .m-proposal-description-detail-field
            .m-proposal-description-detail-field-heading
              %a.hidden
                Read {{ field[1] }} &raquo;
            .m-proposal-description-detail-field-full.hide
              %div{ :class => "m-proposal-description-detail-field-{{field[0]}}" }
                %h1
                  {{ field[1] }}
                {{ field[2] }}
              %a.showing
                hide
          (( } ))

          (( }); ))

        (( if(url1 && $.trim(url1) != '') { ))
        .m-proposal-description-details.m-proposal-links
          %h3
            More information
          (( _.each([{field: url1, name: 'Link'} ], function(url) {  ))
          (( if( url.field && $.trim(url.field) != '' ){ ))
          .m-proposal-url-field
            %a{ :href => "{{url.field}}", :target => "_blank"}
              {{url.name}}
          (( } ))
          (( }); ))
        (( } ))

      (( } ))

    
  (( } ))
{'fraction_non_alphanumeric': 0.19908561928512053, 'fraction_numerical': 0.006234413965087282, 'mean_word_length': 1.6157608695652175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '4549006', 'n_tokens_mistral': 1569, 'n_tokens_neox': 1503, 'n_words': 200}