albums don't show publisher, refactored css

This commit is contained in:
Daniel Vincent Grippi 2010-09-13 17:57:30 -07:00
parent b2b60af8aa
commit c059069144
8 changed files with 27 additions and 28 deletions

View file

@ -24,7 +24,7 @@ class AlbumsController < ApplicationController
respond_to :json, :only => [:index, :show]
def index
@albums = current_user.albums_by_aspect(@aspect)
@albums = current_user.albums_by_aspect(@aspect).paginate
respond_with @albums
end

View file

@ -29,10 +29,8 @@
- content_for :left_pane do
= render "shared/aspect_friends"
%h1.big_text
Albums
.right
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
- content_for :publish do
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
.yo{:style => "display:none;" }
#new_album_pane

View file

@ -30,18 +30,13 @@
- content_for :left_pane do
= render "shared/aspect_friends"
- content_for :publish do
-if current_user.owns? @album
=render 'photos/new_photo'
.album_id{:id => @album.id, :style => "display:hidden;"}
%h1.big_text
= @album.name
-if current_user.owns? @album
=render 'photos/new_photo'
.yo{:style => "display:none;"}
#new_photo_pane
.sub_header
="updated #{how_long_ago(@album)}"

View file

@ -24,6 +24,9 @@
- content_for :left_pane do
= render "shared/aspect_friends"
- content_for :publish do
= render "shared/publisher", :aspect_ids => :all
%ul#stream
- for post in @posts
= render type_partial(post), :post => post unless post.class == Album

View file

@ -23,6 +23,9 @@
- content_for :left_pane do
= render "shared/aspect_friends"
- content_for :publish do
= render "shared/publisher", :aspect_ids => :all
%ul#stream
- for post in @posts
= render type_partial(post), :post => post unless post.class == Album

View file

@ -91,7 +91,7 @@
= yield :page_title
.span-19.last
= render "shared/publisher", :aspect_ids => :all
= yield :publish
.container
.span-5.last

View file

@ -119,20 +119,21 @@ header {
margin-right: 0; }
header #aspect_header {
z-index: 5;
text-shadow: 0 2px 0 white;
background-color: #eeeeee;
border-top: 1px solid #555555;
height: 85px; }
padding: 20px 0; }
header #aspect_header h1 {
margin-bottom: 0;
margin-top: 15px; }
text-shadow: 0 2px 0 white; }
header #aspect_header a {
color: #111111; }
header #aspect_header a:hover {
background: none;
color: #333333; }
header #aspect_header .page_title {
text-transform: uppercase; }
text-transform: uppercase;
text-shadow: 0 2px 0 white;
margin-top: -5px; }
ul#stream {
margin: 0;
@ -327,9 +328,7 @@ label {
#publisher {
color: #999999;
position: relative;
height: 63px;
margin-top: 20px; }
position: relative; }
#publisher .avatar {
float: left;
margin-right: 15px; }
@ -347,6 +346,7 @@ label {
width: 600px;
height: 40px;
margin-top: 0;
margin-bottom: 0;
-webkit-box-shadow: 0 1px 0 white; }
#publisher .button {
margin-left: 100px; }

View file

@ -161,17 +161,16 @@ header
#aspect_header
:z-index 5
:text-shadow 0 2px 0 #fff
:background
:color #eee
:border
:top 1px solid #555
:height 85px
:padding 20px 0
h1
:margin
:bottom 0
:top 15px
:text-shadow 0 2px 0 #fff
a
:color #111
@ -182,6 +181,9 @@ header
.page_title
:text
:transform uppercase
:shadow 0 2px 0 #fff
:margin
:top -5px
ul#stream
@ -437,9 +439,6 @@ label
#publisher
:color #999
:position relative
:height 63px
:margin
:top 20px
.avatar
:float left
@ -465,6 +464,7 @@ label
:height 40px
:margin
:top 0
:bottom 0
:-webkit-box-shadow 0 1px 0 #fff