Unverified Commit 8e88f4b1 authored by Dennis Schubert's avatar Dennis Schubert Committed by Benjamin Neff
Browse files

Add the back-to-top button to all views

fixes #7727
parent 4e5ee366
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ app.pages.SinglePostViewer = app.views.Base.extend({

  subviews: {
    "#single-post-content": "singlePostContentView",
    '#single-post-interactions' : 'singlePostInteractionsView'
    "#single-post-interactions": "singlePostInteractionsView"
  },

  initialize: function() {
+12 −3
Original line number Diff line number Diff line
@@ -70,20 +70,29 @@ pre { word-wrap: break-word; }
  height: 50px;
  line-height: 50px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 20px;
  text-decoration: none;
  transition: opacity ease 400ms;
  width: 50px;
  z-index: 49;

  &:hover,
  &.visible:hover {
  &:focus,
  &:active {
    color: $white;
    opacity: .85;
    text-decoration: none;
  }

  &.visible { opacity: .5; }
  &.visible {
    opacity: .5;
    pointer-events: auto;

    &:hover {
      opacity: .85;
    }
  }
}

.noscript {
+2 −0
Original line number Diff line number Diff line
@@ -38,3 +38,5 @@
      %ol.indicator

    #flash-container= flash_messages

    %a.entypo-chevron-up.back-to-top#back-to-top{title: t("layouts.application.back_to_top"), href: "#"}
+0 −2
Original line number Diff line number Diff line
@@ -17,8 +17,6 @@
            = render partial: 'people/person', locals: hash
        = will_paginate @contacts_of_contact, renderer: WillPaginate::ActionView::BootstrapLinkRenderer

      %a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}

-if user_signed_in? && @person
  #new_status_message_pane
    = render 'shared/modal',
+0 −2
Original line number Diff line number Diff line
@@ -29,8 +29,6 @@

          = will_paginate @people, renderer: WillPaginate::ActionView::BootstrapLinkRenderer

        %a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}

    .col-md-4
      - if AppConfig.settings.invitations.open?
        %h4
Loading