32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# File 'lib/decidim/core/menu.rb', line 32
def self.
Decidim. :user_menu do ||
.add_item :account,
t("account", scope: "layouts.decidim.user_profile"),
decidim.account_path,
position: 1.0,
active: :exact
.add_item :notifications_settings,
t("notifications_settings", scope: "layouts.decidim.user_profile"),
decidim.notifications_settings_path,
position: 1.1
if available_verification_workflows.any?
.add_item :authorizations,
t("authorizations", scope: "layouts.decidim.user_profile"),
decidim_verifications.authorizations_path,
position: 1.2
end
if current_organization.user_groups_enabled? && user_groups.any?
.add_item :own_user_groups,
t("user_groups", scope: "layouts.decidim.user_profile"),
decidim.own_user_groups_path,
position: 1.3
end
.add_item :user_interests,
t("my_interests", scope: "layouts.decidim.user_profile"),
decidim.user_interests_path,
position: 1.4
.add_item :download_your_data,
t("my_data", scope: "layouts.decidim.user_profile"),
decidim.download_your_data_path,
position: 1.5
.add_item :delete_account,
t("delete_my_account", scope: "layouts.decidim.user_profile"),
decidim.delete_account_path,
position: 999,
active: :exact
end
end
|