diaspora/app/views/albums/index.html.haml
2010-09-10 13:52:12 -07:00

36 lines
802 B
Text

- content_for :head do
:javascript
$(document).ready(function(){
$("#add_album_button").fancybox();
});
= content_for :page_title do
= link_to "Albums", albums_path
- content_for :left_pane do
= render "shared/group_friends"
%h1.big_text
Albums
.right
= link_to 'New Album', '#new_album_pane', {:class => "button", :id => "add_album_button"}
.yo{:style => "display:none;" }
#new_album_pane
= render "albums/new_album"
.sub_header
%ul.button_set
%li{:class => ("selected" if params[:friends])}= friends_albums_link
%li{:class => ("selected" if not params[:friends])}= your_albums_link
%div
- for album in @albums
= render "album", :post => album
#pagination
= will_paginate @albums
#content_bottom
.back
= link_to "⇧ home", root_path