File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ def show
3333 @letters . group ( :target_level ) . count )
3434
3535 @letters_by_type = @letters . count
36+
37+ @affiliate_link = request . base_url +'?referral_org_id=' +@organization . id . to_s
3638
3739 end
3840
Original file line number Diff line number Diff line change 5858 </ div >
5959 < div class ="col-md-4 ">
6060 < center >
61- <% if current_user . org_admin or current_user . admin %>
62- <%= link_to 'Edit Organization Settings' , edit_organization_path ( @organization ) %>
63- <% end %>
61+ < strong >
62+ Affiliate Link< br >
63+ <%= link_to @affiliate_link , @affiliate_link %> < br > < br >
64+ <% if current_user . org_admin or current_user . admin %>
65+ <%= link_to 'Edit Organization Settings' , edit_organization_path ( @organization ) %>
66+ <% end %>
67+ </ strong >
6468 </ center >
6569 </ div >
6670</ div >
You can’t perform that action at this time.
0 commit comments