<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>public/images/itunes.gif</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -21,6 +21,7 @@ class AudiographyController &lt; ApplicationController
         audiography.user.fake? ? @show_rss = false : @show_rss = true
         @basic_url = &quot;http://&quot; + Linking.site() + audiography.get_url
         @follow_link = audiography.get_xml_url()
+        @itunes_link = audiography.get_itunes_url()
         @user_can_edit = false
         @url_title = params[:identifier]
 </diff>
      <filename>app/controllers/audiography_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,6 +25,7 @@ class TrackController &lt; ApplicationController
     @items = Tracking::tracks_to_items(@tracks)
     @show_rss = true
     @follow_link = Linking::latest_tracks_xml()
+    @itunes_link = Linking::latest_tracks_itunes()
     @title = &quot;Latest&quot;
     
     respond_to do |format| </diff>
      <filename>app/controllers/track_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,6 +30,10 @@ class Audiography &lt; ActiveRecord::Base
     Linking::audiography_xml(self)
   end
   
+  def get_itunes_url()
+    Linking::audiography_itunes(self)
+  end
+  
   def tracks()
     Track.find(:all, :conditions =&gt; &quot;audiography_id = #{self.id}&quot;, :order =&gt; &quot;sort_order ASC, created_at DESC&quot;)
   end</diff>
      <filename>app/models/audiography.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,8 @@
 	&lt;% else %&gt;
 		&lt;%= render(:partial =&gt; 'track/playlist_setup', :locals =&gt; { :show =&gt; &quot;audiography&quot;, :identifier =&gt; @url_title }) %&gt;
 		&lt;%= render(:partial =&gt; 'track/list_title', :locals =&gt; { :title =&gt; @title,
-																														:follow_link =&gt; @follow_link }) %&gt;
+																														:follow_link =&gt; @follow_link,
+																														:itunes_link =&gt; @itunes_link }) %&gt;
 	
 		&lt;!-- edit audiography --&gt;
 		&lt;% if @user_can_edit %&gt;</diff>
      <filename>app/views/audiography/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,43 +1,46 @@
+&lt;div class=&quot;track_controls&quot; style=&quot;display:none;&quot;
+     id=&quot;&lt;%=controls_dom_id%&gt;&quot; 
+		 onmouseover=&quot;Element.show('&lt;%=controls_dom_id%&gt;')&quot;
+ 		 onmouseout=&quot;Element.hide('&lt;%=controls_dom_id%&gt;')&quot;&gt;
 
-
-&lt;% if link_to_audiography %&gt;
-	&lt;div class=&quot;track_audiography_holder&quot;&gt;
-		&lt;a href='/&lt;%=track.audiography.url_title%&gt;'&gt;&lt;span class=&quot;track_audiography_link&quot;&gt;&lt;%=track.audiography.url_title%&gt;&lt;/span&gt;&lt;/a&gt;
-	&lt;/div&gt;
-&lt;% else %&gt;
-	&lt;div class=&quot;track_controls&quot;
-	     id=&quot;&lt;%=controls_dom_id%&gt;&quot;
-			 onmouseover=&quot;Element.show('&lt;%=controls_dom_id%&gt;')&quot;
-	 		 onmouseout=&quot;Element.hide('&lt;%=controls_dom_id%&gt;')&quot;
-			 style=&quot;display:none;&quot;&gt;
-				&lt;% if user_can_edit %&gt;
-					&lt;span onmouseover=&quot;Element.show('drag_handle_in&lt;%=track.id%&gt;');
-														 Element.hide('drag_handle_out&lt;%=track.id%&gt;');&quot;
-								 onmouseout=&quot;Element.hide('drag_handle_in&lt;%=track.id%&gt;');
-														 Element.show('drag_handle_out&lt;%=track.id%&gt;');&quot;&gt;
-						&lt;img src=&quot;/images/drag_handle_grey.gif&quot; class=&quot;drag_handle handle&quot; id='drag_handle_out&lt;%=track.id%&gt;' title='Reorder song' alt='Reorder song'&gt;
-						&lt;img src=&quot;/images/drag_handle.gif&quot; class=&quot;drag_handle handle&quot; id='drag_handle_in&lt;%=track.id%&gt;' style=&quot;display:none;&quot; title='Reorder song' alt='Reorder song'&gt;
-					&lt;/span&gt;
-					
-					&lt;span onmouseover=&quot;Element.show('edit_handle_in&lt;%=track.id%&gt;');
-														 Element.hide('edit_handle_out&lt;%=track.id%&gt;');&quot;
-								 onmouseout=&quot;Element.hide('edit_handle_in&lt;%=track.id%&gt;');
-														 Element.show('edit_handle_out&lt;%=track.id%&gt;');&quot;&gt;
-						&lt;a href='/track/edit/&lt;%=track.id%&gt;'&gt;
-							&lt;img src='/images/edit_handle_grey.gif' class='edit_handle handle' id='edit_handle_out&lt;%=track.id%&gt;' title='Edit song' alt='Edit song'&gt;
-							&lt;img src='/images/edit_handle.gif' class='edit_handle handle' id='edit_handle_in&lt;%=track.id%&gt;' style=&quot;display:none;&quot; title='Edit song' alt='Edit song'&gt;
-						&lt;/a&gt;
-					&lt;/span&gt;
-				&lt;% end-%&gt;
-				
-				&lt;span onmouseover=&quot;Element.show('permalink_handle_in&lt;%=track.id%&gt;');
-													 Element.hide('permalink_handle_out&lt;%=track.id%&gt;');&quot;
-							 onmouseout=&quot;Element.hide('permalink_handle_in&lt;%=track.id%&gt;');
-													 Element.show('permalink_handle_out&lt;%=track.id%&gt;');&quot;&gt;
-					&lt;a href=&quot;&lt;%=track.full_permalink()%&gt;&quot;&gt;
-						&lt;img src='/images/permalink_handle_grey.gif' class='edit_handle handle' id='permalink_handle_out&lt;%=track.id%&gt;' title='Go to song' alt='Go to song'&gt;
-						&lt;img src='/images/permalink_handle.gif' class='edit_handle handle' id='permalink_handle_in&lt;%=track.id%&gt;' style=&quot;display:none;&quot; title='Go to song' alt='Go to song'&gt;
-					&lt;/a&gt;
-				&lt;/span&gt;
-	&lt;/div&gt;
-&lt;% end-%&gt;
\ No newline at end of file
+	&lt;!-- link to audiography --&gt;
+	&lt;% if link_to_audiography %&gt;
+		&lt;div class=&quot;track_audiography_holder&quot;&gt;
+			&lt;a href='/&lt;%=track.audiography.url_title%&gt;'&gt;&lt;%=track.audiography.url_title%&gt;&lt;/a&gt;
+		&lt;/div&gt;
+	&lt;% end-%&gt;
+	
+	&lt;% if user_can_edit %&gt;
+	
+		&lt;!-- reorder --&gt;
+		&lt;span onmouseover=&quot;Element.show('drag_handle_in&lt;%=track.id%&gt;');
+											 Element.hide('drag_handle_out&lt;%=track.id%&gt;');&quot;
+					 onmouseout=&quot;Element.hide('drag_handle_in&lt;%=track.id%&gt;');
+											 Element.show('drag_handle_out&lt;%=track.id%&gt;');&quot;&gt;
+			&lt;img src=&quot;/images/drag_handle_grey.gif&quot; class=&quot;drag_handle handle&quot; id='drag_handle_out&lt;%=track.id%&gt;' title='Reorder song' alt='Reorder song'&gt;
+			&lt;img src=&quot;/images/drag_handle.gif&quot; class=&quot;drag_handle handle&quot; id='drag_handle_in&lt;%=track.id%&gt;' style=&quot;display:none;&quot; title='Reorder song' alt='Reorder song'&gt;
+		&lt;/span&gt;
+		
+		&lt;!-- edit --&gt;
+		&lt;span onmouseover=&quot;Element.show('edit_handle_in&lt;%=track.id%&gt;');
+											 Element.hide('edit_handle_out&lt;%=track.id%&gt;');&quot;
+					 onmouseout=&quot;Element.hide('edit_handle_in&lt;%=track.id%&gt;');
+											 Element.show('edit_handle_out&lt;%=track.id%&gt;');&quot;&gt;
+			&lt;a href='/track/edit/&lt;%=track.id%&gt;'&gt;
+				&lt;img src='/images/edit_handle_grey.gif' class='edit_handle handle' id='edit_handle_out&lt;%=track.id%&gt;' title='Edit song' alt='Edit song'&gt;
+				&lt;img src='/images/edit_handle.gif' class='edit_handle handle' id='edit_handle_in&lt;%=track.id%&gt;' style=&quot;display:none;&quot; title='Edit song' alt='Edit song'&gt;
+			&lt;/a&gt;
+		&lt;/span&gt;
+	&lt;% end-%&gt;
+	
+	&lt;!-- permalink --&gt;
+	&lt;span onmouseover=&quot;Element.show('permalink_handle_in&lt;%=track.id%&gt;');
+										 Element.hide('permalink_handle_out&lt;%=track.id%&gt;');&quot;
+				 onmouseout=&quot;Element.hide('permalink_handle_in&lt;%=track.id%&gt;');
+										 Element.show('permalink_handle_out&lt;%=track.id%&gt;');&quot;&gt;
+		&lt;a href=&quot;&lt;%=track.full_permalink()%&gt;&quot;&gt;
+			&lt;img src='/images/permalink_handle_grey.gif' class='edit_handle handle' id='permalink_handle_out&lt;%=track.id%&gt;' title='Go to song' alt='Go to song'&gt;
+			&lt;img src='/images/permalink_handle.gif' class='edit_handle handle' id='permalink_handle_in&lt;%=track.id%&gt;' style=&quot;display:none;&quot; title='Go to song' alt='Go to song'&gt;
+		&lt;/a&gt;
+	&lt;/span&gt;
+&lt;/div&gt;
\ No newline at end of file</diff>
      <filename>app/views/track/_controls_and_links.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,11 @@
 	&lt;div class=&quot;page_title&quot;&gt;
 		&lt;% if @show_rss %&gt;
 			&lt;div class=&quot;follow&quot;&gt;
+				&lt;a href=&quot;&lt;%=itunes_link%&gt;&quot; class=&quot;follow_link&quot;&gt;
+					&lt;img src=&quot;/images/itunes.gif&quot; title=&quot;Play all tracks in iTunes&quot; width=20 border=0&gt;
+				&lt;/a&gt; 
 				&lt;a href=&quot;&lt;%=follow_link%&gt;&quot; class=&quot;follow_link&quot;&gt;
-					&lt;img src=&quot;/images/rss.gif&quot; width=19 border=0&gt;
+					&lt;img src=&quot;/images/rss.gif&quot; title=&quot;Follow via RSS&quot; width=19 border=0&gt;
 				&lt;/a&gt;
 			&lt;/div&gt;
 		&lt;% end-%&gt;</diff>
      <filename>app/views/track/_list_title.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@
 		&lt;!-- clock --&gt;
 		&lt;div class=&quot;track_play_stop&quot; style=&quot;float:right;&quot;&gt;&lt;span id=&quot;track_clock&lt;%=@i%&gt;&quot; class=&quot;track_clock&quot;&gt;&lt;/span&gt;&lt;/div&gt;
 
-		&lt;!-- title, editing, comment --&gt;
+		&lt;!-- title, comment --&gt;
 		&lt;div class=&quot;main_track_content&quot; onclick=&quot;&lt;%=onclick_val%&gt;&quot;&gt;
 			&lt;span class=&quot;track_artist_and_title&quot;&gt;&lt;strong&gt;&lt;%= track.artist %&gt;&lt;/strong&gt; &lt;%= track.title %&gt;&lt;/span&gt;
 			&lt;% if track.comment &amp;&amp; track.comment != &quot;&quot; %&gt;</diff>
      <filename>app/views/track/_show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;div class=&quot;page_content_holder&quot;&gt;
 	&lt;%= render(:partial =&gt; 'track/playlist_setup', :locals =&gt; {:show =&gt; &quot;latest&quot;, :identifier =&gt; nil }) %&gt;
-	&lt;%= render(:partial =&gt; 'track/list_title', :locals =&gt; { :title =&gt; @title, :follow_link =&gt; @follow_link }) %&gt;
+	&lt;%= render(:partial =&gt; 'track/list_title', :locals =&gt; { :title =&gt; @title, :follow_link =&gt; @follow_link, :itunes_link =&gt; @itunes_link }) %&gt;
 
 	&lt;!-- show items --&gt;
 	&lt;% if @items.length &gt; 0 %&gt;</diff>
      <filename>app/views/track/latest.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ module Linking
     if production?
       return Util.ne(audiography.url_title) ? &quot;http://&quot; + audiography.url_title + &quot;.&quot; + self.site() : nil
     else
-      return Util.ne(audiography.url_title) ? &quot;/&quot; + audiography.url_title : nil
+      return Util.ne(audiography.url_title) ? &quot;http://&quot; + self.site + &quot;/&quot; + audiography.url_title : nil
     end
   end
   
@@ -12,10 +12,18 @@ module Linking
     self.audiography(in_audiography) + &quot;?format=xml&quot;
   end
   
+  def self.audiography_itunes(in_audiography)
+    (self.audiography(in_audiography) + &quot;?format=xml&quot;).gsub(/http/, &quot;itpc&quot;)
+  end
+  
   def self.latest_tracks_xml
     &quot;/track/latest?format=xml&quot;
   end
   
+  def self.latest_tracks_itunes
+    &quot;itpc://&quot; + self.site + &quot;/track/latest?format=xml&quot;
+  end
+  
   def self.cookie_domain
     if production?
       return &quot;.playmary.com&quot;
@@ -28,7 +36,7 @@ module Linking
     if production?
       return &quot;playmary.com&quot;
     else
-      return &quot;/&quot;
+      return &quot;localhost:3000&quot;
     end
   end
   </diff>
      <filename>lib/linking.rb</filename>
    </modified>
    <modified>
      <diff>@@ -87,13 +87,14 @@ textarea { border: 1px solid #224; width:296; font-size: 12px; font-family:'Luci
 .track_play_stop { vertical-align:text-top; text-align:right; width:42; }
 .track_edit { font-size:10px;  }
 .track_delete { font-size: 12px; }
-.track_audiography_holder { color:#aaa; margin:0 0 -18.1 -235; font-size:12; text-align:right; width:224;  }
+.track_audiography_holder { margin:0 0 -20 -235; font-size:13; padding:1 0 0 0; height:19px; text-align:right; width:280px; }
+.track_audiography_holder a { color:#777; }
+.track_audiography_holder a:hover { color:#000; }
 .track_controls { margin:0 0 -20 -77; padding:0 10 1 0; text-align:right; height:19px; width:70; }
 .handle { padding:2px; }
 .drag_handle { cursor:move; }
 .edit_handle { cursor:pointer; border:0px;}
 .permalink_handle { cursor:pointer; display:inline; }
-.track_audiography_link { color:#777; }
 .permalink { font-size:9.6; }
 
 LI.track_list_item { list-style:none; } </diff>
      <filename>public/stylesheets/main.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e4ee0b1878abf130ee87581c2a975ec5ca943943</id>
    </parent>
  </parents>
  <author>
    <name>Mary Cook</name>
    <email>maryrosecook@mary-cooks-macbook-pro.local</email>
  </author>
  <url>http://github.com/maryrosecook/playmary/commit/470d419c42b59145e130b56bf356d76bbaf55608</url>
  <id>470d419c42b59145e130b56bf356d76bbaf55608</id>
  <committed-date>2009-10-16T08:48:47-07:00</committed-date>
  <authored-date>2009-10-16T08:48:47-07:00</authored-date>
  <message>made audiography link invisible and added permalink on latest tracks page</message>
  <tree>6377e0343ad8edfe9dcdd49fb170f3db3749cecb</tree>
  <committer>
    <name>Mary Cook</name>
    <email>maryrosecook@mary-cooks-macbook-pro.local</email>
  </committer>
</commit>
