Sha256: 000dac5294d26193b65071006b3acffb6c22dffe51df94cc844db07039d87916
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
- if Current.namespace == :users && \ @model.class.inline_editable?(@unsuffixed_attribute) && helpers.policy(@model).edit? = helpers.turbo_frame_tag(@frame_id, class: 'inline-edit') - if @record_updated pg-event[data-event-name="pg:record-updated" data-inline="true" data-turbo-temporary="" data-response='#{@model.decorate.to_json}'] = 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: '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