Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getting_started.haml « users « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79ead984b04920461cef9c8d991684128ed581f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

.span-5.leftNavBar
  #home_user_badge
    = owner_image_link
    %h3
      = current_user.first_name

  - unless has_completed_getting_started?
    .section
      %ul.left_nav
        %li
          = link_to t(".welcome"), getting_started_path, :class => "home_selector active"

  .section
    = render 'aspects/aspect_listings'

  .section
    = render 'tags/followed_tags_listings'

.span-13.append-1
  .stream_container
    %h2
      = welcome_text
    %h4
      = t(".community_welcome")
    %p
      = t(".not_mandatory")

    %ul#getting_started
      %li.profile{:class => ("completed" if has_completed_profile?)}
        .getting_started_number
          %h3
            = @step += 1
        .content
          %h3
            = t(".fill_out_your_profile")
          #getting_started_profile_photo
            = person_image_link(current_user.person, :size => :thumb_medium)
          %p
            = t(".profile_description")
          .span-8.fields
            - [:full_name, :image_url, :birthday, :gender, :bio, :location, :tag_string].each do |attr|
              .span-4.last
                = profile_field_tag(current_user.person.profile, attr)

          #edit_profile_button_div
            = link_to t(".edit_profile"), edit_profile_path, :class => "button", :target => "_blank"

      - unless AppConfig[:configured_services].blank?
        %li.services{:class => ("completed" if has_connected_services?)}
          .getting_started_number
            %h3
              = @step += 1
          .content
            %h3
              = t('.connect_to_your_other_social_networks')

            %p
              = t('.connect_to_your_other_social_networks_explanation_p1')
              - if AppConfig[:configured_services].detect{|s| s == "facebook"}
                = t('.connect_to_your_other_social_networks_explanation_p2')

          #getting_started_service_icons
            - AppConfig.configured_services.each do |service|
              - unless current_user.services.any?{|x| x.provider == service}
                %span.service
                  %span.service_image
                    = link_to(image_tag("social_media_logos/#{service.to_s.downcase}-48x48.png", :title => service.to_s.titleize), "/auth/#{service}")
              - else
                %span.service
                  %span.service_image
                    = image_tag( "social_media_logos/#{service.to_s.downcase}-48x48.png", :title => service.to_s.titleize, :class => "dim")
                  %span.checkmark
                    = image_tag( "icons/check_yes_ok.png")

      %li.connect_with_people{:class => ("completed" if has_few_contacts?)}
        .getting_started_number
          %h3
            = @step += 1
        .content
          %h3
            = t('.connect_with_people')

          %p

            = t('.connect_with_people_explanation_pt1', :bold => content_tag(:b, t('.bold'))).html_safe
            = t('.connect_with_people_explanation_pt2')

          -unless AppConfig[:no_follow_diasporahq]
            #diaspora_hq_pane
              - if diasporahq = Person.find_by_diaspora_handle("diasporahq@joindiaspora.com")
                = person_image_link(diasporahq, :size => :thumb_medium)

                .name
                  = person_link(diasporahq)

                .info
                  = t('.get_updates_from_core')

                .add_to_aspect
                  = render :partial => 'people/relationship_action',
                    :locals => { :person => diasporahq,
                                  :contact => current_user.contact_for(diasporahq),
                                  :current_user => current_user }

          #community_spotlight_pane
            %h4
              = t('.community_spotlight')

            %div
              - Person.community_spotlight[0..5].each do |person|
                .featured_user_card_small
                  .right
                    .add_to_aspect
                      = render :partial => 'people/relationship_action',
                        :locals => { :person => person,
                                      :contact => current_user.contact_for(person),
                                      :current_user => current_user }
                  = person_image_link(person, :target => "_blank")
                  = person_link(person, :class => "hovercardable", :target => "_blank")
                  .tags
                    - person.profile.tags[0..2].each do |tg|
                      = link_to "##{tg}", tag_path(tg.name), :target => "_blank"

            = link_to "#{t('.see_all_community_spotlight')} ->", community_spotlight_path, :target => "_blank"

          %br
          #find_friends_pane
            %h4
              = t('.find_friends')
            .span-5.append-1
              = form_tag(people_path, :method => 'get', :class => "people search_form") do
                = text_field_tag 'q', nil, :placeholder => t(".search_for_people"), :type => 'search', :results => 5
            .span-5.last{:style => "height:30px;"}
              %h4{:style => "margin-top:7px;"}
                or
                = link_to t('.find_friends_from_facebook'), friend_finder_path('facebook'), :target => "_blank"
            .clearfix
            %br

      %li.follow_interests{:class => ("completed" if has_few_followed_tags?)}
        .getting_started_number
          %h3
            = @step += 1
        .content
          %h3
            = t('.follow_your_interests')

          %p
            = t('.hashtag_explanation')

          .span-5.append-1
            = form_tag(tags_path, :method => 'get', :class => "tag_input search_form") do
              = text_field_tag 'q', nil, :placeholder => t(".search_for_hashtags"), :type => 'search', :results => 5
          .span-5.last
            %h4{:style => "margin-top:7px;"}
              = t('.featured_tags')
            %p
              - ["diaspora", "art", "gif", "french"].each do |tag_name|
                = tag_link(tag_name)
                %br
          .clearfix
            %br
          %br

      %li.cubbies{:class => ("completed" if has_connected_cubbies?)}
        .getting_started_number
          %h3
            = @step += 1
        .content
          %h3
            = t(".connect_to")
            = link_to "Cubbi.es", "http://cubbi.es/", :target => "_blank"
          %p
            = t('tokens.show.what_is_cubbies')

          .cubbies_images
            = image_tag '/images/cubbies_collage.png', :width => 422, :height => 159, :class => "cubbies_collage_small"
            = image_tag '/images/cubbies_screenshot2.png', :height => 151, :width => 200, :class => "cubbies_user_page_small"

      %li{:style => 'text-align:center;'}
        %p
          = link_to t('.finished'), getting_started_completed_path, :class => "button"

/.span-5.rightBar.last
/  = render 'selected_contacts', :people => @selected_people.sample(20), :count => @contact_count
/  = render 'shared/right_sections'