added featured users, left nav, and search boxes into getting started
This commit is contained in:
parent
d51e495925
commit
303b23883d
6 changed files with 138 additions and 42 deletions
|
|
@ -111,7 +111,11 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def controller_index_path
|
def controller_index_path
|
||||||
self.send((request.filtered_parameters["controller"] + "_path").to_sym)
|
kontroller = request.filtered_parameters["controller"]
|
||||||
|
if kontroller.downcase != "contacts"
|
||||||
|
kontroller = "aspects"
|
||||||
|
end
|
||||||
|
self.send((kontroller + "_path").to_sym)
|
||||||
end
|
end
|
||||||
|
|
||||||
def left_nav_root
|
def left_nav_root
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
- for aspect in all_aspects
|
- for aspect in all_aspects
|
||||||
= aspect_dropdown_list_item(aspect, contact, person)
|
= aspect_dropdown_list_item(aspect, contact, person)
|
||||||
|
|
||||||
- if defined?(@aspect) && ( @aspect == :profile || @aspect == :tag || @aspect == :search || @aspect == :notification)
|
- if defined?(@aspect) && ( @aspect == :profile || @aspect == :getting_started || @aspect == :tag || @aspect == :search || @aspect == :notification)
|
||||||
%li.newItem
|
%li.newItem
|
||||||
.add_aspect
|
.add_aspect
|
||||||
= link_to t('contacts.index.add_a_new_aspect'), new_aspect_path(:person_id => person.id), :rel => 'facebox', :class => 'new_aspect'
|
= link_to t('contacts.index.add_a_new_aspect'), new_aspect_path(:person_id => person.id), :rel => 'facebox', :class => 'new_aspect'
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@
|
||||||
= current_user.first_name
|
= current_user.first_name
|
||||||
|
|
||||||
.section
|
.section
|
||||||
= link_to "Get Started", getting_started_path
|
%ul.left_nav
|
||||||
|
%li
|
||||||
|
= link_to "Welcome", getting_started_path, :class => "home_selector"
|
||||||
|
|
||||||
.section
|
.section
|
||||||
= render 'aspects/aspect_listings'
|
= render 'aspects/aspect_listings'
|
||||||
|
|
|
||||||
|
|
@ -12,28 +12,30 @@
|
||||||
= current_user.first_name
|
= current_user.first_name
|
||||||
|
|
||||||
.section
|
.section
|
||||||
= link_to "Get Started", getting_started_path
|
%ul.left_nav
|
||||||
|
%li
|
||||||
|
= link_to "Welcome", getting_started_path, :class => "home_selector active"
|
||||||
|
|
||||||
//.section
|
.section
|
||||||
// = render 'aspects/aspect_listings'
|
= render 'aspects/aspect_listings'
|
||||||
|
|
||||||
//.section
|
.section
|
||||||
// = render 'tags/followed_tags_listings'
|
= render 'tags/followed_tags_listings'
|
||||||
|
|
||||||
.span-13.append-1
|
.span-13.append-1
|
||||||
.stream_container
|
.stream_container
|
||||||
%h3
|
%h2
|
||||||
= "Welcome, #{current_user.first_name}!"
|
= "Welcome, #{current_user.first_name}!"
|
||||||
|
|
||||||
%ul#getting_started
|
%ul#getting_started
|
||||||
%li.profile
|
%li.profile
|
||||||
.getting_started_number
|
.getting_started_number
|
||||||
%h4
|
%h3
|
||||||
1
|
1
|
||||||
.content
|
.content
|
||||||
#getting_started_profile_photo
|
#getting_started_profile_photo
|
||||||
= person_image_link(current_user.person, :size => :thumb_medium)
|
= person_image_link(current_user.person, :size => :thumb_medium)
|
||||||
%h4
|
%h3
|
||||||
= t(".fill_out_your_profile")
|
= t(".fill_out_your_profile")
|
||||||
%p
|
%p
|
||||||
= t(".profile_description")
|
= t(".profile_description")
|
||||||
|
|
@ -47,10 +49,10 @@
|
||||||
|
|
||||||
%li.services
|
%li.services
|
||||||
.getting_started_number
|
.getting_started_number
|
||||||
%h4
|
%h3
|
||||||
2
|
2
|
||||||
.content
|
.content
|
||||||
%h4
|
%h3
|
||||||
= t('.connect_to_your_other_social_networks')
|
= t('.connect_to_your_other_social_networks')
|
||||||
#getting_started_service_icons
|
#getting_started_service_icons
|
||||||
- AppConfig.configured_services.each do |service|
|
- AppConfig.configured_services.each do |service|
|
||||||
|
|
@ -59,44 +61,96 @@
|
||||||
|
|
||||||
%li
|
%li
|
||||||
.getting_started_number
|
.getting_started_number
|
||||||
%h4
|
%h3
|
||||||
3
|
3
|
||||||
.content
|
.content
|
||||||
%h4
|
%h3
|
||||||
= t(".connect_with_people")
|
= t(".connect_with_people")
|
||||||
|
|
||||||
|
%p
|
||||||
|
Connect with people by placing them into one or more of your aspects. Aspects are an intuative way to group new and familar faces, allowing you to filter down or share with subsets of your contacts easily.
|
||||||
|
|
||||||
#diaspora_hq_pane
|
#diaspora_hq_pane
|
||||||
- person = Person.first
|
- person = Person.find_by_diaspora_handle("diasporahq@joindiaspora.com")
|
||||||
= person_image_link(Person.first)
|
= person_image_link(person, :size => :thumb_medium)
|
||||||
.add_to_aspect
|
|
||||||
= render :partial => 'people/relationship_action',
|
|
||||||
:locals => { :person => Person.first,
|
|
||||||
:contact => current_user.contact_for(Person.first),
|
|
||||||
:current_user => current_user }
|
|
||||||
|
|
||||||
.name
|
.name
|
||||||
= person_link(person)
|
= person_link(person)
|
||||||
|
|
||||||
.info
|
.info
|
||||||
Get updates about the project.
|
Get updates about the project from the core team.
|
||||||
|
|
||||||
|
.add_to_aspect
|
||||||
|
= render :partial => 'people/relationship_action',
|
||||||
|
:locals => { :person => person,
|
||||||
|
:contact => current_user.contact_for(person),
|
||||||
|
:current_user => current_user }
|
||||||
|
|
||||||
|
#featured_users_pane
|
||||||
|
%h4
|
||||||
|
Featured users
|
||||||
|
|
||||||
|
%div
|
||||||
|
- Person.featured_users[0..5].each do |person|
|
||||||
|
.featured_user_card_small
|
||||||
|
= person_image_link(person)
|
||||||
|
= link_to person.name, person_path(person)
|
||||||
|
- person.profile.tags[0..2].each do |tg|
|
||||||
|
= "##{tg}"
|
||||||
|
|
||||||
|
= link_to "See all featured users ->", "#"
|
||||||
|
|
||||||
|
%br
|
||||||
|
#find_friends_pane
|
||||||
|
%h4
|
||||||
|
Find friends
|
||||||
|
.span-5.append-1
|
||||||
|
#global_search
|
||||||
|
= form_tag(people_path, :method => 'get', :id => "global_search_form") do
|
||||||
|
= text_field_tag 'q', nil, :placeholder => "Search for people", :type => 'search', :results => 5
|
||||||
|
.span-5.last
|
||||||
|
%p
|
||||||
|
or
|
||||||
|
= link_to "find friends from Facebook", "#"
|
||||||
|
.clearfix
|
||||||
|
%br
|
||||||
|
|
||||||
%li
|
%li
|
||||||
.getting_started_number
|
.getting_started_number
|
||||||
%h4
|
%h3
|
||||||
4
|
4
|
||||||
.content
|
.content
|
||||||
%h4
|
%h3
|
||||||
= t(".follow_your_interests")
|
= t(".follow_your_interests")
|
||||||
|
|
||||||
%p
|
%p
|
||||||
popular/curated tags? person's tags?
|
Hashtags allow you to talk about and follow your interests. They're also a great way to find new people on Diaspora.
|
||||||
|
|
||||||
|
.span-5.append-1
|
||||||
|
#global_search
|
||||||
|
= form_tag(people_path, :method => 'get', :id => "global_search_form") do
|
||||||
|
= text_field_tag 'q', nil, :placeholder => "Search for #hashtags", :type => 'search', :results => 5
|
||||||
|
.span-5.last
|
||||||
|
%h4
|
||||||
|
Featured tags
|
||||||
|
%p
|
||||||
|
= link_to "#diaspora", "#"
|
||||||
|
%br
|
||||||
|
= link_to "#kittens", "#"
|
||||||
|
%br
|
||||||
|
= link_to "#puppies", "#"
|
||||||
|
%br
|
||||||
|
= link_to "#maddog", "#"
|
||||||
|
.clearfix
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
|
||||||
%li
|
%li
|
||||||
.getting_started_number
|
.getting_started_number
|
||||||
%h4
|
%h3
|
||||||
5
|
5
|
||||||
.content
|
.content
|
||||||
%h4
|
%h3
|
||||||
= t(".connect_to")
|
= t(".connect_to")
|
||||||
= link_to "Cubbi.es", "http://cubbi.es/"
|
= link_to "Cubbi.es", "http://cubbi.es/"
|
||||||
%p
|
%p
|
||||||
|
|
|
||||||
|
|
@ -787,10 +787,10 @@ en:
|
||||||
save_and_continue: "Save and continue"
|
save_and_continue: "Save and continue"
|
||||||
could_not_find_anyone: "Could not find any friends on Diaspora*. Use the friend finder to invite them."
|
could_not_find_anyone: "Could not find any friends on Diaspora*. Use the friend finder to invite them."
|
||||||
|
|
||||||
fill_out_your_profile: "Fill Out Your Profile"
|
fill_out_your_profile: "Fill out your profile"
|
||||||
profile_description: "Description of why you'd want to do this"
|
profile_description: "Description of why you'd want to do this"
|
||||||
connect_to_your_other_social_networks: "Connect to your other social networks"
|
connect_to_your_other_social_networks: "Connect to your other social networks"
|
||||||
connect_with_people: "Connect with people"
|
connect_with_people: "Connect with cool people"
|
||||||
follow_your_interests: "Follow your interests"
|
follow_your_interests: "Follow your interests"
|
||||||
connect_to: "Connect to"
|
connect_to: "Connect to"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1109,7 +1109,7 @@ img.scaled_full
|
||||||
img
|
img
|
||||||
:height 140px
|
:height 140px
|
||||||
|
|
||||||
#global_search
|
header #global_search
|
||||||
:display inline
|
:display inline
|
||||||
:position relative
|
:position relative
|
||||||
|
|
||||||
|
|
@ -3188,7 +3188,7 @@ ul#getting_started
|
||||||
:padding 0
|
:padding 0
|
||||||
:margin 0
|
:margin 0
|
||||||
|
|
||||||
li
|
> li
|
||||||
:position relative
|
:position relative
|
||||||
:border
|
:border
|
||||||
:bottom 1px solid #ddd
|
:bottom 1px solid #ddd
|
||||||
|
|
@ -3200,6 +3200,9 @@ ul#getting_started
|
||||||
:padding
|
:padding
|
||||||
:left 30px
|
:left 30px
|
||||||
|
|
||||||
|
input[type='search']
|
||||||
|
:width 210px
|
||||||
|
|
||||||
.profile
|
.profile
|
||||||
:min-height 170px
|
:min-height 170px
|
||||||
|
|
||||||
|
|
@ -3232,33 +3235,36 @@ ul#getting_started
|
||||||
|
|
||||||
#diaspora_hq_pane
|
#diaspora_hq_pane
|
||||||
:padding
|
:padding
|
||||||
:top 10px
|
:bottom 20px
|
||||||
:min-height 70px
|
:min-height 70px
|
||||||
|
|
||||||
.add_to_aspect
|
.add_to_aspect
|
||||||
:float right
|
:padding 10px 0
|
||||||
|
|
||||||
.avatar
|
.avatar
|
||||||
:float left
|
:float left
|
||||||
:margin
|
:margin
|
||||||
:right 10px
|
:right 10px
|
||||||
|
|
||||||
|
:height 70px
|
||||||
|
:width 70px
|
||||||
|
|
||||||
.name
|
.name
|
||||||
:font
|
:font
|
||||||
:weight bold
|
:weight bold
|
||||||
|
|
||||||
.cubbies_images
|
.cubbies_images
|
||||||
:margin-left 50px
|
:margin-left 15px
|
||||||
|
|
||||||
.cubbies_user_page_small
|
.cubbies_user_page_small
|
||||||
:position absolute
|
:position absolute
|
||||||
:left 250px
|
:left 270px
|
||||||
|
|
||||||
.getting_started_number
|
.getting_started_number
|
||||||
:position absolute
|
:position absolute
|
||||||
:left 0
|
:left 0
|
||||||
|
|
||||||
h4
|
h3
|
||||||
:display inline
|
:display inline
|
||||||
:background
|
:background
|
||||||
:color #eee
|
:color #eee
|
||||||
|
|
@ -3267,12 +3273,42 @@ ul#getting_started
|
||||||
:margin
|
:margin
|
||||||
:right 8px
|
:right 8px
|
||||||
|
|
||||||
.completed
|
.profile .profile_field
|
||||||
:background
|
:background
|
||||||
:image url('/images/icons/check_yes_ok.png')
|
:image url('/images/icons/monotone_question.png')
|
||||||
:position center right
|
:position center left
|
||||||
:repeat no-repeat
|
:repeat no-repeat
|
||||||
|
|
||||||
.profile .profile_field
|
|
||||||
:padding
|
:padding
|
||||||
:right 20px
|
:left 20px
|
||||||
|
|
||||||
|
.completed
|
||||||
|
:background
|
||||||
|
:image url('/images/icons/check_yes_ok.png') !important
|
||||||
|
|
||||||
|
#featured_users_pane
|
||||||
|
:padding 10px 0
|
||||||
|
|
||||||
|
.featured_user_card_small
|
||||||
|
:display inline-block
|
||||||
|
|
||||||
|
:width 140px
|
||||||
|
:height 30px
|
||||||
|
|
||||||
|
:vertical-align top
|
||||||
|
:position relative
|
||||||
|
|
||||||
|
:padding 5px
|
||||||
|
:margin
|
||||||
|
:bottom 10px
|
||||||
|
|
||||||
|
a
|
||||||
|
:font
|
||||||
|
:weight bold
|
||||||
|
|
||||||
|
.avatar
|
||||||
|
:height 30px
|
||||||
|
:width 30px
|
||||||
|
:margin
|
||||||
|
:right 5px
|
||||||
|
:float left
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue