Sha256: 86135d4a2efdb810f870cd2c284e2131d1d30e1c48fb7ab704297441ca5df3a9

Contents?: true

Size: 648 Bytes

Versions: 12

Compression:

Stored size: 648 Bytes

Contents

-# coding: utf-8

- groups = {pool: "pool", targethost: "target host"}


%h2 Transfer rates

%table.table.table-striped.table-hover.table-condensed

  - groups.each do |group_by, group_title|
    - rates_by_status = $queue.rate_by(group_by)

    %thead
      %tr
        %th= group_title
        %th.text-right bitrate

    %tbody
      - rates_by_status.each do |group, rate|
        - next if group.nil?
        - trclass = (rate.nil? ? "" : "info")

        %tr{class: trclass}
          %td
            = group
          %td.text-right
            = Helpers.format_bytes(rate, "bps")

    %thead
      %tr
        %td{colspan: 3}
          %br

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.305.0 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.304.0 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.302.3 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.302.2 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.302.1 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.302.0 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.300.3 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.300.2 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.300.1 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.250.5 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.250.4 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.250.3 lib/rest-ftp-daemon/views/dashboard_rates.haml