publisher box back up top

This commit is contained in:
Daniel Grippi & Raphael Sofaer 2010-08-27 16:09:10 -07:00
parent 34cb15c423
commit cf161cb8cf
7 changed files with 48 additions and 35 deletions

View file

@ -1,9 +1,3 @@
%h1
Stream for
= link_to "all groups", root_path
= render "shared/publisher", :group_ids => :all
%ul#stream %ul#stream
- for post in @posts - for post in @posts
= render type_partial(post), :post => post unless post.class == Album = render type_partial(post), :post => post unless post.class == Album

View file

@ -1,8 +1,3 @@
%h1
Stream for
= link_to @group.name, @group
= render "shared/publisher", :group_id => @group.id
%ul#stream %ul#stream
- for post in @posts - for post in @posts
= render type_partial(post), :post => post = render type_partial(post), :post => post

View file

@ -51,17 +51,25 @@
%li.settings= link_to "settings", edit_user_path(current_user) %li.settings= link_to "settings", edit_user_path(current_user)
%li.logout= link_to "logout", destroy_user_session_path %li.logout= link_to "logout", destroy_user_session_path
#sub_header #sub_header
.container .container
.span-19.append-5.last
= render "shared/publisher", :group_ids => :all
= render "shared/group_nav" = render "shared/group_nav"
.container .container
.span-5.last
%h1 Friends
= render "shared/group_friends"
.span-19.last .span-19.last
= yield = yield
.span-4.prepend-1.last
%h1
- if @group == :all
= link_to "Everybody", root_path
- else
= link_to @group.name, @group
= render "shared/group_friends"
.span-24.last
= render "posts/debug" = render "posts/debug"

View file

@ -9,7 +9,7 @@
%span{:class => '⚙'} %span{:class => '⚙'}
= link_to "⚙", "#", :class => "edit_group_button" = link_to "⚙", "#", :class => "edit_group_button"
%li.new_group= link_to("new", "#add_group_pane", :id => "add_group_button") %li.new_group= link_to("+", "#add_group_pane", :id => "add_group_button")
.yo{ :style => "display:none;"} .yo{ :style => "display:none;"}
#add_group_pane #add_group_pane

View file

@ -36,11 +36,8 @@ $(document).ready(function(){
element.toggleClass("editing"); element.toggleClass("editing");
if( element.hasClass("editing") ) { if( element.hasClass("editing") ) {
element.attr("contentEditable", true); element.attr("contentEditable", true);
element.focus(); element.focus();
//remove newline action //remove newline action
$(element).keypress(function(e) { $(element).keypress(function(e) {

View file

@ -74,7 +74,7 @@ header {
margin-bottom: 0; margin-bottom: 0;
color: black; color: black;
background-color: #333333; background-color: #333333;
border-bottom: 2px solid #666666; border-bottom: 1px solid #666666;
padding: 0; } padding: 0; }
header #diaspora_text { header #diaspora_text {
position: absolute; position: absolute;
@ -101,9 +101,10 @@ header {
color: #df0101; } color: #df0101; }
#sub_header { #sub_header {
border-bottom: 1px solid #444444;
margin: 0 -2em; margin: 0 -2em;
padding: 0.5em 0; padding: 0.5em 0;
background-color: black; background-color: #111111;
margin-bottom: 2em; } margin-bottom: 2em; }
#show_filters { #show_filters {
@ -317,7 +318,8 @@ label {
font-weight: normal; } font-weight: normal; }
#publisher { #publisher {
border-bottom: 2px #999999 solid; padding-top: 20px;
padding-bottom: 20px;
color: #999999; color: #999999;
position: relative; position: relative;
height: 63px; height: 63px;
@ -459,15 +461,18 @@ h1.big_text {
margin: 0; margin: 0;
margin-bottom: -5px; margin-bottom: -5px;
padding: 0; padding: 0;
padding-left: 65px;
list-style: none; list-style: none;
font-size: 14px; } font-size: 14px; }
#group_nav ul > li { #group_nav ul > li {
border-radius: 3px 3px 0 0;
background-color: #333333;
display: inline; display: inline;
margin-right: 1.5em; margin-right: 0.5em;
padding: 0.3em 0.5em; padding: 0.3em 0.5em;
padding-right: 0.3em; } border: 1px solid #444444; }
#group_nav ul > li:hover { #group_nav ul > li:hover {
background-color: #333333; } background-color: #444444; }
#group_nav ul > li:hover a { #group_nav ul > li:hover a {
color: #999999; } color: #999999; }
#group_nav ul > li a { #group_nav ul > li a {
@ -477,11 +482,14 @@ h1.big_text {
#group_nav ul > li a.editable:hover { #group_nav ul > li a.editable:hover {
background: yellow; } background: yellow; }
#group_nav ul . { #group_nav ul . {
margin-left: 4px; } margin-left: 4px;
margin-right: -4px; }
#group_nav ul . a { #group_nav ul . a {
color: black; } color: black; }
#group_nav ul .selected { #group_nav ul .selected {
opacity: 1;
background-color: white; background-color: white;
border-bottom: 1px solid white;
color: black; } color: black; }
#group_nav ul .selected:hover { #group_nav ul .selected:hover {
background-color: #eeeeee; } background-color: #eeeeee; }

View file

@ -81,7 +81,7 @@ header
:background :background
:color #333 :color #333
:border :border
:bottom 2px solid #666 :bottom 1px solid #666
:padding 0 :padding 0
#diaspora_text #diaspora_text
@ -117,10 +117,12 @@ header
:padding-right 10px :padding-right 10px
#sub_header #sub_header
:border
:bottom 1px solid #444
:margin 0 -2em :margin 0 -2em
:padding 0.5em 0 :padding 0.5em 0
:background :background
:color black :color #111
:margin :margin
:bottom 2em :bottom 2em
@ -391,8 +393,9 @@ label
:weight normal :weight normal
#publisher #publisher
:border :padding
:bottom 2px #999 solid :top 20px
:bottom 20px
:color #999 :color #999
:position relative :position relative
:height 63px :height 63px
@ -581,24 +584,28 @@ h1.big_text
:margin 0 :margin 0
:bottom -5px :bottom -5px
:padding 0 :padding 0
:left 65px
:list :list
:style none :style none
:font :font
:size 14px :size 14px
> li > li
:border-radius 3px 3px 0 0
:background
:color #333
:display inline :display inline
:margin :margin
:right 1.5em :right 0.5em
:padding 0.3em 0.5em :padding 0.3em 0.5em
:right 0.3em
:border 1px solid #444
&:hover &:hover
:background :background
:color #333 :color #444
a a
:color #999 :color #999
a a
:color #999 :color #999
&:hover &:hover
@ -609,12 +616,16 @@ h1.big_text
. .
:margin :margin
:left 4px :left 4px
:right -4px
a a
:color #000 :color #000
.selected .selected
:opacity 1
:background :background
:color #fff :color #fff
:border
:bottom 1px solid #fff
:color #000 :color #000
&:hover &:hover
:background :background