-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14242 from opf/implementation/51229-remove-featur…
…e-flags-for-storage_primer_design-and-storage_one_drive_integration [#51229] Remove feature flags for storage_primer_design and storage_one_drive_integration
- Loading branch information
Showing
11 changed files
with
89 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 10 additions & 42 deletions
52
modules/storages/app/views/storages/admin/storages/index.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,18 @@ | ||
<!-- Standard Ruby view, please see the controller for comments --> | ||
<% html_title t(:label_administration), t("project_module_storages") %> | ||
|
||
<% if OpenProject::FeatureDecisions.storage_primer_design_active? %> | ||
<%= render(Primer::OpenProject::PageHeader.new) do |header| %> | ||
<% header.with_title do %> | ||
<%= t("project_module_storages") %> | ||
<% end %> | ||
|
||
<% header.with_description do %> | ||
<%= t("storages.page_titles.file_storages.subtitle") %> | ||
<% end %> | ||
|
||
<% header.with_actions do %> | ||
<%= render(Storages::Admin::NewStorageButtonComponent.new) %> | ||
<% end %> | ||
<%= render(Primer::OpenProject::PageHeader.new) do |header| %> | ||
<% header.with_title do %> | ||
<%= t("project_module_storages") %> | ||
<% end %> | ||
|
||
<%= render(::Storages::Admin::StorageListComponent.new(@storages)) %> | ||
|
||
<% else %> | ||
<%= toolbar title: t("project_module_storages") do %> | ||
<li class="toolbar-item"> | ||
<%= link_to new_admin_settings_storage_path, | ||
{ class: 'button -alt-highlight', | ||
aria: { label: t('storages.label_new_storage') }, | ||
title: t('storages.label_new_storage') } do %> | ||
<%= op_icon('button--icon icon-add') %> | ||
<span class="button--text"><%= ::Storages::Storage.model_name.human %></span> | ||
<% end %> | ||
</li> | ||
<% header.with_description do %> | ||
<%= t("storages.page_titles.file_storages.subtitle") %> | ||
<% end %> | ||
|
||
<div class="op-toast -info -with-bottom-spacing"> | ||
<div class="op-toast--content"> | ||
<p> | ||
<%= t('repositories.storage.setup_documentation_details') %> | ||
<a | ||
href="<%= ::OpenProject::Static::Links[:storage_docs][:setup][:href] %>" | ||
target="_blank" | ||
class="spot-link" | ||
> | ||
<%= t('repositories.storage.setup_documentation_details_link_text') %> | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<%= render(::Storages::Admin::TableComponent.new(rows: @storages)) %> | ||
<% header.with_actions do %> | ||
<%= render(Storages::Admin::NewStorageButtonComponent.new) %> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= render(::Storages::Admin::StorageListComponent.new(@storages)) %> |
Oops, something went wrong.