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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Cottrell <mcottrell@gitlab.com>2022-11-15 22:01:51 +0300
committerSuzanne Selhorn <sselhorn@gitlab.com>2022-11-15 22:01:51 +0300
commit663bbcf184fa94aa9e0e6af5b3fd4f77504ea0fb (patch)
tree6a8e70facfea59b93a9e8ce6985dee6d6dd39584 /layouts
parent6888659a51e362d289198694cfb6d58c33deadb7 (diff)
Automatically add legal disclaimer to architecture blueprints
Diffstat (limited to 'layouts')
-rw-r--r--layouts/blueprints/index.erb1
-rw-r--r--layouts/blueprints/table.erb2
2 files changed, 3 insertions, 0 deletions
diff --git a/layouts/blueprints/index.erb b/layouts/blueprints/index.erb
index a8542be6..122cc2db 100644
--- a/layouts/blueprints/index.erb
+++ b/layouts/blueprints/index.erb
@@ -1,5 +1,6 @@
<% render '/default.*' do %>
<% if @item.identifier.match?('/ee/architecture/blueprints/**/*.md') %>
+ <%= legal_disclaimer %>
<%= render '/blueprints/table.*', { :blueprints => [ @item ], :summary => true } %>
<%= yield %>
<% else %>
diff --git a/layouts/blueprints/table.erb b/layouts/blueprints/table.erb
index fef13030..3c2571e4 100644
--- a/layouts/blueprints/table.erb
+++ b/layouts/blueprints/table.erb
@@ -1,7 +1,9 @@
<% @summary ||= false %>
<table>
+ <% unless @summary %>
<caption>List of GitLab Architecture Blueprints</caption>
+ <% end %>
<thead>
<tr>
<th>Status</th>