scinote-web/app/views/users/settings/account/preferences/index.html.erb

18 lines
823 B
Text
Raw Normal View History

<% provide(:head_title, t("users.settings.account.preferences.head_title")) %>
2016-02-12 23:52:43 +08:00
2023-10-13 16:08:39 +08:00
<div id="user_preferences" class="contents">
<user-preferences
:update-url = "'<%= update_preferences_path(format: :json) %>'"
:user-settings = "<%= @user.settings.to_json %>"
:time-zones = "<%= ActiveSupport::TimeZone.all.map{ |tz|
[ tz.name, tz.formatted_offset + " " + tz.name]
}.to_json %>"
:date-formats = "<%= Constants::SUPPORTED_DATE_FORMATS.map { |df|
[df, "#{l(Time.new(2024, 4, 22), format: :full_date, date_format: df)}"]
}.to_json %>"
2023-10-13 19:54:59 +08:00
:notifications-groups = "<%= NotificationExtends::NOTIFICATIONS_GROUPS.to_json %>"
2023-10-13 16:08:39 +08:00
/>
</div>
<%= javascript_include_tag "vue_user_preferences" %>