docbrown/app/views/admin/settings/show.html.erb
Ridhwana 5e93d3a25e
Add a contact email address to the /admin/customization/config (#16497)
* feat: remove the default email and cobine the periodic digest and the contact email under the Email section

* refactor: rename  the email_link to contact link and use the contact_email as a default and fallback to the ForemInstance.email

* chore: alignment

* feat: use the contact_email helper

* feat: move the contact_email to the ForemInstance model

* feat: use ForemInstance.contact_email instead of the application helper method

* removed the application Helper

* feat: set the dafault on the contact_email

* fix: cypress tests

* Update app/lib/constants/settings/general.rb

Co-authored-by: Michael Kohl <me@citizen428.net>

Co-authored-by: Michael Kohl <me@citizen428.net>
2022-02-15 17:37:08 +02:00

52 lines
1.9 KiB
Text

<div class="grid gap-6" data-controller="config">
<% unless current_user.super_admin? %>
<div class="crayons-notice crayons-notice--info" role="alert">
<p class="mb-1">
Only users with <strong>Super Admin</strong> privileges may edit this page.
</p>
</div>
<% end %>
<div id="settings">
<div class="card w-100">
<div
id="settingsHeader"
class="card-header"
data-toggle="collapse"
data-target="#settingsBodyContainer"
aria-expanded="true"
aria-controls="settingsBodyContainer">
<h2 class="d-inline">All Settings</h2>
<button
class="crayons-btn crayons-btn--secondary float-right"
type="button"
data-action="click->config#toggleAccordionButtonLabel">
Hide Settings
</button>
</div>
<div id="settingsBodyContainer" class="show expand p-3" aria-labelledby="settingsHeader">
<%= render partial: "forms/api_tokens" %>
<%= render partial: "forms/authentication" %>
<%= render partial: "forms/campaign" %>
<%= render partial: "forms/community" %>
<%= render partial: "forms/credits" %>
<%= render partial: "forms/emails" %>
<%= render partial: "forms/google_analytics" %>
<%= render partial: "forms/images", locals: { logo_allowed_types: @logo_allowed_types, logo_max_file_size: @logo_max_file_size } %>
<%= render partial: "forms/mascot" %>
<%= render partial: "forms/meta_keywords" %>
<%= render partial: "forms/monetization" %>
<%= render partial: "forms/newsletter" %>
<%= render partial: "forms/onboarding" %>
<%= render partial: "forms/rate_limit" %>
<%= render partial: "forms/smtp" %>
<%= render partial: "forms/sponsors" %>
<%= render partial: "forms/tags" %>
<%= render partial: "forms/user_experience" %>
</div>
</div>
</div>
</div>