Sha256: 46ee3993d25306b5af2fc2ccddcdd75a6184caac7911659f1625d32cebbf5436

Contents?: true

Size: 1.94 KB

Versions: 2

Compression:

Stored size: 1.94 KB

Contents

!!! 5
%html{:lang => "en"}
  %head
    %meta{:charset => "utf-8"}/
    %link{ href:"/css/bootstrap.css" , rel: "stylesheet"}
    %link{ href:"/css/main.css" , rel: "stylesheet"}
    %link{ href:"http://fonts.googleapis.com/css?family=Inconsolata:400,700" , rel: "stylesheet"}
    %title="#{Settings['host']} [#{Settings.namespace}] #{APP_NAME}"

  %body

    .navbar.navbar-default.navbar-fixed
      .container

        .navbar-header
          %h1
            = APP_NAME
            %small
              = "v#{APP_VER}"
              = "[#{Settings.namespace}]"


    .container

      = render :dashboard_headers

      .row
        .col-md-12

          %h2
            Jobs  

            .btn-group.btn-group-md
              - klass = @only.nil? ? "btn-info" : ""
              %a.btn.btn-default{href: "?only=", class: klass}
                ALL (#{@count_all})
            .btn-group.btn-group-md
              - @counts.each do |status, count|
                - klass = (status == @only) ? "btn-info" : ""
                %a.btn.btn-default{href: "?only=#{status}", class: klass}
                  #{status} (#{count})

          %table.table.table-striped.table-hover.table-condensed
            %tr
              %th JID
              %th P
              %th W
              %th source
              %th target
              %th queued
              %th status
              %th progress
              %th error
              %th.text-right size
              %th.text-right bitrate

            - if @only.nil? && !@jobs_queued.empty?
              = render :dashboard_jobs, {jobs: @jobs_queued, counts: @counts}
              %tr
                %th{colspan: 10}

            = render :dashboard_jobs, {jobs: @jobs_current, counts: @counts}


      .row
        .col-md-6
          = render :dashboard_tokens, {tokens: Settings.endpoints || {}}

        .col-md-3
          = render :dashboard_workers

        .col-md-3
          = render :dashboard_counters

      %br

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.100.2 lib/rest-ftp-daemon/views/dashboard.haml
rest-ftp-daemon-0.100 lib/rest-ftp-daemon/views/dashboard.haml