Merge branch 'master' of github.com:diaspora/diaspora_rails
This commit is contained in:
commit
f9d4eff7b0
7 changed files with 92 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
= render "shared/publisher"
|
||||
%h1 your network stream
|
||||
= render "status_messages/new_status_message"
|
||||
%ul#stream
|
||||
- for post in @posts
|
||||
= render type_partial(post), :post => post
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
.span-15
|
||||
.span-4.append-1.last
|
||||
%img{:src => "/images/user_picture.jpg", :id => "profile_picture"}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,8 @@
|
|||
|
||||
.container
|
||||
#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
|
||||
%a{ :href => root_path, :title => "Your network stream."}
|
||||
%li home
|
||||
|
|
@ -80,7 +81,7 @@
|
|||
%li blogs
|
||||
%a{ :href => friends_path, :title => "Your list of connections with other seeds."}
|
||||
%li friends
|
||||
.span-15.append-1.last
|
||||
.span-14.append-1.last
|
||||
= yield
|
||||
= render "posts/debug"
|
||||
.span-3.last
|
||||
|
|
|
|||
81
app/views/shared/_publisher.haml
Normal file
81
app/views/shared/_publisher.haml
Normal 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
|
||||
|
|
@ -204,6 +204,9 @@ ul.comment_set {
|
|||
img#profile_picture {
|
||||
width: 100%; }
|
||||
|
||||
img#user_picture {
|
||||
width: 100%; }
|
||||
|
||||
.pagination a {
|
||||
padding: 3px; }
|
||||
|
||||
|
|
|
|||
|
|
@ -240,6 +240,9 @@ ul.comment_set
|
|||
img#profile_picture
|
||||
:width 100%
|
||||
|
||||
img#user_picture
|
||||
:width 100%
|
||||
|
||||
.pagination
|
||||
a
|
||||
:padding 3px
|
||||
|
|
|
|||
Loading…
Reference in a new issue