/
body.html.erb
28 lines (28 loc) · 1.08 KB
/
body.html.erb
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
<% case @state %>
<% when :waiting %>
<%= render(Primer::OpenProject::FlexLayout.new(align_items: :center)) do |flex| %>
<% flex.with_row do %>
<div class="op-loading-indicator">
<div></div><div></div>
</div>
<% end %>
<% flex.with_row do %>
<%= render(Primer::Beta::Text.new) { I18n.t('storages.open_project_storage_modal.waiting.a') } %>
<% end %>
<% flex.with_row do %>
<%= render(Primer::Beta::Text.new) { I18n.t('storages.open_project_storage_modal.waiting.b') } %>
<% end %>
<% end %>
<% when :success %>
<%= render(Primer::OpenProject::FlexLayout.new(align_items: :center)) do |flex| %>
<% flex.with_row do %>
<%= render(Primer::Beta::Octicon.new(:"check-circle", size: :medium, color: :success)) %>
<% end %>
<% flex.with_row do %>
<%= render(Primer::Beta::Text.new) { I18n.t('storages.open_project_storage_modal.success.a') } %>
<% end %>
<% flex.with_row do %>
<%= render(Primer::Beta::Text.new) { I18n.t('storages.open_project_storage_modal.success.b') } %>
<% end %>
<% end %>
<% end %>