Sha256: fee5f1c5399bf6b91b8bcd00e12ce154e9173ec54dbcbcff69d0551d82e08107

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

<div class="ui page grid">
  <div class="column">
    <div class="ui two column grid">
      <div class="column">
        <h2>Flows</h2>
      </div>
      <div class="column right aligned">
        <a href="<%= create_flow_path %>" class="ui green button right labeled icon">
          Create New Flow
          <i class="right arrow icon"></i>
        </a>
      </div>
    </div>
    <div class="ui divider"></div>
    <table class="ui very basic celled collapsed table">
      <thead>
        <th class="six wide">Flows ID</th>
        <th class="four wide">Created</th>
        <th class="six wide">Progress</th>
      </thead>
      <tbody>
<%
  @flows.sort_by(&:created_at).reverse_each do |flow|
%>
        <tr>
          <td>
            <a href="<%= show_flow_path(flow_id: flow.id) %>"><%= flow.id %></a>
          </td>
          <td>
            <%= time_ago_in_words Time.at(flow.created_at) %> ago
          </td>
          <td>
<%
    flow.phases.each do |phase|
%>
            <div class="phase">
              <%= phase.name %>
              <% if flow.current_phase == phase.name %>
              <i class="left arrow icon"></i>
              <% end %>
            </div>
<%
    end
%>
          </td>
        </tr>
<%
  end
%>
      </tbody>
    </table>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
distribot-ui-0.1.0 app/views/flow/list.html.erb