<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -108,7 +108,24 @@ panel(&amp;block)
 
 dialog(&amp;block)
   Wrapper for an iUI div class dialog
-  
+
+servicelink_tel(telno)
+  Creates a service link when a correctly formatted telephone number string is given (telno).
+  Triggres the iPhone Phone App so that a call is initiated.
+
+servicelink_email(email)
+  Creates a service link when to the mail application. A mailto type link is created
+  Triggres the iPhone Email App.
+
+servicebutton_map(gadr,caption)
+  Creates a service button to the maps application. The gadr parameter is a correctly 
+  formatted google adress string. 
+  A good place to implement the gadr method is in your people/adress model. Like so:
+	def gadr
+		 &quot;#{street},#{zip} #{city},#{country}&quot;
+	end
+  caption is the text that goes into the button 
+
 observe_orientation_change(url_options = {})
   Place in the layout header file, the url_options is any Rails URL format.
   The URL gets a callback when the iPhone's orientation changes. The </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ module IuiHelper
   def viewport_tag(options = {})
     content = &quot;&quot;
     content += &quot;width = device-width, user-scalable=no&quot; if options[:device_width]
-    content_tag(:meta, :name =&gt; &quot;viewport&quot;, :content =&gt; content)
+    tag(:meta, :name =&gt; &quot;viewport&quot;, :content =&gt; content)
   end
   
   def include_iui_files
@@ -114,6 +114,16 @@ module IuiHelper
     concat(div, block.binding)
   end
   
+  def servicelink_tel(telno)
+      content_tag(&quot;a&quot;,telno,:class=&gt;&quot;ciuServiceLink&quot;,:target =&gt; &quot;_self&quot;,:href =&gt; &quot;tel:#{telno}&quot; ,:onclick =&gt; &quot;return(navigator.userAgent.indexOf('iPhone') != -1)&quot;)
+  end
+  def servicelink_email(email)
+      content_tag(&quot;a&quot;,email,:class=&gt;&quot;ciuServiceLink&quot;,:target =&gt; &quot;_self&quot;,:href =&gt; &quot;mailto:#{email}&quot; ,:onclick =&gt; &quot;return(navigator.userAgent.indexOf('iPhone') != -1)&quot;)
+  end
+  def servicebutton_map(gadr,caption)
+        content_tag(&quot;a&quot;,caption,:class=&gt;&quot;ciuServiceButton&quot;,:target =&gt; &quot;_self&quot;,:href =&gt; &quot;http://maps.google.com/maps?q=#{gadr}&quot; ,:onclick =&gt; &quot;return(navigator.userAgent.indexOf('iPhone') != -1)&quot;)
+  end
+  
   def observe_orientation_change(url_options = {})
     remote = remote_function :url =&gt; url_options, 	
   						:with =&gt; &quot;'position=' + String(window.orientation)&quot;
@@ -127,4 +137,4 @@ module IuiHelper
   
 end
 
-ActionView::Base.send(:include, IuiHelper)
\ No newline at end of file
+ActionView::Base.send(:include, IuiHelper)</diff>
      <filename>lib/iui_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c8929083925e13b5d32aff65876d377e9ed0560b</id>
    </parent>
  </parents>
  <author>
    <name>rolando</name>
    <email>roland.oth@gmail.com</email>
  </author>
  <url>http://github.com/noelrappin/rails-iui/commit/5a160a8761a2338b79c4dd6590c9e121c6a14ff6</url>
  <id>5a160a8761a2338b79c4dd6590c9e121c6a14ff6</id>
  <committed-date>2008-07-31T23:18:21-07:00</committed-date>
  <authored-date>2008-07-31T23:18:21-07:00</authored-date>
  <message>added wrappers for iPhone service links (email, tel, google maps) as  helper methods</message>
  <tree>fab6fe01c9ea5f6d58b2acc7b6cea56bbbf75598</tree>
  <committer>
    <name>rolando</name>
    <email>roland.oth@gmail.com</email>
  </committer>
</commit>
