Sha256: 33037873138ce3438780c867c1b169baee5a8985b790f77d234cb917e1513961
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
ActiveAdmin.register KnowledgeBase::Sectionables::Links::List do menu parent: I18n.t('activerecord.models.knowledge_base/section/kind.other') index do column :id column :links do |links| links.links.map { |link| link_to link.title, link.url }.join(", ").html_safe end default_actions end form do |f| f.has_many :links, sortable: :position do |f| f.input :title f.input :description f.input :url f.input :style end f.actions end show do |links| attributes_table do row :id row :links do links.links.map { |link| link_to link.title, link.url }.join(", ").html_safe end row :created_at row :updated_at end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knowledge_base-0.2.0 | lib/generators/knowledge_base/active_admin/templates/sectionables/links/list.rb |