/views/metric_details.erb (120af43ccd18fe0e08a3042c617eff8cc81577e9) (1436 bytes) (mode 100644) (type blob)

<div class="row">
  <div class="row">
    <h1 class="text-center"><%= @metric_name %></h1>
  </div>
</div>

<div class="row">
  <div class="col-md-10 col-md-offset-1" id="metric_histogram">

  </div>
  <script src="/js/histogram.js"></script>
</div>

<div class="row">
  <table class="table table-striped">
    <tr>
      <th>Node</th>
      <th>Absolute Value</th>
      <th class="col-md-4">Value</th>
      <th>Normalized Value</th>
      
    </tr>
    <% @nodes.each do |node, data| 
      name = data[:id]
      absolute = data[:absolute].to_f
      normalized = data[:normalized].to_f
      color_class = data[:color_class]
    %>
      <tr>
        <td><a href="/node/<%= node %>/">Node <%= node %></a></td>
        <td><%= absolute.round(5) %></td>
        <td>
          <div class="metric_bar">
          <div class="progress">
            <div class="progress-bar progress-bar-<%= color_class %>" role="progressbar" aria-valuenow="<%= normalized*100 %>" aria-valuemin="0" aria-valuemax="100" style="width: <%= normalized*100 %>%;">
              <span class="sr-only"><%= normalized*100 %>%</span>
            </div>
          </div>
          </div>
        </td>  
        <td><span class="text-<%= color_class %>"><%= (normalized*100).round(2) %>%</span></td>
      </tr>
    <% end %>
  </table>
</div>

<div class="row">
    <%= will_paginate @nodes %>
  </div>
</div>


Mode Type Size Ref File
100644 blob 32 02d771bb174550ee73ca245d5452a371c7ff568e Gemfile
100644 blob 71 5a0b34f4c7ea7ff499826db4642432a1e5940c5d Gemfile.lock
100644 blob 79 04e9bf5219f1065f2d2f20519a988f41a274d7d9 README.md
100644 blob 494 9eca68213c93af98fde713132b619df2393bbd39 color_helper.rb
100644 blob 3308 dca71f919a34986ed60ac3716f1bfbfab3535464 config.rb
100644 blob 79 a0f1048216dced361915ebb3a955fb637a7d5261 index.rb
100644 blob 516 1a41081b6d3d16270f8dfd81376d618d0c75c8ce metric_routes.rb
100644 blob 1478 d0c06b59ee66ca2a428d516cbee4a234e1722a19 node_routes.rb
040000 tree - 1e469524090bb9e333f8dc410b41ecb1e2515d02 public
100644 blob 297 6ecd1cc330e5a4919db79dba4f90bdd3b73b63a3 run.rb
100644 blob 450 c0946e5e0b88e95fa7a705b1e0c18e031b9b6c2b score_routes.rb
100644 blob 423 f981916c8eceac7fc69aeb01c3f2128f7def40f5 statistics_routes.rb
100644 blob 5608 5939518153061fe23d7baefd876e15dad4df2594 storage.rb
040000 tree - ff59ff6ca204b1b5cf166aab50055785f550cf03 views
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/coria/coria-backend

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/coria/coria-backend

Clone this repository using git:
git clone git://git.rocketgit.com/user/coria/coria-backend

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main