Sha256: 593bd497bf94d2007f39d7a41e8665d20b7a3325acd7911c5a4111ddb696ae57

Contents?: true

Size: 608 Bytes

Versions: 26

Compression:

Stored size: 608 Bytes

Contents

-# coding: utf-8

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


%h2 Transfer rates


- groups.each do |group_by, group_title|
  - rates_by_status = RestFtpDaemon::JobQueue.instance.rate_by(group_by)

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

    %thead
      %tr
        %th= "by #{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
            = format_bytes(rate, "bps")

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.410.5 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.410.4 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.410.2 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.410.1 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.410.0.pre.1 lib/rest-ftp-daemon/views/dashboard_rates.haml
rest-ftp-daemon-0.400.0 lib/rest-ftp-daemon/views/dashboard_rates.haml