Sha256: e5d0eacff0cfb612678783066f54fda347c0641a66703b22d34debe72ee9c92d

Contents?: true

Size: 1.48 KB

Versions: 3

Compression:

Stored size: 1.48 KB

Contents


= haml :"repos/menu" , locals:{ repo: repo, active: "config", build: nil}

.title
  %h2
    %span#repo-name= repo.name
    = haml :"repos/spinner", locals: {repo: repo}

  %h5
    %strong= repo.url


.panel.panel-default
  .panel-heading
    Config Post Hook

  .panel-body

    - if hook.present?
      .col-sm-12

        .pull-right
          .badge
            #{hook["active"] ? "active" : "disabled"}
        %h2
          %a{ href: hook["url"]}
            = hook["name"]
            \-
            = hook["id"]

        %h4 Config:
        %ul
          - if hook["config"][:secret].present?
            %li
              %strong secret:
              = hook["config"][:secret]
          %li
            %strong url:
            = hook["config"][:url]
          %li
            %strong content type:
            = hook["config"][:content_type]
          %li
            %strong ssl:
            = hook["config"][:insecure_ssl]

        %h4 Test url:
        %p
          = hook["test_url"]

        %h4 Last response:
        %p
          = hook["last_response"].to_json


    .col-sm-12
      %h3
        = hook.present? ? "Will update exiting (#{hook["id"]}) hook." : "Will create new hook."
      %form{:action => "/repos/#{repo.name}/add_hook", method: "post"}
        %input{:type => "text", name: "webhook_url", placeholder: "type the receive hook url...", style:"width:250px"}
        %button Send

      %p.small
        we are going to send the hook to
        %strong
          =repo.url





Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
perkins-0.0.3 lib/perkins/views/repos/config.haml
perkins-0.0.2 lib/perkins/views/repos/config.haml
perkins-0.0.1 lib/perkins/views/repos/config.haml