151787a864
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.
18 lines
590 B
Ruby
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
|