Files
fizzy/app/helpers/rich_text_helper.rb
Mike Dalessio 151787a864 Remove dead Tag::Attachable code and tags prompt
The tags prompt was added for the Fizzy Do command system, but became
dead code when commands were removed in 89af9066. The commands_prompt
was cleaned up but tags_prompt was missed.

Remove the Tag::Attachable concern, Prompts::TagsController, its views
and route, and the tags_prompt helper. Tag still includes
ActionText::Attachable directly, which is needed by the data transfer
system.
2026-04-09 17:13:41 -04:00

18 lines
590 B
Ruby

module RichTextHelper
def mentions_prompt(board)
content_tag "lexxy-prompt", "", trigger: "@", src: prompts_board_users_path(board), name: "mention"
end
def global_mentions_prompt
content_tag "lexxy-prompt", "", trigger: "@", src: prompts_users_path, name: "mention"
end
def cards_prompt
content_tag "lexxy-prompt", "", trigger: "#", src: prompts_cards_path, name: "card", "insert-editable-text": true, "remote-filtering": true, "supports-space-in-searches": true
end
def general_prompts(board)
safe_join([ mentions_prompt(board), cards_prompt ])
end
end