Merge branch 'master' of github.com:diaspora/diaspora_rails

This commit is contained in:
maxwell 2010-06-29 12:32:07 -07:00
commit f9d4eff7b0
7 changed files with 92 additions and 6 deletions

View file

@ -1,7 +1,7 @@
= render "shared/publisher"
%h1 your network stream %h1 your network stream
= render "status_messages/new_status_message"
%ul#stream %ul#stream
- for post in @posts - for post in @posts
= render type_partial(post), :post => post = render type_partial(post), :post => post
#pagination #pagination
= will_paginate @posts = will_paginate @posts

View file

@ -1,5 +1,3 @@
.span-15 .span-15
.span-4.append-1.last .span-4.append-1.last
%img{:src => "/images/user_picture.jpg", :id => "profile_picture"} %img{:src => "/images/user_picture.jpg", :id => "profile_picture"}

View file

@ -68,7 +68,8 @@
.container .container
#content.span-24.last #content.span-24.last
.span-3.append-1.last .span-4.append-1.last
%img{:src => "/images/user_picture.jpg", :id => "user_picture"}
%ul#stream_filters %ul#stream_filters
%a{ :href => root_path, :title => "Your network stream."} %a{ :href => root_path, :title => "Your network stream."}
%li home %li home
@ -80,7 +81,7 @@
%li blogs %li blogs
%a{ :href => friends_path, :title => "Your list of connections with other seeds."} %a{ :href => friends_path, :title => "Your list of connections with other seeds."}
%li friends %li friends
.span-15.append-1.last .span-14.append-1.last
= yield = yield
= render "posts/debug" = render "posts/debug"
.span-3.last .span-3.last

View file

@ -0,0 +1,81 @@
:css
#publisher{
height: 300px;
background-color: #eaeaea;
border: 1px solid #666;
padding: 1em;
}
#new_bookmark {
display: none;
}
#new_blog {
display: none;
}
ul#publisher_content_pickers {
margin: 0;
padding: 0;
}
ul#publisher_content_pickers li {
display: inline;
margin-right: 2em;
}
:javascript
$(document).ready( function() {
$("#publisher_content_pickers li .status_message").click(function(){
if( $("#new_status_message").css("display") == "none" ) {
$("#publisher_form form").fadeOut(50);
$("#new_status_message").delay(50).fadeIn(200);
}
});
$("#publisher_content_pickers li .bookmark").click(function(){
if( $("#new_bookmark").css("display") == "none" ) {
$("#publisher_form form").fadeOut(50);
$("#new_bookmark").delay(50).fadeIn(200);
}
});
$("#publisher_content_pickers li .blog").click(function(){
if( $("#new_blog").css("display") == "none" ) {
$("#publisher_form form").fadeOut(50);
$("#new_blog").delay(50).fadeIn(200);
}
});
});
#publisher
%ul#publisher_content_pickers
%a{ :class => "status_message", :href => '#', :title => "new status message."}
%li status message
%a{ :class => "bookmark", :href => '#', :title => "new bookmark."}
%li bookmark
%a{ :class => "blog", :href => '#', :title => "new blog post."}
%li blog
#publisher_form
= form_for StatusMessage.new, :remote => true do |f|
= f.error_messages
%p
= f.text_field :message, :value => "Message"
= f.submit :class => 'button'
= form_for Bookmark.new, :remote => true do |f|
= f.error_messages
%p
= f.text_field :title, :value => "Title"
= f.text_field :link, :value => "URL"
= f.submit
= form_for Blog.new, :remote => true do |f|
= f.error_messages
%p
= f.text_field :title, :value => "Title"
= f.text_area :body
= f.submit

View file

@ -204,6 +204,9 @@ ul.comment_set {
img#profile_picture { img#profile_picture {
width: 100%; } width: 100%; }
img#user_picture {
width: 100%; }
.pagination a { .pagination a {
padding: 3px; } padding: 3px; }

View file

@ -239,6 +239,9 @@ ul.comment_set
img#profile_picture img#profile_picture
:width 100% :width 100%
img#user_picture
:width 100%
.pagination .pagination
a a