- provide(:page_name, 'landing_page full landing_product affiliate_links')
- provide(:description, 'Affiliate Links')

h2 Affiliate Links
p.intro
  | This page provides you with lists of ready-to-use links you can use to direct your followers to JamKazam.&nbsp;
  | These links include your unique affiliate ID, and users who follow these links to JamKazam and register for an account will be&nbsp;
  | tagged with your affiliate ID, so that you will be paid on their purchase per the terms of the affiliate agreement.

h3 Table of Contents
ul
  li
    a href='#header_jamtrack_songs' JamTrack Songs
  li
    a href='#header_jamtrack_bands' JamTrack Bands
  li
    a href='#header_jamtrack_general' JamTrack Generic
  li
    a href='#header_jamkazam' JamKazam General
  li
    a href='#header_sessions' Sessions
  li
    a href='#header_recordings' Recordings
  li
    a href='#header_custom_links' Custom Links
h3#header_jamtrack_songs JamTrack Songs
.link-type-prompt data-type='jamtrack_songs'
  | These links take users directly to the "landing page" for a JamTrack - i.e. an individual piece of music. This would be a great fit, for example, if you have  produced a YouTube tutorial on how to play a particular song, or if you have music notation for a particular song, etc.
table.links-table.jamtrack_songs
  thead
    tr
      th.target TARGET PAGE
      th.copy-link
      th.url URL
    tbody

h3#header_jamtrack_bands JamTrack Bands
.link-type-prompt data-type='jamtrack_bands'
  | These links take users directly to the "landing page" for a band to promote all the JamTracks by that band, not just an individual song. This would be a great fit, for example, if you have music notation for several songs by a band, etc.
table.links-table.jamtrack_bands
  thead
    tr
      th.target TARGET PAGE
      th.copy-link
      th.url URL
    tbody

h3#header_jamtrack_general JamTrack General
.link-type-prompt data-type='jamtrack_general'
  | These links take users directly to a"landing page" that promotes JamTracks in general. This page will feature the song listed in the link as an example of a JamTrack, but the landing page is built to promote JamTracks in general versus promoting just the one song. This is a good fit if you want to let your followers know about JamTracks in general.
table.links-table.jamtrack_general
  thead
    tr
      th.target TARGET PAGE
      th.copy-link
      th.url URL
    tbody

h3#header_jamkazam JamKazam Generic
.link-type-prompt data-type='jamkazam'
  | These links take users directly to a product page that promotes JamKazam more generally. This is a good fit if you want to let your followers know about JamKazam or its products in general.
table.links-table.jamkazam
  thead
    tr
      th.target TARGET PAGE
      th.copy-link
      th.url URL
    tbody

h3#header_sessions Sessions
.link-type-prompt data-type='sessions'
  | These links take users to a page where they can listen to a session you have organized, and in which you are scheduled to perform, either alone or with others. This is a good fit if you can perform either solo or in a group with other musicians in a JamKazam session, and draw an audience to listen to your session. During the session, you can recommend that your audience members sign up for JamKazam from this page. Below is a list of your currently scheduled JamKazam sessions for which you may share links.
table.links-table.sessions
  thead
    tr
      th.target TARGET PAGE
      th.copy-link
      th.url URL
    tbody

h3#header_recordings Recordings
.link-type-prompt data-type='recordings'
  | These links take users to a page with a recording you have made in a JamKazam session. This is a good fit if you have made a nice recording in a JamKazam session and can share it with your followers via Facebook, Twitter, email, and so on. Below is a list of your most recent JamKazam recordings for which you may share links.
table.links-table.recordings
  thead
    tr
      th.target TARGET PAGE
      th.copy-link
      th.url URL
    tbody

h3#header_custom_links Custom Links
.link-type-prompt data-type='custom_links'
  p You may also link to any page on the JamKazam website and append the following text to the URL of the page to which you are linking:

  p.example-link
    | ?utm_source=affiliate&utm_medium=affiliate&utm_campaign=2015-affiliate-custom&affiliate=
    span.affiliate_id = @partner.id

  p For example, if you were linking to the JamKazam home page, you would combine https://www.jamkazam.com with the text above, and the result would be:

  p.example-link
    | https://www.jamkazam.com?utm_source=affiliate&utm_medium=affiliate&utm_campaign=2015-affiliate-custom&affiliate=
    span.affiliate_id = @partner.id

javascript:
  $(document).on('JAMKAZAM_READY', function (e, data) {
    var affiliateLinks = new JK.AffiliateLinks(data.app, '#{@partner.id}');
    affiliateLinks.initialize();
  })

script type="text/template" id="template-affiliate-link-row"
  tr
    td.target
      | {{data.target}}
    td.copy-link
      a href='#' select link
    td.url
      input type="text" value="{{data.url}}"