mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
committed by
GitHub
parent
ba86e81aa0
commit
78049a820c
@@ -26,18 +26,18 @@
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<% if current_user.power_user? %>
|
||||
<%= link_to 'Site settings', site_settings_boards_path, class: 'dropdown-item' %>
|
||||
<%= link_to 'Admin Panel', admin_root_path, class: 'dropdown-item', 'data-turbolinks': 'false' %>
|
||||
<%= link_to t('header.menu.site_settings'), site_settings_boards_path, class: 'dropdown-item' %>
|
||||
<%= link_to t('header.menu.admin_panel'), admin_root_path, class: 'dropdown-item', 'data-turbolinks': 'false' %>
|
||||
<div class="dropdown-divider"></div>
|
||||
<% end %>
|
||||
<%= link_to 'Profile settings', edit_user_registration_path, class: 'dropdown-item' %>
|
||||
<%= link_to t('header.menu.profile_settings'), edit_user_registration_path, class: 'dropdown-item' %>
|
||||
<div class="dropdown-divider"></div>
|
||||
<%= link_to 'Sign out', destroy_user_session_path, method: :delete, class: 'dropdown-item' %>
|
||||
<%= link_to t('header.menu.sign_out'), destroy_user_session_path, method: :delete, class: 'dropdown-item' %>
|
||||
</div>
|
||||
</li>
|
||||
<% else %>
|
||||
<li class="nav-item">
|
||||
<%= link_to 'Log in / Sign up', new_user_session_path, class: 'nav-link' %>
|
||||
<%= link_to t('header.log_in'), new_user_session_path, class: 'nav-link' %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
6
app/views/layouts/_set_js_locale.html.erb
Normal file
6
app/views/layouts/_set_js_locale.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<script type="text/javascript">
|
||||
// Used to set I18n-js locale to Rails locale
|
||||
// Variable used in javascript/translations/index.js.erb
|
||||
|
||||
var LOCALE = "<%= I18n.locale %>";
|
||||
</script>
|
||||
@@ -8,6 +8,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="turbolinks-cache-control" content="no-cache">
|
||||
|
||||
<%= render 'layouts/set_js_locale' %>
|
||||
|
||||
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style>
|
||||
/* Email styles need to be inline */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
<div><%= yield %></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
17
app/views/layouts/user_mailer.html.erb
Normal file
17
app/views/layouts/user_mailer.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p><%= t('user_mailer.opening_greeting') %></p>
|
||||
|
||||
<div><%= yield %></div>
|
||||
|
||||
<p><%= t('user_mailer.closing_greeting') %></p>
|
||||
|
||||
<footer>
|
||||
<%= link_to(t('user_mailer.unsubscribe'), edit_user_registration_url) %>.
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
1
app/views/layouts/user_mailer.text.erb
Normal file
1
app/views/layouts/user_mailer.text.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= yield %>
|
||||
Reference in New Issue
Block a user