split left column

This commit is contained in:
Flaburgan 2016-03-21 15:24:03 +01:00
parent 5ff085afff
commit 847fdb0de9
4 changed files with 103 additions and 93 deletions

View file

@ -1,5 +1,6 @@
.left-navbar { .left-navbar {
padding: 0; padding: 0;
padding-bottom: 10px;
a { a {
text-decoration: none; text-decoration: none;
@ -101,8 +102,14 @@
} }
.info-bar { .info-bar {
border-top: 1px solid $border-grey; margin-top: 20px;
padding: 0 20px; padding: 10px 20px 0;
.info-links {
border-top: 1px solid $border-grey;
margin-top: 10px;
padding: 5px;
}
.section { .section {
margin-top: 10px; margin-top: 10px;

View file

@ -17,7 +17,7 @@
} }
} }
@media(max-width: $screen-xs) { @media(max-width: $screen-xs-max) {
.main-stream-publisher .publisher { .main-stream-publisher .publisher {
margin-left: 0; margin-left: 0;

View file

@ -11,8 +11,11 @@
= owner_image_link = owner_image_link
= render "publisher/publisher", publisher_aspects_for(stream) = render "publisher/publisher", publisher_aspects_for(stream)
.stream#main_stream{:title => popover_with_close_html("3. #{t('.stay_updated')}"), - if current_user.getting_started?
"data-content" => t(".stay_updated_explanation")} .stream#main_stream{:title => popover_with_close_html("3. #{t('.stay_updated')}"),
"data-content" => t(".stay_updated_explanation")}
- else
.stream#main_stream
#paginate #paginate
%span.loader.hidden %span.loader.hidden

View file

@ -38,118 +38,118 @@
%li{data: {stream: "public"}} %li{data: {stream: "public"}}
= link_to t("streams.public.title"), public_stream_path, rel: "backbone", class: "hoverable" = link_to t("streams.public.title"), public_stream_path, rel: "backbone", class: "hoverable"
.info-bar.hidden-xs .sidebar.info-bar.hidden-xs
- if AppConfig.settings.invitations.open? - 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 .section.collapsed
.title .title
%h5.title-header %h5.title-header
.entypo-triangle-right .entypo-triangle-right
.entypo-triangle-down .entypo-triangle-down
= t("aspects.index.new_here.title") = t("shared.invitations.invite_your_friends")
.content .content
!= t("aspects.index.new_here.follow", = render "shared/invitations"
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"),
"http://wiki.diasporafoundation.org/Welcoming_Committee")
.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"),
"http://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"),
tag_path(name: t("aspects.index.help.tag_bug"))))
%li
!= t("aspects.index.help.feature_suggestion",
link: link_to("#" + t("aspects.index.help.tag_feature"),
tag_path(name: t("aspects.index.help.tag_feature"))))
%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", "http://wiki.diasporafoundation.org",
target: "_blank"),
target: "_blank")
- unless AppConfig.configured_services.blank? || all_services_connected?
.section.collapsed .section.collapsed
.title .title
%h5.title-header %h5.title-header
.entypo-triangle-right .entypo-triangle-right
.entypo-triangle-down .entypo-triangle-down
= t("aspects.index.help.need_help") = t("aspects.index.services.heading")
.content .content
%p %div
= t("aspects.index.help.here_to_help") = t("aspects.index.services.content")
%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"),
tag_path(name: t("aspects.index.help.tag_bug"))))
%li
!= t("aspects.index.help.feature_suggestion",
link: link_to("#" + t("aspects.index.help.tag_feature"),
tag_path(name: t("aspects.index.help.tag_feature"))))
%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", "http://wiki.diasporafoundation.org",
target: "_blank"),
target: "_blank")
- unless AppConfig.configured_services.blank? || all_services_connected? .right-service-icons
.section.collapsed - AppConfig.configured_services.each do |service|
.title - if AppConfig.show_service?(service, current_user)
%h5.title-header - unless current_user.services.any? {|x| x.provider == service }
.entypo-triangle-right = link_to(content_tag(:div, nil,
.entypo-triangle-down class: "social-media-logos-#{service.to_s.downcase}-24x24",
= t("aspects.index.services.heading") title: service.to_s.titleize), "/auth/#{service}")
.content
%div
= t("aspects.index.services.content")
.right-service-icons .section.collapsed
- AppConfig.configured_services.each do |service| .title
- if AppConfig.show_service?(service, current_user) %h5.title-header
- unless current_user.services.any? {|x| x.provider == service } .entypo-triangle-right
= link_to(content_tag(:div, nil, .entypo-triangle-down
class: "social-media-logos-#{service.to_s.downcase}-24x24", = t("bookmarklet.heading")
title: service.to_s.titleize), "/auth/#{service}") .content
!= t("bookmarklet.explanation", link: link_to(t("bookmarklet.post_something"), bookmarklet_code))
- if AppConfig.settings.paypal_donations.enable? || AppConfig.bitcoin_donation_address
.section.collapsed .section.collapsed
.title .title
%h5.title-header %h5.title-header
.entypo-triangle-right .entypo-triangle-right
.entypo-triangle-down .entypo-triangle-down
= t("bookmarklet.heading") = t("aspects.index.donate")
.content .content
!= t("bookmarklet.explanation", link: link_to(t("bookmarklet.post_something"), bookmarklet_code)) %p
= t("aspects.index.keep_pod_running", pod: AppConfig.pod_uri.host)
= render "shared/donatepod"
- if AppConfig.settings.paypal_donations.enable? || AppConfig.bitcoin_donation_address - if AppConfig.admins.podmin_email.present?
.section.collapsed .section.collapsed
.title .title
%h5.title-header %h5.title-header
.entypo-triangle-right .entypo-triangle-right
.entypo-triangle-down .entypo-triangle-down
= t("aspects.index.donate") = t("aspects.index.help.any_problem")
.content .content
%p %p
= t("aspects.index.keep_pod_running", pod: AppConfig.pod_uri.host) = t("aspects.index.help.contact_podmin")
= render "shared/donatepod" %p
= link_to t("aspects.index.help.mail_podmin"), "mailto:#{AppConfig.admins.podmin_email}"
- if AppConfig.admins.podmin_email.present? .info-links
.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}"
.info-bar
.content .content
%ul %ul
= render "shared/links" = render "shared/links"