Sha256: f344f5d7c51277f6896aa97facf5c40b436ed3625b9cabc34b9737d6d9a7ddea

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

Deface::Override.new(
  :virtual_path => "spree/users/show",
  :name => "user_info",
  :insert_after => "[data-hook='account_summary'] #user-info dd:first"
) do
<<-CODE.chomp
<dt>Referral URL</dt>
<dd><input type='text' value='<%= referral_url(@user.referral.code) %>' onClick='this.select();' /></dd>
<dt>Referred Users</dt>
<dd><%= @user.referred_count%></dd>
CODE
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_reffiliate-2.4.1 app/overrides/spree/users/show.rb
spree_reffiliate-2.3.1 app/overrides/spree/users/show.rb