Welcome to mirror list, hosted at ThFree Co, Russian Federation.

table.erb « blueprints « layouts - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c2571e4e7318f59a097f8f9672b91aa51332dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<% @summary ||= false %>

<table>
  <% unless @summary %>
  <caption>List of GitLab Architecture Blueprints</caption>
  <% end %>
  <thead>
    <tr>
      <th>Status</th>
      <% unless @summary %>
      <th>Title</th>
      <% end %>
      <th>Author(s)</th>
      <th>Coach</th>
      <% if @summary %>
      <th>Approver(s)</th>
      <% end %>
      <th>Owning Stage</th>
      <th>Created</th>
    </tr>
  </thead>
  <tbody>
    <% @blueprints.each do |b| %>
      <tr>
        <td>
          <%= gl_label(b[:status])%>
        </td>
        <% unless @summary %>
        <td>
          <%= link_to(b[:title], b.path) %>
        </td>
        <% end %>
        <td>
          <% b[:authors]&.each do |a| %>
            <code><%= author_link(a) %></code>
          <% end %>
        </td>
        <td>
          <% if b[:coach] %>
            <code><%= author_link(b[:coach]) %></code>
          <% end %>
        </td>
        <% if @summary %>
        <td>
          <% b[:approvers]&.each do |a| %>
            <code><%= author_link(a) %></code>
          <% end %>
        </td>
        <% end %>
        <td><%= gl_label(b[:'owning-stage']) %></td>
        <td><%= blueprint_creation_date(b) %></td>
      </tr>
    <% end %>
  </tbody>
</table>