Class: Decidim::AuthorCell

Inherits:
ViewModel
  • Object
show all
Includes:
CellsHelper, LayoutHelper, Messaging::ConversationHelper, Devise::Controllers::Helpers, Devise::Controllers::UrlHelpers
Defined in:
app/cells/decidim/author_cell.rb

Overview

This cell renders the author of a resource. It is intended to be used below resource titles to indicate its authorship & such, and is intended for resources that have a single author.

Instance Method Summary collapse

Methods included from Messaging::ConversationHelper

#conversation_between, #current_or_new_conversation_path_with, #link_to_current_or_new_conversation_with

Methods included from CellsHelper

#collaborative_drafts_controller?, #current_component, #flagable?, #from_context, #index_action?, #posts_controller?, #proposals_controller?, #show_action?, #withdrawable?

Methods included from LayoutHelper

#_icon_classes, #external_icon, #favicon, #icon

Methods inherited from ViewModel

#current_user

Methods included from ReplaceButtonsHelper

#button_to, #submit_tag

Methods included from ActionAuthorizationHelper

#action_authorized_button_to, #action_authorized_link_to, #logged_button_to, #logged_link_to

Methods included from ScopesHelper

#has_visible_scopes?, #scope_name_for_picker, #scopes_picker_field, #scopes_picker_filter, #scopes_picker_tag

Methods included from DecidimFormHelper

#base_error_messages, #decidim_form_for, #decidim_form_slug_url, #editor_field_tag, #form_field_has_error?, #foundation_datepicker_locale_tag, #name_with_locale, #scopes_picker_field_tag, #tab_element_class_for, #translated_field_tag

Methods included from ResourceHelper

#linked_classes_filter_values_for, #linked_classes_for, #linked_resources_for, #resource_locator, #resource_title

Instance Method Details

#dateObject



30
31
32
# File 'app/cells/decidim/author_cell.rb', line 30

def date
  render
end

#flagObject



34
35
36
# File 'app/cells/decidim/author_cell.rb', line 34

def flag
  render
end

#profileObject



22
23
24
# File 'app/cells/decidim/author_cell.rb', line 22

def profile
  render
end

#profile_inlineObject



26
27
28
# File 'app/cells/decidim/author_cell.rb', line 26

def profile_inline
  render
end

#showObject



18
19
20
# File 'app/cells/decidim/author_cell.rb', line 18

def show
  render
end

#withdrawObject



38
39
40
# File 'app/cells/decidim/author_cell.rb', line 38

def withdraw
  render
end