albums don't show publisher, refactored css
This commit is contained in:
parent
b2b60af8aa
commit
c059069144
8 changed files with 27 additions and 28 deletions
|
|
@ -24,7 +24,7 @@ class AlbumsController < ApplicationController
|
||||||
respond_to :json, :only => [:index, :show]
|
respond_to :json, :only => [:index, :show]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@albums = current_user.albums_by_aspect(@aspect)
|
@albums = current_user.albums_by_aspect(@aspect).paginate
|
||||||
respond_with @albums
|
respond_with @albums
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,7 @@
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
= render "shared/aspect_friends"
|
= render "shared/aspect_friends"
|
||||||
|
|
||||||
%h1.big_text
|
- content_for :publish do
|
||||||
Albums
|
|
||||||
.right
|
|
||||||
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
|
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
|
||||||
|
|
||||||
.yo{:style => "display:none;" }
|
.yo{:style => "display:none;" }
|
||||||
|
|
|
||||||
|
|
@ -30,17 +30,12 @@
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
= render "shared/aspect_friends"
|
= render "shared/aspect_friends"
|
||||||
|
|
||||||
|
- content_for :publish do
|
||||||
.album_id{:id => @album.id, :style => "display:hidden;"}
|
|
||||||
|
|
||||||
%h1.big_text
|
|
||||||
= @album.name
|
|
||||||
|
|
||||||
-if current_user.owns? @album
|
-if current_user.owns? @album
|
||||||
=render 'photos/new_photo'
|
=render 'photos/new_photo'
|
||||||
|
|
||||||
.yo{:style => "display:none;"}
|
|
||||||
#new_photo_pane
|
.album_id{:id => @album.id, :style => "display:hidden;"}
|
||||||
|
|
||||||
.sub_header
|
.sub_header
|
||||||
="updated #{how_long_ago(@album)}"
|
="updated #{how_long_ago(@album)}"
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
= render "shared/aspect_friends"
|
= render "shared/aspect_friends"
|
||||||
|
|
||||||
|
- content_for :publish do
|
||||||
|
= render "shared/publisher", :aspect_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
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
= render "shared/aspect_friends"
|
= render "shared/aspect_friends"
|
||||||
|
|
||||||
|
- content_for :publish do
|
||||||
|
= render "shared/publisher", :aspect_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
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
= yield :page_title
|
= yield :page_title
|
||||||
|
|
||||||
.span-19.last
|
.span-19.last
|
||||||
= render "shared/publisher", :aspect_ids => :all
|
= yield :publish
|
||||||
|
|
||||||
.container
|
.container
|
||||||
.span-5.last
|
.span-5.last
|
||||||
|
|
|
||||||
|
|
@ -119,20 +119,21 @@ header {
|
||||||
margin-right: 0; }
|
margin-right: 0; }
|
||||||
header #aspect_header {
|
header #aspect_header {
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
text-shadow: 0 2px 0 white;
|
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
border-top: 1px solid #555555;
|
border-top: 1px solid #555555;
|
||||||
height: 85px; }
|
padding: 20px 0; }
|
||||||
header #aspect_header h1 {
|
header #aspect_header h1 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-top: 15px; }
|
text-shadow: 0 2px 0 white; }
|
||||||
header #aspect_header a {
|
header #aspect_header a {
|
||||||
color: #111111; }
|
color: #111111; }
|
||||||
header #aspect_header a:hover {
|
header #aspect_header a:hover {
|
||||||
background: none;
|
background: none;
|
||||||
color: #333333; }
|
color: #333333; }
|
||||||
header #aspect_header .page_title {
|
header #aspect_header .page_title {
|
||||||
text-transform: uppercase; }
|
text-transform: uppercase;
|
||||||
|
text-shadow: 0 2px 0 white;
|
||||||
|
margin-top: -5px; }
|
||||||
|
|
||||||
ul#stream {
|
ul#stream {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -327,9 +328,7 @@ label {
|
||||||
|
|
||||||
#publisher {
|
#publisher {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
position: relative;
|
position: relative; }
|
||||||
height: 63px;
|
|
||||||
margin-top: 20px; }
|
|
||||||
#publisher .avatar {
|
#publisher .avatar {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 15px; }
|
margin-right: 15px; }
|
||||||
|
|
@ -347,6 +346,7 @@ label {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
-webkit-box-shadow: 0 1px 0 white; }
|
-webkit-box-shadow: 0 1px 0 white; }
|
||||||
#publisher .button {
|
#publisher .button {
|
||||||
margin-left: 100px; }
|
margin-left: 100px; }
|
||||||
|
|
|
||||||
|
|
@ -161,17 +161,16 @@ header
|
||||||
|
|
||||||
#aspect_header
|
#aspect_header
|
||||||
:z-index 5
|
:z-index 5
|
||||||
:text-shadow 0 2px 0 #fff
|
|
||||||
:background
|
:background
|
||||||
:color #eee
|
:color #eee
|
||||||
:border
|
:border
|
||||||
:top 1px solid #555
|
:top 1px solid #555
|
||||||
:height 85px
|
:padding 20px 0
|
||||||
|
|
||||||
h1
|
h1
|
||||||
:margin
|
:margin
|
||||||
:bottom 0
|
:bottom 0
|
||||||
:top 15px
|
:text-shadow 0 2px 0 #fff
|
||||||
|
|
||||||
a
|
a
|
||||||
:color #111
|
:color #111
|
||||||
|
|
@ -182,6 +181,9 @@ header
|
||||||
.page_title
|
.page_title
|
||||||
:text
|
:text
|
||||||
:transform uppercase
|
:transform uppercase
|
||||||
|
:shadow 0 2px 0 #fff
|
||||||
|
:margin
|
||||||
|
:top -5px
|
||||||
|
|
||||||
|
|
||||||
ul#stream
|
ul#stream
|
||||||
|
|
@ -437,9 +439,6 @@ label
|
||||||
#publisher
|
#publisher
|
||||||
:color #999
|
:color #999
|
||||||
:position relative
|
:position relative
|
||||||
:height 63px
|
|
||||||
:margin
|
|
||||||
:top 20px
|
|
||||||
|
|
||||||
.avatar
|
.avatar
|
||||||
:float left
|
:float left
|
||||||
|
|
@ -465,6 +464,7 @@ label
|
||||||
:height 40px
|
:height 40px
|
||||||
:margin
|
:margin
|
||||||
:top 0
|
:top 0
|
||||||
|
:bottom 0
|
||||||
|
|
||||||
:-webkit-box-shadow 0 1px 0 #fff
|
:-webkit-box-shadow 0 1px 0 #fff
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue