--- /dev/null
+# frozen_string_literal: true
+
+class Settings::KeywordMutesController < ApplicationController
+ layout 'admin'
+
+ before_action :authenticate_user!
+end
--- /dev/null
+module Settings::KeywordMutesHelper
+end
--- /dev/null
+- content_for :page_title do
+ = t('settings.keyword_mutes')
export: Data export
followers: Authorized followers
import: Import
+ keyword_mutes: Muted keywords
notifications: Notifications
preferences: Preferences
settings: Settings
primary.item :settings, safe_join([fa_icon('cog fw'), t('settings.settings')]), settings_profile_url do |settings|
settings.item :profile, safe_join([fa_icon('user fw'), t('settings.edit_profile')]), settings_profile_url
settings.item :preferences, safe_join([fa_icon('sliders fw'), t('settings.preferences')]), settings_preferences_url
+ settings.item :keyword_mutes, safe_join([fa_icon('volume-off fw'), t('settings.keyword_mutes')]), settings_keyword_mutes_url
settings.item :notifications, safe_join([fa_icon('bell fw'), t('settings.notifications')]), settings_notifications_url
settings.item :password, safe_join([fa_icon('lock fw'), t('auth.change_password')]), edit_user_registration_url, highlights_on: %r{/auth/edit|/settings/delete}
settings.item :two_factor_authentication, safe_join([fa_icon('mobile fw'), t('settings.two_factor_authentication')]), settings_two_factor_authentication_url, highlights_on: %r{/settings/two_factor_authentication}
namespace :settings do
resource :profile, only: [:show, :update]
+ resources :keyword_mutes
resource :preferences, only: [:show, :update]
resource :notifications, only: [:show, :update]
resource :import, only: [:show, :create]
--- /dev/null
+require 'rails_helper'
+
+RSpec.describe Settings::KeywordMutesController, type: :controller do
+
+end
--- /dev/null
+require 'rails_helper'
+
+# Specs in this file have access to a helper object that includes
+# the Settings::KeywordMutesHelper. For example:
+#
+# describe Settings::KeywordMutesHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# expect(helper.concat_strings("this","that")).to eq("this that")
+# end
+# end
+# end
+RSpec.describe Settings::KeywordMutesHelper, type: :helper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end