Sha256: cd1dda7238f3d4d18dbc8ad0e880d3ebbe6dbca5f8798025b78be7e748360ccc

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

%div{id: "repo-#{@repo.id}-config" }

  != JST["repos/menu"](repo: @repo, active: "config")

  .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
        .col-sm-12

          .pull-right
            .badge
              = if @hook.active then "active" else "disabled"

          %h2
            %a{ href: @hook.url}
              = @hook.name
              \-
              = @hook.id

        %h4 Config:
        %ul
          - if @hook.config.secret
            %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

          - if @hook.last_response
            %strong Code:
            = @hook.last_response.code
            %strong Status:
            = @hook.last_response.status
            %strong Message:
            = @hook.last_response.message

      .col-sm-12

        %h3
          = if @hook then "Will update exiting (#{@hook.id}) hook." else "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

2 entries across 2 versions & 1 rubygems

Version Path
perkins-0.0.3 lib/perkins/assets/javascripts/templates/repos/config.hamlc
perkins-0.0.2 lib/perkins/assets/javascripts/templates/repos/config.hamlc