Merge branch 'master' of github.com:diaspora/diaspora
|
|
@ -4,11 +4,11 @@ module PhotosHelper
|
|||
link_to (image_tag photo.url(:scaled_full)), photo_path(album.next_photo(photo)), :rel => "prefetch"
|
||||
end
|
||||
|
||||
def link_to_prev(photo, album)
|
||||
link_to "<< prev", photo_path(album.prev_photo(photo)), :rel => "prefetch"
|
||||
def url_to_prev(photo, album)
|
||||
photo_path(album.prev_photo(photo))
|
||||
end
|
||||
|
||||
def link_to_next(photo, album)
|
||||
link_to "next >>", photo_path(album.next_photo(photo)), :rel => "prefetch"
|
||||
def url_to_next(photo, album)
|
||||
photo_path(album.next_photo(photo))
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -34,10 +34,15 @@
|
|||
#session_action
|
||||
- if user_signed_in?
|
||||
%ul#user_menu
|
||||
%li#global_search
|
||||
= form_tag(users_path, :method => 'get') do
|
||||
%label{:for => 'q'} Search
|
||||
= text_field_tag 'q'
|
||||
%li.name= link_to current_user.real_name, current_user.person
|
||||
%li= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count)
|
||||
%li= link_to "settings", edit_user_path(current_user)
|
||||
%li= link_to "search", users_path
|
||||
|
||||
|
||||
%li= link_to "logout", destroy_user_session_path
|
||||
- else
|
||||
= link_to "login", new_user_session_path
|
||||
|
|
@ -46,12 +51,14 @@
|
|||
= link_to "DIASPORA*", root_path
|
||||
%span.sub_text
|
||||
PREVIEW
|
||||
= render "shared/group_nav"
|
||||
|
||||
= link_to "photos", albums_path
|
||||
|
||||
.container
|
||||
.span-24.last
|
||||
.span-4.append-1.last
|
||||
= render "shared/group_nav"
|
||||
|
||||
.span-19.last
|
||||
= yield
|
||||
.span-24.last
|
||||
|
||||
= render "posts/debug"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,16 @@
|
|||
:javascript
|
||||
$(document).keydown(function(e){
|
||||
switch(e.keyCode) {
|
||||
case 37:
|
||||
window.location.replace( "#{url_to_prev(@photo,@album)}" );
|
||||
break;
|
||||
case 39:
|
||||
window.location.replace( "#{url_to_next(@photo,@album)}" );
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
.back= link_to "⇧ #{@album.name}", album_path(@album)
|
||||
%h1.big_text
|
||||
= @photo.image
|
||||
|
|
@ -6,11 +19,11 @@
|
|||
= link_to 'Edit Photo', edit_photo_path(@photo), :class => "button"
|
||||
|
||||
.sub_header
|
||||
= link_to_prev @photo, @album
|
||||
= link_to "<< prev", url_to_prev(@photo, @album)
|
||||
|
|
||||
= link_to "full size", @photo.url
|
||||
|
|
||||
= link_to_next @photo, @album
|
||||
= link_to "next >>", url_to_next(@photo, @album)
|
||||
|
||||
%div{:id => @photo.id}
|
||||
#show_photo
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
#group
|
||||
%ul
|
||||
.selected
|
||||
= link_to @group.name, @group, :class => "selected"
|
||||
- for group in @groups
|
||||
%li{:class => ("selected" if group.id.to_s == params[:id])}
|
||||
= link_to group.name, group
|
||||
- unless (group.id.to_s == params[:id])
|
||||
%li
|
||||
= link_to group.name, group
|
||||
|
||||
%li.new_group= link_to("NEW GROUP", "#add_group_pane", :id => "add_group_button")
|
||||
|
||||
|
|
@ -11,15 +14,12 @@
|
|||
= render "groups/new_group"
|
||||
|
||||
- if @group
|
||||
#friend_pictures
|
||||
%ul#friend_pictures
|
||||
- for friend in @group.people
|
||||
= person_image_link(friend)
|
||||
= link_to (image_tag 'add_friend_button.png'), "#add_request_pane", :id => 'add_request_button'
|
||||
|
||||
- if @group.people.count == 0
|
||||
%span.add_new_description
|
||||
<< click the plus to add friends to this group
|
||||
|
||||
%li
|
||||
= person_image_link(friend)
|
||||
= friend.real_name
|
||||
%li= link_to (image_tag 'add_friend_button.png'), "#add_request_pane", :id => 'add_request_button'
|
||||
|
||||
.yo{:style => 'display:none'}
|
||||
#add_request_pane
|
||||
|
|
|
|||
|
|
@ -1,18 +1,27 @@
|
|||
#publisher
|
||||
#publisher_form
|
||||
.span-19.last
|
||||
= form_for StatusMessage.new, :remote => true do |f|
|
||||
= f.error_messages
|
||||
|
||||
-if group_id
|
||||
= f.hidden_field :group_id, :value => group_id
|
||||
|
||||
|
||||
%label{:for => "status_message_message"} Message
|
||||
= f.text_area :message, :rows => 2
|
||||
%ul
|
||||
- for group in current_user.groups
|
||||
%li
|
||||
= group.name
|
||||
= check_box_tag("groups_id[]", group.id, current_group?(group))
|
||||
.right
|
||||
.span-15.last
|
||||
.span-2.last
|
||||
.user_image
|
||||
= owner_image_tag
|
||||
.span-13.last
|
||||
%p
|
||||
%label{:for => "status_message_message"} Message
|
||||
= f.text_area :message, :rows => 2
|
||||
|
||||
.span-3.last
|
||||
|
||||
%ul.group_selector
|
||||
going to...
|
||||
- for group in current_user.groups
|
||||
%li
|
||||
= check_box_tag("groups_id[]", group.id, current_group?(group))
|
||||
= group.name
|
||||
.span-1.last
|
||||
= f.submit "Post"
|
||||
|
|
|
|||
13
public/images/glyphish-icons/Read me first - license.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Created by Joseph Wain (see http://penandthink.com) at and probably downloaded from http://glyphish.com
|
||||
|
||||
This work is licensed under the Creative Commons Attribution 3.0 United States License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
|
||||
|
||||
You are free to share it and to remix it remix under the following conditions:
|
||||
|
||||
* You must attribute the work in the manner specified by the author (SEE BELOW).
|
||||
* For any reuse or distribution, you must make clear to others the license terms of this work.
|
||||
* The above conditions can be waived if you get permission from the copyright holder (send me an email!).
|
||||
|
||||
ATTRIBUTION -- a note reading "icons by Joseph Wain / glyphish.com" or similar, plus a link back to glyphish.com from your app's website, is the preferred form of attribution. Also acceptable would be, like, a link from within your iPhone application, or from the iTunes store page, but those aren't as useful to other people. If none of these work for you, please contact hello@glyphish.com and we can work something out.
|
||||
|
||||
USE WITHOUT ATTRIBUTION -- If attribution is not possible, workable or desirable for your application, contact hello@glyphish.com for commercial non-attributed licensing terms.
|
||||
1637
public/images/glyphish-icons/glyphish-icons.pdf
Normal file
BIN
public/images/glyphish-icons/icons/01-refresh.png
Normal file
|
After Width: | Height: | Size: 459 B |
BIN
public/images/glyphish-icons/icons/02-redo.png
Normal file
|
After Width: | Height: | Size: 490 B |
BIN
public/images/glyphish-icons/icons/03-loopback.png
Normal file
|
After Width: | Height: | Size: 473 B |
BIN
public/images/glyphish-icons/icons/04-squiggle.png
Normal file
|
After Width: | Height: | Size: 411 B |
BIN
public/images/glyphish-icons/icons/05-shuffle.png
Normal file
|
After Width: | Height: | Size: 356 B |
BIN
public/images/glyphish-icons/icons/06-magnifying-glass.png
Normal file
|
After Width: | Height: | Size: 388 B |
BIN
public/images/glyphish-icons/icons/07-map-marker.png
Normal file
|
After Width: | Height: | Size: 353 B |
BIN
public/images/glyphish-icons/icons/08-chat.png
Normal file
|
After Width: | Height: | Size: 281 B |
BIN
public/images/glyphish-icons/icons/09-chat2.png
Normal file
|
After Width: | Height: | Size: 311 B |
BIN
public/images/glyphish-icons/icons/10-medical.png
Normal file
|
After Width: | Height: | Size: 210 B |
BIN
public/images/glyphish-icons/icons/100-coffee.png
Normal file
|
After Width: | Height: | Size: 267 B |
BIN
public/images/glyphish-icons/icons/101-gameplan.png
Normal file
|
After Width: | Height: | Size: 447 B |
BIN
public/images/glyphish-icons/icons/102-walk.png
Normal file
|
After Width: | Height: | Size: 445 B |
BIN
public/images/glyphish-icons/icons/103-map.png
Normal file
|
After Width: | Height: | Size: 507 B |
BIN
public/images/glyphish-icons/icons/104-index-cards.png
Normal file
|
After Width: | Height: | Size: 263 B |
BIN
public/images/glyphish-icons/icons/105-piano.png
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
public/images/glyphish-icons/icons/106-sliders.png
Normal file
|
After Width: | Height: | Size: 235 B |
BIN
public/images/glyphish-icons/icons/107-widescreen.png
Normal file
|
After Width: | Height: | Size: 309 B |
BIN
public/images/glyphish-icons/icons/108-badge.png
Normal file
|
After Width: | Height: | Size: 371 B |
BIN
public/images/glyphish-icons/icons/109-chicken.png
Normal file
|
After Width: | Height: | Size: 276 B |
BIN
public/images/glyphish-icons/icons/11-clock.png
Normal file
|
After Width: | Height: | Size: 508 B |
BIN
public/images/glyphish-icons/icons/110-bug.png
Normal file
|
After Width: | Height: | Size: 546 B |
BIN
public/images/glyphish-icons/icons/111-user.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
public/images/glyphish-icons/icons/112-group.png
Normal file
|
After Width: | Height: | Size: 467 B |
BIN
public/images/glyphish-icons/icons/113-navigation.png
Normal file
|
After Width: | Height: | Size: 418 B |
BIN
public/images/glyphish-icons/icons/114-balloon.png
Normal file
|
After Width: | Height: | Size: 416 B |
BIN
public/images/glyphish-icons/icons/115-bow-and-arrow.png
Normal file
|
After Width: | Height: | Size: 567 B |
BIN
public/images/glyphish-icons/icons/116-controller.png
Normal file
|
After Width: | Height: | Size: 523 B |
BIN
public/images/glyphish-icons/icons/117-todo.png
Normal file
|
After Width: | Height: | Size: 324 B |
BIN
public/images/glyphish-icons/icons/118-coathanger.png
Normal file
|
After Width: | Height: | Size: 435 B |
BIN
public/images/glyphish-icons/icons/119-piggybank.png
Normal file
|
After Width: | Height: | Size: 395 B |
BIN
public/images/glyphish-icons/icons/12-eye.png
Normal file
|
After Width: | Height: | Size: 322 B |
BIN
public/images/glyphish-icons/icons/120-headphones.png
Normal file
|
After Width: | Height: | Size: 351 B |
BIN
public/images/glyphish-icons/icons/121-lanscape.png
Normal file
|
After Width: | Height: | Size: 292 B |
BIN
public/images/glyphish-icons/icons/122-stats.png
Normal file
|
After Width: | Height: | Size: 358 B |
BIN
public/images/glyphish-icons/icons/123-id-card.png
Normal file
|
After Width: | Height: | Size: 270 B |
BIN
public/images/glyphish-icons/icons/124-bullhorn.png
Normal file
|
After Width: | Height: | Size: 254 B |
BIN
public/images/glyphish-icons/icons/125-food.png
Normal file
|
After Width: | Height: | Size: 356 B |
BIN
public/images/glyphish-icons/icons/126-moon.png
Normal file
|
After Width: | Height: | Size: 336 B |
BIN
public/images/glyphish-icons/icons/127-sock.png
Normal file
|
After Width: | Height: | Size: 308 B |
BIN
public/images/glyphish-icons/icons/128-bone.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
public/images/glyphish-icons/icons/129-golf.png
Normal file
|
After Width: | Height: | Size: 418 B |
BIN
public/images/glyphish-icons/icons/13-target.png
Normal file
|
After Width: | Height: | Size: 601 B |
BIN
public/images/glyphish-icons/icons/130-dice.png
Normal file
|
After Width: | Height: | Size: 445 B |
BIN
public/images/glyphish-icons/icons/14-tag.png
Normal file
|
After Width: | Height: | Size: 350 B |
BIN
public/images/glyphish-icons/icons/15-tags.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
public/images/glyphish-icons/icons/16-line-chart.png
Normal file
|
After Width: | Height: | Size: 550 B |
BIN
public/images/glyphish-icons/icons/17-bar-chart.png
Normal file
|
After Width: | Height: | Size: 181 B |
BIN
public/images/glyphish-icons/icons/18-envelope.png
Normal file
|
After Width: | Height: | Size: 248 B |
BIN
public/images/glyphish-icons/icons/19-gear.png
Normal file
|
After Width: | Height: | Size: 413 B |
BIN
public/images/glyphish-icons/icons/20-gear2.png
Normal file
|
After Width: | Height: | Size: 375 B |
BIN
public/images/glyphish-icons/icons/21-skull.png
Normal file
|
After Width: | Height: | Size: 397 B |
BIN
public/images/glyphish-icons/icons/22-skull-n-crossbones.png
Normal file
|
After Width: | Height: | Size: 743 B |
BIN
public/images/glyphish-icons/icons/23-bird.png
Normal file
|
After Width: | Height: | Size: 356 B |
BIN
public/images/glyphish-icons/icons/24-gift.png
Normal file
|
After Width: | Height: | Size: 359 B |
BIN
public/images/glyphish-icons/icons/25-weather.png
Normal file
|
After Width: | Height: | Size: 363 B |
BIN
public/images/glyphish-icons/icons/26-bandaid.png
Normal file
|
After Width: | Height: | Size: 302 B |
BIN
public/images/glyphish-icons/icons/27-planet.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
public/images/glyphish-icons/icons/28-star.png
Normal file
|
After Width: | Height: | Size: 375 B |
BIN
public/images/glyphish-icons/icons/29-heart.png
Normal file
|
After Width: | Height: | Size: 280 B |
BIN
public/images/glyphish-icons/icons/30-key.png
Normal file
|
After Width: | Height: | Size: 266 B |
BIN
public/images/glyphish-icons/icons/31-ipod.png
Normal file
|
After Width: | Height: | Size: 323 B |
BIN
public/images/glyphish-icons/icons/32-iphone.png
Normal file
|
After Width: | Height: | Size: 183 B |
BIN
public/images/glyphish-icons/icons/33-cabinet.png
Normal file
|
After Width: | Height: | Size: 167 B |
BIN
public/images/glyphish-icons/icons/34-coffee.png
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
public/images/glyphish-icons/icons/35-shopping-bag.png
Normal file
|
After Width: | Height: | Size: 243 B |
BIN
public/images/glyphish-icons/icons/36-toolbox.png
Normal file
|
After Width: | Height: | Size: 257 B |
BIN
public/images/glyphish-icons/icons/37-suitcase.png
Normal file
|
After Width: | Height: | Size: 227 B |
BIN
public/images/glyphish-icons/icons/38-airplane.png
Normal file
|
After Width: | Height: | Size: 264 B |
BIN
public/images/glyphish-icons/icons/39-spraycan.png
Normal file
|
After Width: | Height: | Size: 251 B |
BIN
public/images/glyphish-icons/icons/40-inbox.png
Normal file
|
After Width: | Height: | Size: 347 B |
BIN
public/images/glyphish-icons/icons/41-picture-frame.png
Normal file
|
After Width: | Height: | Size: 232 B |
BIN
public/images/glyphish-icons/icons/42-photos.png
Normal file
|
After Width: | Height: | Size: 177 B |
BIN
public/images/glyphish-icons/icons/43-film-roll.png
Normal file
|
After Width: | Height: | Size: 311 B |
BIN
public/images/glyphish-icons/icons/44-shoebox.png
Normal file
|
After Width: | Height: | Size: 342 B |
BIN
public/images/glyphish-icons/icons/45-movie1.png
Normal file
|
After Width: | Height: | Size: 213 B |
BIN
public/images/glyphish-icons/icons/46-movie2.png
Normal file
|
After Width: | Height: | Size: 320 B |
BIN
public/images/glyphish-icons/icons/47-fuel.png
Normal file
|
After Width: | Height: | Size: 403 B |
BIN
public/images/glyphish-icons/icons/48-fork-and-knife.png
Normal file
|
After Width: | Height: | Size: 209 B |
BIN
public/images/glyphish-icons/icons/49-battery.png
Normal file
|
After Width: | Height: | Size: 188 B |
BIN
public/images/glyphish-icons/icons/50-beaker.png
Normal file
|
After Width: | Height: | Size: 183 B |
BIN
public/images/glyphish-icons/icons/51-outlet.png
Normal file
|
After Width: | Height: | Size: 265 B |
BIN
public/images/glyphish-icons/icons/52-pinetree.png
Normal file
|
After Width: | Height: | Size: 264 B |
BIN
public/images/glyphish-icons/icons/53-house.png
Normal file
|
After Width: | Height: | Size: 207 B |
BIN
public/images/glyphish-icons/icons/54-lock.png
Normal file
|
After Width: | Height: | Size: 258 B |
BIN
public/images/glyphish-icons/icons/55-network.png
Normal file
|
After Width: | Height: | Size: 281 B |
BIN
public/images/glyphish-icons/icons/56-cloud.png
Normal file
|
After Width: | Height: | Size: 256 B |
BIN
public/images/glyphish-icons/icons/57-download.png
Normal file
|
After Width: | Height: | Size: 226 B |
BIN
public/images/glyphish-icons/icons/58-bookmark.png
Normal file
|
After Width: | Height: | Size: 157 B |
BIN
public/images/glyphish-icons/icons/59-flag.png
Normal file
|
After Width: | Height: | Size: 249 B |
BIN
public/images/glyphish-icons/icons/60-signpost.png
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
public/images/glyphish-icons/icons/61-brightness.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
public/images/glyphish-icons/icons/62-contrast.png
Normal file
|
After Width: | Height: | Size: 424 B |