Sha256: d6ebbd75e6eca0757fdadb61af53bd4ac6b38b8b368264ce296776c53f8e703d

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

- if @model.class.inline_editable?(@unsuffixed_attribute) && helpers.policy(@model).edit?
  = helpers.turbo_frame_tag(@frame_id, class: 'inline-edit')
    = link_to users_inline_edit_path(model: @model.to_gid, attribute: @attribute),
              data: { \
                controller: :tooltip,
                'bs-title': "Modificar #{@model.class.human_attribute_name(@attribute).downcase}" },
                class: 'text-body-tertiary edit-link', style: 'font-size: 0.8em' do
      i.bi.bi-pencil
    span = @model.decorate.send(@attribute)
- else
  = @model.decorate.send(@attribute)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_rails-7.6.9 pg_engine/app/components/inline_edit/inline_show_component.html.slim
pg_rails-7.6.8 pg_engine/app/components/inline_edit/inline_show_component.html.slim
pg_rails-7.6.7 pg_engine/app/components/inline_edit/inline_show_component.html.slim