diff --git a/app/views/comments/_comments.mobile.haml b/app/views/comments/_comments.mobile.haml deleted file mode 100644 index f1c261983..000000000 --- a/app/views/comments/_comments.mobile.haml +++ /dev/null @@ -1,18 +0,0 @@ --# Copyright (c) 2010-2011, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3 or later. See --# the COPYRIGHT file. -.comment_stream - - unless comments_expanded - %ul.show_comments{:class => ("hidden" if post.comments.size <= 3)} - %li - = comment_toggle( post) - - %ul.comments{:class => ('loaded' if post.comments.size <= 3)} - -if post.comments.size > 3 && !comments_expanded - = render :partial => 'comments/comment', :collection => post.last_three_comments, :locals => {:post => post} - -else - = render :partial => 'comments/comment', :collection => post.comments, :locals => {:post => post} - - - unless !user_signed_in? || @commenting_disabled - .new_comment_form_wrapper{:class => comment_form_wrapper_class(post)} - = new_comment_form(post.id, current_user) diff --git a/app/views/comments/_new_comment.mobile.haml b/app/views/comments/_new_comment.mobile.haml index 95cbfb4c2..599ba5944 100644 --- a/app/views/comments/_new_comment.mobile.haml +++ b/app/views/comments/_new_comment.mobile.haml @@ -6,7 +6,7 @@ = hidden_field_tag :post_id, post_id, :id => "post_id_on_#{post_id}" = text_area_tag :text, nil, :rows => 2, :class => "comment_box",:id => "comment_text_on_#{post_id}" - %div{:style => 'text-align:right;'} + .actions = link_to "Cancel", post_path(post_id), :class => "cancel_new_comment btn" = submit_tag t('.comment'), :id => "comment_submit_#{post_id}", :disable_with => t('.commenting'), :class => "action" diff --git a/app/views/comments/index.html.haml b/app/views/comments/index.html.haml index 839637079..8bd4a7d6f 100644 --- a/app/views/comments/index.html.haml +++ b/app/views/comments/index.html.haml @@ -1 +1 @@ -= render :partial => 'comments/comment', :collection => @comments, :locals => {:post => @post} += render :partial => 'comments/comment', :colleccion => @comments, :locals => {:post => @post} diff --git a/app/views/comments/index.mobile.haml b/app/views/comments/index.mobile.haml index 839637079..81f9761be 100644 --- a/app/views/comments/index.mobile.haml +++ b/app/views/comments/index.mobile.haml @@ -1 +1,5 @@ -= render :partial => 'comments/comment', :collection => @comments, :locals => {:post => @post} +%ul.comments + = render :partial => 'comments/comment', :collection => @comments, :locals => {:post => @post} + + %li.comment.add_comment_bottom_link_container + = link_to "Add a comment", new_post_comment_path(@post), :class => 'add_comment_bottom_link btn comment_action inactive' diff --git a/app/views/layouts/application.mobile.haml b/app/views/layouts/application.mobile.haml index 3b041fe53..3c1dc141b 100644 --- a/app/views/layouts/application.mobile.haml +++ b/app/views/layouts/application.mobile.haml @@ -62,7 +62,6 @@ / javascripts at the bottom = include_javascripts :mobile - = yield(:javascript) /-if current_user / :javascript diff --git a/app/views/shared/_publisher.mobile.haml b/app/views/shared/_publisher.mobile.haml index 747b4a92d..db4e9ed4c 100644 --- a/app/views/shared/_publisher.mobile.haml +++ b/app/views/shared/_publisher.mobile.haml @@ -3,7 +3,8 @@ -# the COPYRIGHT file. = form_for StatusMessage.new, {:data => {:ajax => false}} do |status| - = status.text_area :text, :placeholder => t('.whats_on_your_mind'), :style => "width:300px", :rows => 4, :autofocus => "autofocus" + #message_container + = status.text_area :text, :placeholder => t('.whats_on_your_mind'), :style => "width:300px", :rows => 4, :autofocus => "autofocus" - for aspect_id in aspect_ids = hidden_field_tag 'aspect_ids[]', aspect_id.to_s @@ -16,8 +17,6 @@ - unless current_user.services.empty? %div{:data => {:role => 'fieldcontain'}} %label{:for => 'services', :class => 'select'} - choose services - - current_user.services.each do |service| %input{:type => 'checkbox', :name => "services[]", :id => "#{service.provider}", :class => 'custom', :value => "#{service.provider}"} %label{:for => "#{service.provider}"} diff --git a/app/views/shared/_stream_element.mobile.haml b/app/views/shared/_stream_element.mobile.haml index 35ba85d7b..3d885452f 100644 --- a/app/views/shared/_stream_element.mobile.haml +++ b/app/views/shared/_stream_element.mobile.haml @@ -12,7 +12,6 @@ - elsif post.activity_streams? = image_tag post.image_url - .content .from = person_image_link(post.author, :size => :thumb_small) diff --git a/public/javascripts/mobile.js b/public/javascripts/mobile.js index a47bc8902..24f28681d 100644 --- a/public/javascripts/mobile.js +++ b/public/javascripts/mobile.js @@ -59,8 +59,7 @@ $(document).ready(function(){ $.ajax({ url: link.attr('href'), success: function(data){ - var comments = $("