Sha256: 74a4e2711cd269cf1b7eec69a9d57ce20579a887205eb8c31d9a40114ad9f7eb

Contents?: true

Size: 1.86 KB

Versions: 49

Compression:

Stored size: 1.86 KB

Contents

- @reload_page = true

:sass
  span.progress_time
    color: grey
.wait.ui.segment.info.message
  %h3.ui.header Waiting on #{format_name File.basename(job.name)}

  %span.ui.basic.segment.content.status= job.status


  - if job.file(:progress).exists?
    .footer.ui.basic.segment
      - progress = job.file(:progress).yaml
      - if progress[:last_percent]
        - start = progress[:start]
        - last_time = progress[:last_time]
        - if progress[:last_percent].to_i > 0
          - ellapsed = last_time - start
          - if progress[:mean]
            - missing = progress[:max].to_f - progress[:ticks].to_f
            - eta = missing / progress[:mean].to_f
          - else
            - ratio = progress[:ticks].to_f/progress[:max].to_f
            - eta = ellapsed * (1 - ratio)
          - eta = Misc.format_seconds(eta)
          - ellapsed = Misc.format_seconds(ellapsed)
        - else
          - ellapsed = '?'
          - eta = '?'
        .ui.teal.step.percent.progress.indicating.meta(data-percent="#{progress[:last_percent]}" data-total=100)
          .bar
            .progress
          .label
            = progress[:desc]
            - if progress[:last_percent].to_i > 0
              %span.progress_time
                (#{ eta } ⇒ #{ellapsed})
          :deferjs
            $('.step.progress').progress()
      - else
        - ticks = progress[:ticks]
        - max_ticks = ticks  * 1.2
        .ui.teal.step.progress.meta(data-value=ticks data-total=max_ticks data-percent="#{ticks.to_f * 100.0 / max_ticks}")
          .bar
            .progress
          .label= progress[:desc]
          :deferjs
            $('.step.progress').progress({label: 'ratio',text:{ratio: '{value}'}})

.ui.segment
  %h3.ui.header Log
  %ul.step_messages.clean_list
    - job.messages.reverse.each do |line|
      - next if line.nil? or line.strip.empty?
      %li= line


Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
rbbt-rest-1.8.61 share/views/wait.haml
rbbt-rest-1.8.60 share/views/wait.haml
rbbt-rest-1.8.59 share/views/wait.haml
rbbt-rest-1.8.58 share/views/wait.haml
rbbt-rest-1.8.57 share/views/wait.haml
rbbt-rest-1.8.56 share/views/wait.haml
rbbt-rest-1.8.55 share/views/wait.haml
rbbt-rest-1.8.53 share/views/wait.haml
rbbt-rest-1.8.52 share/views/wait.haml
rbbt-rest-1.8.51 share/views/wait.haml
rbbt-rest-1.8.50 share/views/wait.haml
rbbt-rest-1.8.49 share/views/wait.haml
rbbt-rest-1.8.48 share/views/wait.haml
rbbt-rest-1.8.47 share/views/wait.haml
rbbt-rest-1.8.46 share/views/wait.haml
rbbt-rest-1.8.45 share/views/wait.haml
rbbt-rest-1.8.44 share/views/wait.haml
rbbt-rest-1.8.43 share/views/wait.haml
rbbt-rest-1.8.42 share/views/wait.haml
rbbt-rest-1.8.41 share/views/wait.haml