<commit_before>{% extends "smartmin/read.html" %}

-block page-title
  {{ brand.name }} - WebHook Event

-block title
  .medium-help.icon-cloud-upload{ style:'float:left;' }
  %h2.header-margin
    Webhook Event
  %h5.header-margin
    {{ object.event }} - {{ object.created_on }}

-block above-bar
  %a.btn.btn-primary{ href: '{% url "api.log" %}' } Back

-block post-fields
  %h3 Deliveries
  -for result in results
    .result
      .result-status= result.status_code
      .result-summary
        .result-time
          {{ result.created_on }}
        .result-message= result.message
        -if result.status_code
          %pre.result-request.prettyprint{ style:'margin-top:10px;' }<
            :plain
              {{ object.action }} {{ result.url }}
            -if object.action == 'POST'
              {{ result.data|default:"" }}
          .result-body
            -if result.stripped_body
              %pre.prettyprint= result.stripped_body
            -else
              %pre.prettyprint No Response Body

    %hr

-block extra-script
  {{ block.super }}
  <script src="{{ STATIC_URL }}rest_framework/js/prettify-min.js"></script>
  :javascript
    $(function(){
      prettyPrint();
    });

-block extra-style
  {{ block.super }}
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}rest_framework/css/prettify.css"/>
  :css<commit_msg>Display request time for webhook result<commit_after>{% extends "smartmin/read.html" %}

-block page-title
  {{ brand.name }} - WebHook Event

-block title
  .medium-help.icon-cloud-upload{ style:'float:left;' }
  %h2.header-margin
    Webhook Event
  %h5.header-margin
    {{ object.event }} - {{ object.created_on }}

-block above-bar
  %a.btn.btn-primary{ href: '{% url "api.log" %}' } Back

-block post-fields
  %h3 Deliveries
  -for result in results
    .result
      .result-status= result.status_code
      .result-summary
        .result-time
          {{ result.created_on }}
        .result-message= result.message
        .result-request-time
          Request time: {{ result.request_time }}
        -if result.status_code
          %pre.result-request.prettyprint{ style:'margin-top:10px;' }<
            :plain
              {{ object.action }} {{ result.url }}
            -if object.action == 'POST'
              {{ result.data|default:"" }}
          .result-body
            -if result.stripped_body
              %pre.prettyprint= result.stripped_body
            -else
              %pre.prettyprint No Response Body

    %hr

-block extra-script
  {{ block.super }}
  <script src="{{ STATIC_URL }}rest_framework/js/prettify-min.js"></script>
  :javascript
    $(function(){
      prettyPrint();
    });

-block extra-style
  {{ block.super }}
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}rest_framework/css/prettify.css"/>
  :css
{'fraction_non_alphanumeric': 0.14779541446208114, 'fraction_numerical': 0.003527336860670194, 'mean_word_length': 2.259770114942529, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '3088328', 'n_tokens_mistral': 899, 'n_tokens_neox': 886, 'n_words': 174}