Class: Decidim::NavbarAdminLinkCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::NavbarAdminLinkCell
- Includes:
- IconHelper
- Defined in:
- decidim-core/app/cells/decidim/navbar_admin_link_cell.rb
Overview
This cell renders a link in the top navbar so admins can easily manage data without having to look for it at the admin panel when they’re at a public page. example use:
<%= cell("decidim/navbar_admin_link", { link_url: link_url, link_options: link_options }) %>
Constant Summary
Constants included from IconHelper
IconHelper::DEFAULT_RESOURCE_TYPE_ICONS
Instance Method Summary collapse
Methods included from IconHelper
#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key
Instance Method Details
#show ⇒ Object
13 14 15 |
# File 'decidim-core/app/cells/decidim/navbar_admin_link_cell.rb', line 13 def show render if link_url end |