mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
c942e44fc0
* [#48620] Define `AttributesGroup` view component for Storage show.html.erb https://community.openproject.org/work_packages/48620 * feat[#48620] Define `AttributeGroup` components https://community.openproject.org/work_packages/48620 * chore[#48620] rename attribute options to `key`, `value` * chore[#48620] remove unecessary constructor * chore[#48620] Allow attribute group content * chore[#48620] remove unecessary constructor * feat[#48620] Migrate storages/admin/show to use AttributeGroupComponent * fix[#48620] Use correct labels * feat[#48620] Migrate storages/admin/edit to use AttributeGroupComponent * legal[#48620] Add copyright to views * fix[#48620] Use simple names for slot collection vs singular component methods * fix[#48620] Render value when truthy otherwise is empty span * chore[#48620]: Adopt `AttributesGroupComponent` in oauth/applications/show * chore[#48620]: Remove unnecessary `value: nil` definitions * fix[#48620] typo * fix: align attribute groups across the application Attribute groups on the storages and oauth application admin pages looked different than on the work package pages. This was introduced by https://community.openproject.org/projects/openproject/work_packages/47680/activity To align them, this commit reduces the scope of the `wp-attribute-group` css, instead applying those styles to the more general `attributes-group` block. It also fixes the HTML structure of the backend-rendered attribute groups to align with those in the frontend. Ref https://community.openproject.org/work_packages/48640/activity * refactor: Oauth detail page uses new AttributeGroups::AttributeGroupComponent * Convert admin/info to component * Convert change_status_info to component * Convert ldap_groups to component * convert two_factor_authentication to component * quick fix vertical alignment of attribute-key values * convert budget show to component * convert 2FA settings to component * convert ldap gropus filters to component * convert 2FA admin to component * convert webhook admin to component * update DB deprecation message and reduce html/rb context switches --------- Co-authored-by: Kabiru Mwenja <makabby@gmail.com> Co-authored-by: Oliver Günther <mail@oliverguenther.de> Co-authored-by: ulferts <jens.ulferts@googlemail.com>
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
<%#-- copyright
|
|
OpenProject is an open source project management software.
|
|
Copyright (C) 2012-2023 the OpenProject GmbH
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 3.
|
|
|
|
OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
|
Copyright (C) 2006-2013 Jean-Philippe Lang
|
|
Copyright (C) 2010-2013 the ChiliProject Team
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
See COPYRIGHT and LICENSE files for more details.
|
|
|
|
++#%>
|
|
|
|
<div class="attributes-group">
|
|
<%= header %>
|
|
|
|
<div class="attributes-group--attributes">
|
|
<% attributes.each do |attribute| %>
|
|
<div class="attributes-key-value">
|
|
<%= attribute %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="attributes-group--content">
|
|
<%= content %>
|
|
</div>
|
|
</div>
|