internetee/registry

View on GitHub
app/views/admin/epp_logs/show.haml

Summary

Maintainability
Test Coverage
- content_for :actions do
  = link_to(t(:back), :back, class: 'btn btn-primary')
= render 'shared/title', name: t('.title')

.row
  .col-md-12
    .panel.panel-default
      .panel-heading
        %h3.panel-title= t(:details)
      .panel-body
        %dl.dl-horizontal
          %dt= t(:request_command)
          %dd= @epp_log.request_command

          %dt= t(:request_object)
          %dd= @epp_log.request_object

          %dt= t(:request_successful)
          %dd= @epp_log.request_successful

          %dt= t(:api_user)
          %dd= @epp_log.api_user_name

          %dt= t(:registrar_name)
          %dd= @epp_log.api_user_registrar

          %dt= t(:ip)
          %dd= @epp_log.ip

          %dt= t(:created_at)
          %dd= @epp_log.created_at

.row
  .col-md-12
    .panel.panel-default
      .panel-heading
        %h3.panel-title= t(:request)
      .panel-body
        = preserve do
          %pre
            - formatted_req = Nokogiri::XML(@epp_log.request)
            - if formatted_req.errors.none?
              = formatted_req
            - else
              = @epp_log.request
.row
  .col-md-12
    .panel.panel-default
      .panel-heading
        %h3.panel-title= t(:response)
      .panel-body
        = preserve do
          %pre
            = @epp_log.response