<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/views/contexts/show.iphone.erb</filename>
    </added>
    <added>
      <filename>app/views/projects/_sidebox.iphone.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -18,11 +18,13 @@ class ApplicationController &lt; ActionController::Base
 
 protected
   def iphone_user_agent?
-    @iphone_user_agent ||= (request.env[&quot;HTTP_USER_AGENT&quot;] &amp;&amp; request.env[&quot;HTTP_USER_AGENT&quot;][/(Mobile\/.+Safari)/]) || :false
+    session[:iphone] = true if params[:iphone]
+    @iphone_user_agent ||= session[:iphone] || (request.env[&quot;HTTP_USER_AGENT&quot;] &amp;&amp; request.env[&quot;HTTP_USER_AGENT&quot;][/(Mobile\/.+Safari)/]) || :false
+    @iphone_user_agent = false if session[:no_iphone] = params[:no_iphone]
     @iphone_user_agent  != :false
   end
 
-  # Set iPhone format if request to iphone.trawlr.com
+  # Set iPhone format
   def adjust_format_for_iphone    
     request.format = :iphone if iphone_user_agent?
   end</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,7 @@
       &lt;%= yield %&gt;
     &lt;/div&gt;
     &lt;div id=&quot;footer&quot;&gt;
-      Copyright &amp;copy; 2008 ENTP.com.
+      View &lt;a href=&quot;/?no_iphone=1&quot;&gt;Full Site&lt;/a&gt; | Copyright &amp;copy; 2008 ENTP.com.
     &lt;/div&gt;
   &lt;/div&gt;
   </diff>
      <filename>app/views/layouts/application.iphone.erb</filename>
    </modified>
    <modified>
      <diff>@@ -3,20 +3,13 @@
   	&lt;%= f.text_field :code_and_message, :style =&gt; 'width:190px', :class =&gt; 'status-entry' %&gt;
     &lt;p class=&quot;btns&quot;&gt;
       &lt;%= img_button 'out' %&gt;
-      &lt;%= hidden_field_tag :destination, project_path(@project) %&gt;
+      &lt;%= hidden_field_tag :destination, project_path(@project) if @project %&gt;
       &lt;%= update_button %&gt;
     &lt;/p&gt;
   &lt;% end %&gt;
 &lt;% end #status %&gt;
 
-&lt;div id=&quot;projectlist&quot;&gt;
-  &lt;h2&gt;Your Projects&lt;/h2&gt;
-  &lt;ul class=&quot;text-list&quot; id=&quot;project-lists&quot;&gt;
-    &lt;% current_user.memberships.each do |membership| %&gt;
-    &lt;li&gt;@&lt;%= membership.code %&gt; &lt;%= link_to h(membership.project.name), membership.project %&gt;&lt;/li&gt;
-    &lt;% end %&gt;
-  &lt;/ul&gt;
-&lt;/div&gt;
+&lt;%= render :partial =&gt; &quot;projects/sidebox&quot;, :locals =&gt; { :contexts =&gt; current_user.memberships.contexts } %&gt;
 
 &lt;% content_for :dom_loaded do %&gt;
   $$(&quot;#project-lists li&quot;).each(function(i){
@@ -24,4 +17,5 @@
       window.location.href = this.down(&quot;a&quot;).href; 
     });
   })
-&lt;% end %&gt;
\ No newline at end of file
+&lt;% end %&gt;
+</diff>
      <filename>app/views/users/index.iphone.erb</filename>
    </modified>
    <modified>
      <diff>@@ -160,6 +160,44 @@ h4.status a:hover {
   float: right;
 }
 
+#project-lists li.context {
+  background-color: #e2e2e2;
+  padding: 8px 8px;
+}
+
+.meta {
+  color: #999;
+  font-size: 80%;
+  text-align: center;
+}
+#projects-for-context .ttl {
+  float: left;
+}
+#projects-for-context .num {
+  text-align: right;
+}
+.you {
+  position: absolute;
+  right: 50px;
+  top: 0;
+  width: 50px;
+  display: block;
+  text-align: center;
+  border-right: 1px solid #ddd;
+  border-left: 1px solid #ddd;
+}
+
+.others {
+  position: absolute;
+  top: 0;
+  right: 0;
+  width: 50px;
+  display: block;
+  text-align: center;
+}
+
+
+
 /* @group forms */
 .form label {
   font-weight: bold;
@@ -181,7 +219,4 @@ h4.status a:hover {
   border-right-color: #bbb;
 }
 
-
-
-
 /* @end */
\ No newline at end of file</diff>
      <filename>public/stylesheets/iphone.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>438832dcd868a5f96b9fdcbd50f2305ea8e80bf5</id>
    </parent>
  </parents>
  <author>
    <name>c3</name>
    <email>courtenay@entp.com</email>
  </author>
  <url>http://github.com/entp/xtt/commit/2593ab2c1559cd8413220507aa511679d317a464</url>
  <id>2593ab2c1559cd8413220507aa511679d317a464</id>
  <committed-date>2009-05-15T13:37:04-07:00</committed-date>
  <authored-date>2009-05-15T13:37:04-07:00</authored-date>
  <message>Add project counts and context view for iphone</message>
  <tree>969d89215344daa241d79e3fc92b5c3fa0e13f48</tree>
  <committer>
    <name>c3</name>
    <email>courtenay@entp.com</email>
  </committer>
</commit>
