<commit_before>- extends "public_base.html"
- load thumbnail compress i18n ureport


-block meta-extra
  -if org|config:"facebook_page_id" and org|config:"facebook_app_id"
    %meta(property="og:url" content="{% org_host_link %}{% url 'public.story_read' story.pk %}")
    %meta(property="og:type" content="article")
    %meta(property="og:title" content="{{ story.title }}")
    %meta(property="fb:app_id" content='{{ org|config:"facebook_app_id" }}')
    %meta(property="og:description" content="{{story.summary|truncatewords:50|linebreaksbr}}")
    {% thumbnail story.get_image "900" crop="top" as im %}
    %meta(property="og:image" content="{{im.url}}")
    {% endthumbnail %}

-block content
  .max-w-page.mx-auto.bg-dark-blue(class="md:flex")
    .block.bg-dark-blue.outside-vertical-angle(class="md:w-1/2")
      .py-12.h-full
        .px-home.text-white.flex.items-center.h-full
          .block.hover-parent
            .text-light1.font-bold
              STORY
            .font-alt.font-bold.text-4xl.leading-tight.italic.hover-parent
              {% edit_content 'stories.story_update' story.pk "#id_title" "-m-8" "white" %}
              {{ story.title }}

    .block(class="md:w-1/2 {% if is_rtl_org %}vertical-angle-right{% else %}vertical-angle-left{% endif %}")
      {% thumbnail story.get_image "900" crop="top" as im %}
      %img(src="{{im.url}}" width="100%" style="object-fit:cover;")
      {% endthumbnail %}
      //.block-vertical-angle.w-4
      //  &nbsp;

  .max-w-page.mx-auto
    .block.justify-between.bg-white.m-12(class="md:flex")
      .flex-none
        .share
          %a.mb-2.bg-circle-xs.border.border-black.facebook-share(href="#" data-url="{% org_host_link %}{% url 'public.story_read' story.pk %}")
            %i.fab.fa-facebook-f
          %a.mb-2.block.bg-circle-xs.border.border-black(href="https://twitter.com/intent/tweet?url={% org_host_link %}{% url 'public.story_read' story.pk %}")
            %i.fab.fa-twitter
          %a.mb-2.block.bg-circle-xs.border.border-black(href="https://api.whatsapp.com/send?text={% org_host_link %}{% url 'public.story_read' story.pk %}")
            %i.fab.fa-whatsapp
          %a.mb-2.block.bg-circle-xs.border.border-black(href="mailto:?subject=Check out {{ story.title|urlencode:\"\" }} results&amp;body={% url 'public.story_read' story.pk %}" uk-icon="icon: mail; ratio: 1.5")
            %i.fas.fa-envelope

      .flex-auto.px-home.story-content.hover-parent
        {% edit_content 'stories.story_update' story.pk "#id_content" "-m-8" "dark" %}
        {{ story.content|safe }}

      .flex-none.w-10
        %img(src="{{STATIC_URL}}img/u-icon-small.png" )

    -if story.attachment
      .block.px-home
        .flex-auto.px-home.story-attachment.hover-parent
          {% edit_content 'stories.story_update' story.pk "#id_attachment" "-m-8" "dark" %}
          .px-home
            %object.overflow-hidden(data="{{MEDIA_URL}}{{ story.attachment }}#toolbar=0&navpanes=0&scrollbar=0&title={{story.title}}" type="application/pdf" width="100%" height="800px")
      .block.p-home
        .px-home
          .px-home
            %a.btn.bg-black.text-white(href="{{MEDIA_URL}}{{ story.attachment }}" class="hover:bg-gray-700" download="{{ story.title }}")
              -trans "Download Report"
<commit_msg>Fix attachment URL<commit_after>- extends "public_base.html"
- load thumbnail compress i18n ureport


-block meta-extra
  -if org|config:"facebook_page_id" and org|config:"facebook_app_id"
    %meta(property="og:url" content="{% org_host_link %}{% url 'public.story_read' story.pk %}")
    %meta(property="og:type" content="article")
    %meta(property="og:title" content="{{ story.title }}")
    %meta(property="fb:app_id" content='{{ org|config:"facebook_app_id" }}')
    %meta(property="og:description" content="{{story.summary|truncatewords:50|linebreaksbr}}")
    {% thumbnail story.get_image "900" crop="top" as im %}
    %meta(property="og:image" content="{{im.url}}")
    {% endthumbnail %}

-block content
  .max-w-page.mx-auto.bg-dark-blue(class="md:flex")
    .block.bg-dark-blue.outside-vertical-angle(class="md:w-1/2")
      .py-12.h-full
        .px-home.text-white.flex.items-center.h-full
          .block.hover-parent
            .text-light1.font-bold
              STORY
            .font-alt.font-bold.text-4xl.leading-tight.italic.hover-parent
              {% edit_content 'stories.story_update' story.pk "#id_title" "-m-8" "white" %}
              {{ story.title }}

    .block(class="md:w-1/2 {% if is_rtl_org %}vertical-angle-right{% else %}vertical-angle-left{% endif %}")
      {% thumbnail story.get_image "900" crop="top" as im %}
      %img(src="{{im.url}}" width="100%" style="object-fit:cover;")
      {% endthumbnail %}
      //.block-vertical-angle.w-4
      //  &nbsp;

  .max-w-page.mx-auto
    .block.justify-between.bg-white.m-12(class="md:flex")
      .flex-none
        .share
          %a.mb-2.bg-circle-xs.border.border-black.facebook-share(href="#" data-url="{% org_host_link %}{% url 'public.story_read' story.pk %}")
            %i.fab.fa-facebook-f
          %a.mb-2.block.bg-circle-xs.border.border-black(href="https://twitter.com/intent/tweet?url={% org_host_link %}{% url 'public.story_read' story.pk %}")
            %i.fab.fa-twitter
          %a.mb-2.block.bg-circle-xs.border.border-black(href="https://api.whatsapp.com/send?text={% org_host_link %}{% url 'public.story_read' story.pk %}")
            %i.fab.fa-whatsapp
          %a.mb-2.block.bg-circle-xs.border.border-black(href="mailto:?subject=Check out {{ story.title|urlencode:\"\" }} results&amp;body={% url 'public.story_read' story.pk %}" uk-icon="icon: mail; ratio: 1.5")
            %i.fas.fa-envelope

      .flex-auto.px-home.story-content.hover-parent
        {% edit_content 'stories.story_update' story.pk "#id_content" "-m-8" "dark" %}
        {{ story.content|safe }}

      .flex-none.w-10
        %img(src="{{STATIC_URL}}img/u-icon-small.png" )

    -if story.attachment
      .block.px-home
        .flex-auto.px-home.story-attachment.hover-parent
          {% edit_content 'stories.story_update' story.pk "#id_attachment" "-m-8" "dark" %}
          .px-home
            %object.overflow-hidden(data="{{ story.attachment.url }}#toolbar=0&navpanes=0&scrollbar=0&title={{story.title}}" type="application/pdf" width="100%" height="800px")
      .block.p-home
        .px-home
          .px-home
            %a.btn.bg-black.text-white(href="{{ story.attachment.url }}" class="hover:bg-gray-700" download="{{ story.title }}")
              -trans "Download Report"

{'fraction_non_alphanumeric': 0.19347000759301441, 'fraction_numerical': 0.014274867122247532, 'mean_word_length': 2.9132501485442663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '225083', 'n_tokens_mistral': 2405, 'n_tokens_neox': 2300, 'n_words': 298}