Sha256: 2791d5a024aa036ce29b81d6aa73f6fc327eda4edb54edfbd913a7f50a8442de

Contents?: true

Size: 1.37 KB

Versions: 3

Compression:

Stored size: 1.37 KB

Contents

.container
  .row
    .col-lg-2
      = link_to admin_scripts_path, "data-position" => "bottom", "data-tooltip" => t("keppler.actions.back") do
        .arrow-back.btn.btn-default
          %i.fa.fa-angle-left
          = t('keppler.actions.back')
  .show-section
    .row
      .col-lg-12
        .box.slice-box
          .box-header.with-border
            %h3.box-title= t("keppler.modules.#{controller_path.underscore}")
            .box-tools.pull-right
              - if Pundit.policy(current_user, Script).update?
                = link_to edit_admin_script_path(@script), class: "btn btn-box-tool", title: "#{t('keppler.actions.edit') }" do
                  %i.icon-pencil
              - if Pundit.policy(current_user, Script).destroy?
                = link_to admin_script_path(@script), class: "btn btn-box-tool", title: "#{t('keppler.actions.delete')}", method: :delete, data: { confirm: t("keppler.messages.data_confirm") } do
                  %i.icon-trash


          .box-body.no-padding
            %table.table.table-striped
              %tbody
                - @script.as_json(only: ["id", "name", "script", "url", "created_at"], methods: [:rol]).each do |attribute, value|
                  %tr.list-row
                    %th.display-label= t("activerecord.attributes.script.#{attribute}")
                    %td.display-value.fs-body-1.tc-black-2= value.to_s.humanize

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keppler-2.0.2 installer/core/app/views/admin/scripts/show.html.haml
keppler-2.0.1 installer/core/app/views/admin/scripts/show.html.haml
keppler-2.0.0 installer/core/app/views/admin/scripts/show.html.haml