module Ktistec::ViewHelper::ClassMethods
Defined in:
views/view_helper.crInstance Method Summary
- #activity(activity)
- #depth(object)
- #mention_page_mention_banner(env, mention, follow, count)
- #object_partial(env, object, actor = object.attributed_to, author = actor, *, activity = nil, with_detail = false, for_thread = nil)
- #paginate(env, collection)
- #pagination_params(env)
- #tag_page_tag_controls(env, hashtag, task, follow, count)
- #thread_page_thread_controls(env, thread, task, follow)
- #wrap_filter_term(str)
-
#wrap_link(str, include_scheme = false, length = 30, tag = :a)
Wraps a string in a link if it is a URL.
Instance Method Detail
def object_partial(env, object, actor = object.attributed_to, author = actor, *, activity = nil, with_detail = false, for_thread = nil)
#
Wraps a string in a link if it is a URL.
By default, matches the weird format used by Mastodon: https://github.com/mastodon/mastodon/blob/main/app/lib/text_formatter.rb