small changes to mobile

This commit is contained in:
maxwell 2010-11-22 01:19:11 -08:00
parent 9a18b7e6f3
commit 5c2d161146
19 changed files with 46 additions and 27 deletions

View file

@ -4,10 +4,10 @@
= render 'shared/stream', :posts => @posts
%div{:data => {:role => 'footer', :id => 'footer-toolbar', :position => 'fixed'}}
%div{:data => {:role => 'navbar'}}
%ul
%li{:class => 'ui-btn-active'}
= link_to 'posts', '#'
%li
=link_to 'contacts', '#'
/%div{:data => {:role => 'footer', :id => 'footer-toolbar', :position => 'fixed'}}
/ %div{:data => {:role => 'navbar'}}
/ %ul
/ %li{:class => 'ui-btn-active'}
/ = link_to 'posts', '#'
/ %li
/ =link_to 'contacts', '#'

View file

@ -26,11 +26,10 @@
%h1
= person_image_tag (current_user.person)
= current_user.real_name
%div{:data => {:role => 'fieldcontain'}}
= select_tag "aspect_picker", aspect_select_options(@aspects, @aspect)
= yield
%div{:data => {:role => 'fieldcontain'}}
= form_tag(people_path, :method => 'get') do
= text_field_tag 'q', nil, :placeholder => t('search'), :type => 'search'
/%div{:data => {:role => 'fieldcontain'}}
/ = form_tag(people_path, :method => 'get') do
/ = text_field_tag 'q', nil, :placeholder => t('search'), :type => 'search'

View file

@ -11,13 +11,17 @@
= status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id)
%fieldset{:class => 'ui-grid-a'}
.options_and_submit
%div{:class => 'ui-block-a'}
- if aspect == :all
= status.submit t('.share'), :title => t('.share_with_all')
- else
= status.submit t('.share'), :title => t('.share_with', :aspect => aspect)
- if aspect == :all
%div{:class => 'ui-block-a'}
.public_toggle
%p.checkbox_select
= status.check_box( :public, {}, true, false )

View file

@ -15,10 +15,6 @@
- else
= current_user.aspects_with_post( post.id ).join(', ')
- if current_user.owns?(post)
.right
= link_to t('delete'), object_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
= render type_partial(post), :post => post
.info

View file

@ -2,7 +2,7 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= markdownify(post.message)
%h3= markdownify(post.message)
%br
- for photo in post.photos
= link_to (image_tag photo.url(:thumb_medium)), object_path(photo)

View file

@ -16,6 +16,7 @@ javascripts:
- public/javascripts/stream.js
mobile:
- public/javascripts/vendor/jquery144.min.js
- public/javascripts/custom-mobile-scripting.js
- public/javascripts/rails.js
- public/javascripts/vendor/jquery-ui-1.8.6.custom.min.js
- public/javascripts/vendor/jquery_mobile_a2.min.js

View file

@ -0,0 +1,7 @@
$(document).bind("mobileinit", function(){
$.extend( $.mobile , {
ajaxLinksEnabled : false
ajaxFormsEnabled : false
});
});

View file

@ -1,3 +1,6 @@
img {
border-radius: 5px; }
ul {
list-style: none; }
@ -24,6 +27,8 @@ li.message {
color: #444444;
font-weight: normal;
font-size: 14px; }
li.message .content .aspect {
display: inline; }
li.message .content .stream_photo {
float: left;
margin-top: 6px; }

View file

@ -1,5 +1,9 @@
img
:border-radius 5px
ul
:list-style none
.avatar
:width 50px
:height 50px
@ -31,6 +35,9 @@ li.message
:padding
:left 65px
.aspect
:display inline
:color #444
:font

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB