mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add custom CSS (#264)
This commit is contained in:
committed by
GitHub
parent
653e139a9e
commit
d7e7db9f72
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit t('common.forms.auth.resend_confirmation_instructions'), class: "btn btn-dark btn-block" %>
|
||||
<%= f.submit t('common.forms.auth.resend_confirmation_instructions'), class: "btn btnPrimary btn-block" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit t('common.forms.auth.change_password'), class: "btn btn-dark btn-primary" %>
|
||||
<%= f.submit t('common.forms.auth.change_password'), class: "btnPrimary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit t('common.forms.auth.send_reset_password_instructions'), class: "btn btn-dark btn-block" %>
|
||||
<%= f.submit t('common.forms.auth.send_reset_password_instructions'), class: "btnPrimary btn-block" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit t('common.forms.auth.update_profile'), class: "btn btn-dark btn-block" %>
|
||||
<%= f.submit t('common.forms.auth.update_profile'), class: "btnPrimary btn-block" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit t('common.forms.auth.sign_up'), class: "btn btn-dark btn-block" %>
|
||||
<%= f.submit t('common.forms.auth.sign_up'), class: "btnPrimary btn-block" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<% end %>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit t('common.forms.auth.log_in'), class: "btn btn-dark btn-block" %>
|
||||
<%= f.submit t('common.forms.auth.log_in'), class: "btnPrimary btn-block" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit t('common.forms.auth.resend_unlock_instructions'), class: "btn btn-dark btn-block" %>
|
||||
<%= f.submit t('common.forms.auth.resend_unlock_instructions'), class: "btnPrimary btn-block" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -25,5 +25,11 @@
|
||||
<div class="container">
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
||||
<% if @tenant and not @tenant.tenant_setting.custom_css.blank? %>
|
||||
<style type="text/css">
|
||||
<%= @tenant.tenant_setting.custom_css %>
|
||||
</style>
|
||||
<% end %>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<%= render 'menu_link', label: t('site_settings.menu.boards'), path: site_settings_boards_path %>
|
||||
<%= render 'menu_link', label: t('site_settings.menu.post_statuses'), path: site_settings_post_statuses_path %>
|
||||
<%= render 'menu_link', label: t('site_settings.menu.roadmap'), path: site_settings_roadmap_path %>
|
||||
<%= render 'menu_link', label: t('site_settings.menu.appearance'), path: site_settings_appearance_path %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'menu_link', label: t('site_settings.menu.users'), path: site_settings_users_path %>
|
||||
|
||||
16
app/views/site_settings/appearance.html.erb
Normal file
16
app/views/site_settings/appearance.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="twoColumnsContainer">
|
||||
<%= render 'menu' %>
|
||||
<div>
|
||||
<%=
|
||||
react_component(
|
||||
'SiteSettings/Appearance',
|
||||
{
|
||||
originForm: {
|
||||
customCss: @tenant_setting.custom_css,
|
||||
},
|
||||
authenticityToken: form_authenticity_token
|
||||
}
|
||||
)
|
||||
%>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user