Class: Decidim::RedesignedFollowButtonCell

Inherits:
RedesignedButtonCell show all
Defined in:
decidim-core/app/cells/decidim/redesigned_follow_button_cell.rb

Overview

This cell renders the button to follow the given resource.

Constant Summary

Constants inherited from RedesignedButtonCell

Decidim::RedesignedButtonCell::DEFAULT_ATTRIBUTES

Constants included from IconHelper

IconHelper::DEFAULT_RESOURCE_TYPE_ICONS

Instance Method Summary collapse

Methods inherited from RedesignedButtonCell

#button_attributes

Methods included from IconHelper

#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key

Instance Method Details

#showObject



6
7
8
9
10
# File 'decidim-core/app/cells/decidim/redesigned_follow_button_cell.rb', line 6

def show
  return if model == current_user

  render
end