akkounts/app/views/shared/_sidenav_settings.html.erb
Râu Cao 3715cb518b
All checks were successful
continuous-integration/drone/push Build is passing
User Settings: Rename Experiments to Nostr
And use a nostr icon
2024-03-16 16:03:15 +01:00

41 lines
1.4 KiB
Plaintext

<%= render SidenavLinkComponent.new(
name: "Profile", path: setting_path(:profile), icon: "user",
active: @settings_section.to_s == "profile"
) %>
<%= render SidenavLinkComponent.new(
name: "Account", path: setting_path(:account), icon: "key",
active: @settings_section.to_s == "account"
) %>
<% if Setting.ejabberd_enabled %>
<%= render SidenavLinkComponent.new(
name: "Chat", path: setting_path(:xmpp), icon: "message-circle",
active: @settings_section.to_s == "xmpp"
) %>
<% end %>
<% if Setting.email_enabled? &&
Flipper.enabled?(:email, current_user) %>
<%= render SidenavLinkComponent.new(
name: "E-Mail", path: setting_path(:email), icon: "mail",
active: @settings_section.to_s == "email"
) %>
<% end %>
<% if Setting.lndhub_enabled %>
<%= render SidenavLinkComponent.new(
name: "Lightning", path: setting_path(:lightning), icon: "zap",
active: @settings_section.to_s == "lightning"
) %>
<% end %>
<% if Setting.remotestorage_enabled? &&
Flipper.enabled?(:remotestorage, current_user) %>
<%= render SidenavLinkComponent.new(
name: "Storage", path: setting_path(:remotestorage), icon: "remotestorage",
active: @settings_section.to_s == "remotestorage"
) %>
<% end %>
<% if Setting.nostr_enabled %>
<%= render SidenavLinkComponent.new(
name: "Nostr", path: setting_path(:nostr), icon: "nostrich-head",
active: @settings_section.to_s == "nostr"
) %>
<% end %>