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

main_stream.html.haml « streams « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 991575157a1aa50575c3f7e457bea665106bab45 (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
-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

- content_for :head do
  - if AppConfig.chat.enabled?
    = javascript_include_tag :jsxc, id: 'jsxc',
      data: { endpoint: get_bosh_endpoint }

- if current_user&.getting_started?
  #welcome-to-diaspora
    .container-fluid
      .row
        .col-md-9
          %h1
            = t('aspects.index.welcome_to_diaspora', name: current_user.first_name)
          %h3
            = t('aspects.index.introduce_yourself')
        .col-md-3
          .pull-right
            = link_to '×'.html_safe, getting_started_completed_path, id: "gs-skip-x", class: "close"

.container-fluid
  .row
    - if user_signed_in?
      .col-md-3
        .sidebar.left-navbar
          %ul#stream-selection
            %li{data: {stream: "stream"}}
              = link_to t("streams.multi.title"), stream_path, rel: "backbone", class: "hoverable"
            %li.nested-list.my-activity{data: {stream: "activity"}}
              = link_to t("streams.activity.title"), activity_stream_path, rel: "backbone", class: "hoverable"
              %ul
                %li{data: {stream: "liked"}}
                  = link_to t("streams.liked.title"), liked_stream_path, rel: "backbone", class: "hoverable selectable"
                %li{data: {stream: "commented"}}
                  = link_to t("streams.commented.title"), commented_stream_path,
                    rel: "backbone", class: "hoverable selectable"
            %li{data: {stream: "mentions"}}
              = link_to t("streams.mentions.title"), mentioned_stream_path, rel: "backbone", class: "hoverable"
            %li.nested-list.all-aspects
              = render "aspects/aspect_listings", stream: @stream
            %li.nested-list
              = render "tags/followed_tags_listings"
            %li{data: {stream: "public"}}
              = link_to t("streams.public.title"), public_stream_path, rel: "backbone", class: "hoverable"

        .sidebar.info-bar.hidden-xs
          - if AppConfig.settings.invitations.open?
            .section.collapsed
              .title
                %h5.title-header
                  .entypo-triangle-right
                  .entypo-triangle-down
                  = t("shared.invitations.invite_your_friends")
              .content
                = render "shared/invitations"

          .section.collapsed
            .title
              %h5.title-header
                .entypo-triangle-right
                .entypo-triangle-down
                = t("aspects.index.new_here.title")
            .content
              != t("aspects.index.new_here.follow",
                link: link_to("#" + t("shared.publisher.new_user_prefill.newhere"),
                tag_path(name: t("shared.publisher.new_user_prefill.newhere"))))
              %br
              = link_to(t("aspects.index.new_here.learn_more"),
                "https://wiki.diasporafoundation.org/Welcoming_Committee")

          .section.collapsed
            .title
              %h5.title-header
                .entypo-triangle-right
                .entypo-triangle-down
                = t("aspects.index.help.need_help")
            .content
              %p
                = t("aspects.index.help.here_to_help")
              %p
                = t("aspects.index.help.do_you")
              %ul
                %li
                  != t("aspects.index.help.have_a_question",
                    link: link_to("#" + t("aspects.index.help.tag_question"),
                    tag_path(name: t("aspects.index.help.tag_question"))))
                %li
                  != t("aspects.index.help.find_a_bug",
                    link: link_to(t("aspects.index.help.tag_bug"),
                    "https://wiki.diasporafoundation.org/How_to_report_a_bug"))
                %li
                  != t("aspects.index.help.feature_suggestion",
                    link: link_to(t("aspects.index.help.tag_feature"),
                    "https://discourse.diasporafoundation.org/c/features-and-ideas"))
              %p
                != t("aspects.index.help.tutorials_and_wiki",
                  faq: link_to(t("_help"), help_path),
                  tutorial: link_to(t("aspects.index.help.tutorial_link_text"),
                    "https://diasporafoundation.org/tutorials", target: "_blank"),
                  wiki: link_to("Wiki", "https://wiki.diasporafoundation.org",
                    target: "_blank"),
                  target: "_blank")

              %p
                != t("aspects.index.help.support_forum",
                  support_forum: link_to(t("aspects.index.help.support_forum_link"),
                  "https://discourse.diasporafoundation.org/c/support", target: "_blank"))

          - unless AppConfig.configured_services.blank? || all_services_connected?
            .section.collapsed
              .title
                %h5.title-header
                  .entypo-triangle-right
                  .entypo-triangle-down
                  = t("aspects.index.services.heading")
              .content
                %div
                  = t("aspects.index.services.content")

                .right-service-icons
                  - AppConfig.configured_services.each do |service|
                    - if service_unconnected?(service)
                      = link_to(content_tag(:div, nil,
                        class: "social-media-logos-#{service.to_s.downcase}-24x24",
                        title: service.to_s.titleize), "/auth/#{service}", method: :post)

          .section.collapsed
            .title
              %h5.title-header
                .entypo-triangle-right
                .entypo-triangle-down
                = t("bookmarklet.heading")
            .content
              != t("bookmarklet.explanation", link: link_to(t("bookmarklet.post_something"), bookmarklet_code))

          - if donations_enabled?
            .section.collapsed
              .title
                %h5.title-header
                  .entypo-triangle-right
                  .entypo-triangle-down
                  = t("aspects.index.donate")
              .content
                %p
                  = t("aspects.index.keep_pod_running", pod: AppConfig.pod_uri.host)
                = render "shared/donatepod"

          - if AppConfig.admins.podmin_email.present?
            .section.collapsed
              .title
                %h5.title-header
                  .entypo-triangle-right
                  .entypo-triangle-down
                  = t("aspects.index.help.any_problem")
              .content
                %p
                  = t("aspects.index.help.contact_podmin")
                %p
                  = link_to t("aspects.index.help.mail_podmin"), "mailto:#{AppConfig.admins.podmin_email}"

          .excellence-box
            .content
              %p
                = link_to t("layouts.application.be_excellent"), "https://diasporafoundation.org/community_guidelines"

          .info-links
            .content
              %ul
                = render "shared/links"

          .powered-box
            .content
              .powered-by-diaspora.text-center
                = link_to t("layouts.application.powered_by"), "https://diasporafoundation.org"

    .col-md-9{class: ("center-block public-stream" unless user_signed_in?)}
      .stream-container#aspect-stream-container
        - unless user_signed_in?
          %h2= @stream.title
        = render "aspects/aspect_stream", stream: @stream