module Ktistec::ViewHelper

Extended Modules

Direct including types

Defined in:

views/view_helper.cr

Class Method Summary

Macro Summary

Class Method Detail

def self._layout_src_views_layouts_default_html_ecr(env, title, head, content) #

[View source]
def self._view_src_views_activities_activity_json_ecr(activity, recursive) #

[View source]
def self._view_src_views_actors_actor_html_slang_layout_src_views_layouts_default_html_ecr(env, actor) #

[View source]
def self._view_src_views_actors_actor_json_ecr(env, actor) #

[View source]
def self._view_src_views_actors_notifications_html_slang_layout_src_views_layouts_default_html_ecr(env, account, actor, notifications) #

[View source]
def self._view_src_views_actors_notifications_json_ecr(env, account, actor, notifications) #

[View source]
def self._view_src_views_actors_posts_html_slang_layout_src_views_layouts_default_html_ecr(env, actor, objects) #

[View source]
def self._view_src_views_actors_posts_json_ecr(env, actor, objects) #

[View source]
def self._view_src_views_actors_public_posts_html_slang_layout_src_views_layouts_default_html_ecr(env, actor, objects) #

[View source]
def self._view_src_views_actors_public_posts_json_ecr(env, actor, objects) #

[View source]
def self._view_src_views_actors_remote_html_slang_layout_src_views_layouts_default_html_ecr(env, actor) #

[View source]
def self._view_src_views_actors_remote_json_ecr(env, actor) #

[View source]
def self._view_src_views_actors_timeline_html_slang_layout_src_views_layouts_default_html_ecr(env, actor, timeline) #

[View source]
def self._view_src_views_actors_timeline_json_ecr(env, actor, timeline) #

[View source]
def self._view_src_views_everything_index_html_slang_layout_src_views_layouts_default_html_ecr(env, collection) #

[View source]
def self._view_src_views_everything_index_json_ecr(env, collection) #

[View source]
def self._view_src_views_filters_form_html_slang_layout_src_views_layouts_default_html_ecr(env, term) #

[View source]
def self._view_src_views_filters_form_json_ecr(env, term) #

[View source]
def self._view_src_views_filters_index_html_slang_layout_src_views_layouts_default_html_ecr(env, terms) #

[View source]
def self._view_src_views_filters_index_json_ecr(env, terms) #

[View source]
def self._view_src_views_home_index_html_slang_layout_src_views_layouts_default_html_ecr(env, accounts, objects) #

[View source]
def self._view_src_views_home_index_json_ecr(env, accounts, objects) #

[View source]
def self._view_src_views_home_step_1_html_slang_layout_src_views_layouts_default_html_ecr(env, settings) #

[View source]
def self._view_src_views_home_step_1_json_ecr(env, settings) #

[View source]
def self._view_src_views_home_step_2_html_slang_layout_src_views_layouts_default_html_ecr(env, account, actor) #

[View source]
def self._view_src_views_home_step_2_json_ecr(env, account, actor) #

[View source]
def self._view_src_views_interactions_index_html_slang_layout_src_views_layouts_default_html_ecr(env, message, error, target, action, domain) #

[View source]
def self._view_src_views_interactions_index_json_ecr(env, message, error, target, action, domain) #

[View source]
def self._view_src_views_mentions_index_html_slang_layout_src_views_layouts_default_html_ecr(env, mention, collection, count, follow) #

[View source]
def self._view_src_views_mentions_index_json_ecr(env, mention, collection, count, follow) #

[View source]
def self._view_src_views_metrics_metrics_html_slang_layout_src_views_layouts_default_html_ecr(env, charts, range, granularity, labels) #

[View source]
def self._view_src_views_metrics_metrics_json_ecr(env, charts, range, granularity, labels) #

[View source]
def self._view_src_views_objects_edit_html_slang_layout_src_views_layouts_default_html_ecr(env, object, recursive) #

[View source]
def self._view_src_views_objects_edit_json_ecr(env, object, recursive) #

[View source]
def self._view_src_views_objects_index_html_slang_layout_src_views_layouts_default_html_ecr(env, drafts) #

[View source]
def self._view_src_views_objects_index_json_ecr(env, drafts) #

[View source]
def self._view_src_views_objects_object_html_slang_layout_src_views_layouts_default_html_ecr(env, object, recursive) #

[View source]
def self._view_src_views_objects_object_json_ecr(env, object, recursive) #

[View source]
def self._view_src_views_objects_replies_json_ecr(env, object, replies, recursive) #

[View source]
def self._view_src_views_objects_reply_html_slang_layout_src_views_layouts_default_html_ecr(env, object) #

[View source]
def self._view_src_views_objects_thread_html_slang_layout_src_views_layouts_default_html_ecr(env, object, thread, follow, task) #

[View source]
def self._view_src_views_objects_thread_json_ecr(env, object, thread, follow, task) #

[View source]
def self._view_src_views_pages_generic_html_slang_layout_src_views_layouts_default_html_ecr(env, message) #

[View source]
def self._view_src_views_partials_actor_panel_html_slang(env, actor) #

[View source]
def self._view_src_views_partials_collection_json_ecr(env, collection) #

[View source]
def self._view_src_views_partials_editor_html_slang(env, object, recursive) #

[View source]
def self._view_src_views_partials_editor_json_ecr(env, object, recursive) #

[View source]
def self._view_src_views_partials_object_content_html_slang(env, object, author, actor, with_detail, for_thread) #

[View source]
def self._view_src_views_partials_object_label_html_slang(env, author, actor) #

[View source]
def self._view_src_views_relationships_actors_html_slang_layout_src_views_layouts_default_html_ecr(env, related) #

[View source]
def self._view_src_views_relationships_actors_json_ecr(env, related) #

[View source]
def self._view_src_views_relationships_inbox_html_slang_layout_src_views_layouts_default_html_ecr(env, account, activities) #

[View source]
def self._view_src_views_relationships_inbox_json_ecr(env, account, activities) #

[View source]
def self._view_src_views_relationships_objects_html_slang_layout_src_views_layouts_default_html_ecr(env, objects) #

[View source]
def self._view_src_views_relationships_objects_json_ecr(env, objects) #

[View source]
def self._view_src_views_relationships_outbox_html_slang_layout_src_views_layouts_default_html_ecr(env, activities) #

[View source]
def self._view_src_views_relationships_outbox_json_ecr(env, activities) #

[View source]
def self._view_src_views_searches_actor_html_slang_layout_src_views_layouts_default_html_ecr(env, actor, message, query) #

[View source]
def self._view_src_views_searches_actor_json_ecr(env, actor, message, query) #

[View source]
def self._view_src_views_searches_form_html_slang_layout_src_views_layouts_default_html_ecr(env, message, query) #

[View source]
def self._view_src_views_searches_form_json_ecr(env, message, query) #

[View source]
def self._view_src_views_searches_object_html_slang_layout_src_views_layouts_default_html_ecr(env, object, message, query) #

[View source]
def self._view_src_views_searches_object_json_ecr(env, object, message, query) #

[View source]
def self._view_src_views_sessions_new_html_slang_layout_src_views_layouts_default_html_ecr(env, message, username, password) #

[View source]
def self._view_src_views_sessions_new_json_ecr(env, message, username, password) #

[View source]
def self._view_src_views_settings_settings_html_slang_layout_src_views_layouts_default_html_ecr(env, account, actor, settings) #

[View source]
def self._view_src_views_settings_settings_json_ecr(env, account, actor, settings) #

[View source]
def self._view_src_views_system_index_html_slang_layout_src_views_layouts_default_html_ecr(env, log_levels, sources) #

[View source]
def self._view_src_views_system_index_json_ecr(env, log_levels, sources) #

[View source]
def self._view_src_views_tags_index_html_slang_layout_src_views_layouts_default_html_ecr(env, hashtag, collection, count, follow, task) #

[View source]
def self._view_src_views_tags_index_json_ecr(env, hashtag, collection, count, follow, task) #

[View source]
def self._view_src_views_tasks_index_html_slang_layout_src_views_layouts_default_html_ecr(env, tasks) #

[View source]
def self._view_src_views_tasks_index_json_ecr(env, tasks) #

[View source]

Macro Detail

macro activity_button(arg1, arg2, arg3, type = nil, method = "POST", public = true, form_class = "ui inline form", button_class = "ui button", form_data = nil, button_data = nil, csrf = env.session.string?("csrf"), &block) #

Posts an activity to an outbox.


[View source]
macro activity_path(activity = nil) #

[View source]
macro activity_pub_collection(collection, &block) #

Renders an ActivityPub collection as JSON-LD.


[View source]
macro actor_path(actor = nil) #

[View source]
macro actor_relationships_path(actor = nil, relationship = nil) #

[View source]
macro actor_remote_follow_path(actor = nil) #

[View source]
macro anchor(object = nil) #

[View source]
macro approve_path(object = nil) #

[View source]
macro authenticity_token(env) #

[View source]
macro back_path #

[View source]
macro block_actor_path(actor = nil) #

[View source]
macro block_object_path(object = nil) #

[View source]
macro cancel_fetch_hashtag_path(hashtag = nil) #

[View source]
macro cancel_fetch_thread_path(object = nil) #

[View source]
macro comma(collection, counter) #

Emits a comma when one would be necessary when iterating through a collection.


[View source]
macro distance_of_time_in_words(*args) #

Transforms the span of time between two different times into words.

For use in views: <%= distance_of_time_in_words(from_time, to_time) %>


[View source]
macro edit_object_path(object = nil) #

[View source]
macro embed(filename, io_name) #

Embed a view with the given filename.


[View source]
macro error_block(model, comma = true) #

[View source]
macro error_messages(model) #

[View source]
macro everything_path #

[View source]
macro fetch_task_status_line(task, collection = nil, detail = false) #

Returns the fetch task status line.

If collection is specified, also includes the most recent published date of posts in that collection.


[View source]
macro field_pair(model, field, comma = true) #

[View source]
macro filter_path(filter = nil) #

[View source]
macro filters_path #

[View source]
macro follow_hashtag_path(hashtag = nil) #

[View source]
macro follow_mention_path(mention = nil) #

[View source]
macro follow_thread_path(object = nil) #

[View source]
macro form_button(arg1, action = nil, method = "POST", form_class = "ui inline form", button_class = "ui button", form_data = nil, button_data = nil, csrf = env.session.string?("csrf"), &block) #

General purpose form-powered button.


[View source]
macro form_tag(model, action, method = "POST", class _class = "ui form", data = nil, csrf = env.session.string?("csrf"), &block) #

[View source]
macro hashtag_path(hashtag = nil) #

[View source]
macro home_path #

[View source]
macro host #

Returns the host.


[View source]
macro id #

Generates a random, URL-safe identifier.


[View source]
macro id_param(env, type = :url, name = "id") #

[View source]
macro inbox_path(actor = nil) #

[View source]
macro input_tag(label, model, field, class _class = "", type = "text", placeholder = nil, data = nil) #

[View source]
macro iri_param(env, path = nil, type = :url, name = "id") #

[View source]
macro mention_path(mention = nil) #

[View source]
macro metrics_path #

[View source]
macro object_path(object = nil) #

[View source]
macro object_remote_like_path(object = nil) #

[View source]
macro object_remote_reply_path(object = nil) #

[View source]
macro object_remote_share_path(object = nil) #

[View source]
macro objects_path #

[View source]
macro outbox_path(actor = nil) #

[View source]
macro params_to_inputs(params, exclude exclude_ = nil, include include_ = nil) #

[View source]
macro pluralize(count, noun) #

Pluralizes the noun.

Important note: if the count is zero, the noun is returned as is, without a quantity (e.g. "fox" not "0 foxes").

For use in views: <%= pluralize(1, "fox") %>


[View source]
macro remote_activity_path(activity = nil) #

[View source]
macro remote_actor_path(actor = nil) #

[View source]
macro remote_interaction_path #

[View source]
macro remote_object_path(object = nil) #

[View source]
macro remote_thread_path(object = nil, anchor = true) #

[View source]
macro reply_path(object = nil) #

[View source]
macro s(str) #

Sanitizes HTML.

For use in views: <%= s string %>


[View source]
macro search_path #

[View source]
macro select_tag(label, model, field, options, selected = nil, class _class = "ui selection dropdown", data = nil) #

[View source]
macro sessions_path #

[View source]
macro settings_path #

[View source]
macro start_fetch_hashtag_path(hashtag = nil) #

[View source]
macro start_fetch_thread_path(object = nil) #

[View source]
macro submit_button(value = "Submit", class _class = "ui primary button") #

[View source]
macro system_path #

[View source]
macro task_status_line(task, detail = false) #

Returns the task status line.


[View source]
macro tasks_path #

[View source]
macro thread_path(object = nil, anchor = true) #

[View source]
macro unapprove_path(object = nil) #

[View source]
macro unblock_actor_path(actor = nil) #

[View source]
macro unblock_object_path(object = nil) #

[View source]
macro unfollow_hashtag_path(hashtag = nil) #

[View source]
macro unfollow_mention_path(mention = nil) #

[View source]
macro unfollow_thread_path(object = nil) #

[View source]