owner picture selector in application helper
|
|
@ -37,4 +37,14 @@ module ApplicationHelper
|
||||||
link_to person.real_name, person_url(person)
|
link_to person.real_name, person_url(person)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def owner_picture
|
||||||
|
default = "#{root_url}images/user/default.jpg"
|
||||||
|
image = "#{root_url}images/user/#{User.first.profile.last_name.gsub(/ /,'').downcase}.jpg"
|
||||||
|
unless File.exist?(image)
|
||||||
|
image_tag image, :id => "user_picture"
|
||||||
|
else File.exist?(image)
|
||||||
|
image_tag default, :id => "user_picture"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,8 @@
|
||||||
= my_latest_message
|
= my_latest_message
|
||||||
#content.span-24.last
|
#content.span-24.last
|
||||||
.span-5.append-1.last
|
.span-5.append-1.last
|
||||||
= link_to (image_tag "/images/user_picture.jpg", :id => "user_picture"), root_path
|
|
||||||
|
= link_to owner_picture, root_path
|
||||||
|
|
||||||
%ul#stream_filters
|
%ul#stream_filters
|
||||||
%a{ :href => status_messages_path, :title => "Recent status messages."}
|
%a{ :href => status_messages_path, :title => "Recent status messages."}
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 304 KiB |
BIN
public/images/user/adams.jpeg
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
public/images/user/buchanan.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/user/buren.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/user/default.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
public/images/user/fillmore.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/images/user/harrison.jpg
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
public/images/user/jackson.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/user/jefferson.jpg
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images/user/lincoln.jpg
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
public/images/user/madison.jpeg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/images/user/monroe.jpg
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
public/images/user/pierce.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/user/polk.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/user/quincyadams.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/user/taylor.jpg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/images/user/tyler.jpeg
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
public/images/user/washington.jpeg
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 114 KiB |