mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add Site settings > General (#133)
This commit is contained in:
committed by
GitHub
parent
bdc4004e4a
commit
35831b9801
@@ -2,10 +2,16 @@
|
||||
<div class="container">
|
||||
<%=
|
||||
link_to root_path, class: 'brand' do
|
||||
app_name = content_tag :span, Rails.application.name
|
||||
logo = image_tag(asset_pack_path('media/images/logo.png'), class: 'logo')
|
||||
app_name = content_tag :span, @tenant.site_name
|
||||
logo = image_tag(@tenant.site_logo ? @tenant.site_logo : "", class: 'logo')
|
||||
|
||||
Rails.application.show_logo? ? logo + app_name : app_name
|
||||
if @tenant.brand_display_setting == "name_and_logo"
|
||||
logo + app_name
|
||||
elsif @tenant.brand_display_setting == "name_only"
|
||||
app_name
|
||||
elsif @tenant.brand_display_setting == "logo_only"
|
||||
logo
|
||||
end
|
||||
end
|
||||
%>
|
||||
|
||||
@@ -37,7 +43,7 @@
|
||||
<% if current_user.power_user? %>
|
||||
<%=
|
||||
link_to t('header.menu.site_settings'),
|
||||
current_user.admin? ? site_settings_boards_path : site_settings_users_path,
|
||||
current_user.admin? ? site_settings_general_path : site_settings_users_path,
|
||||
class: 'dropdown-item'
|
||||
%>
|
||||
<div class="dropdown-divider"></div>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= Rails.application.name %></title>
|
||||
<title><%= @tenant ? @tenant.site_name : @page_title %></title>
|
||||
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
@@ -17,7 +18,10 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= render 'layouts/header' %>
|
||||
<% if @tenant %>
|
||||
<%= render 'layouts/header' %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'layouts/alerts' %>
|
||||
|
||||
<div class="container">
|
||||
|
||||
@@ -4,14 +4,19 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p><%= t('user_mailer.opening_greeting') %></p>
|
||||
<p><%= t('mailers.user.opening_greeting') %></p>
|
||||
|
||||
<div><%= yield %></div>
|
||||
|
||||
<p><%= t('user_mailer.closing_greeting') %></p>
|
||||
<p><%= t('mailers.user.closing_greeting') %></p>
|
||||
|
||||
<footer>
|
||||
<%= link_to(t('user_mailer.unsubscribe'), edit_user_registration_url) %>.
|
||||
<%=
|
||||
link_to(
|
||||
t('mailers.user.unsubscribe'),
|
||||
add_subdomain_to(method(:edit_user_registration_url))
|
||||
)
|
||||
%>.
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user