Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gigadoc 2
diaspora
Commits
8e88f4b1
Unverified
Commit
8e88f4b1
authored
Mar 03, 2018
by
Dennis Schubert
Committed by
Benjamin Neff
Mar 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the back-to-top button to all views
fixes #7727
parent
4e5ee366
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
19 deletions
+20
-19
app/assets/javascripts/app/pages/single-post-viewer.js
app/assets/javascripts/app/pages/single-post-viewer.js
+6
-6
app/assets/stylesheets/base.scss
app/assets/stylesheets/base.scss
+12
-3
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+2
-0
app/views/people/contacts.haml
app/views/people/contacts.haml
+0
-2
app/views/people/index.html.haml
app/views/people/index.html.haml
+0
-2
app/views/people/show.html.haml
app/views/people/show.html.haml
+0
-2
app/views/streams/main_stream.html.haml
app/views/streams/main_stream.html.haml
+0
-2
app/views/tags/show.haml
app/views/tags/show.haml
+0
-2
No files found.
app/assets/javascripts/app/pages/single-post-viewer.js
View file @
8e88f4b1
...
...
@@ -3,23 +3,23 @@
app
.
pages
.
SinglePostViewer
=
app
.
views
.
Base
.
extend
({
templateName
:
"
single-post-viewer
"
,
subviews
:
{
"
#single-post-content
"
:
"
singlePostContentView
"
,
'
#single-post-interactions
'
:
'
singlePostInteractionsView
'
subviews
:
{
"
#single-post-content
"
:
"
singlePostContentView
"
,
"
#single-post-interactions
"
:
"
singlePostInteractionsView
"
},
initialize
:
function
()
{
initialize
:
function
()
{
this
.
model
=
new
app
.
models
.
Post
(
gon
.
post
);
this
.
initViews
();
},
initViews
:
function
()
{
initViews
:
function
()
{
this
.
singlePostContentView
=
new
app
.
views
.
SinglePostContent
({
model
:
this
.
model
});
this
.
singlePostInteractionsView
=
new
app
.
views
.
SinglePostInteractions
({
model
:
this
.
model
});
this
.
render
();
},
postRenderTemplate
:
function
()
{
postRenderTemplate
:
function
()
{
if
(
this
.
model
.
get
(
"
title
"
)){
// formats title to html...
var
html_title
=
app
.
helpers
.
textFormatter
(
this
.
model
.
get
(
"
title
"
),
this
.
model
.
get
(
"
mentioned_people
"
));
...
...
app/assets/stylesheets/base.scss
View file @
8e88f4b1
...
...
@@ -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
{
...
...
app/views/layouts/application.html.haml
View file @
8e88f4b1
...
...
@@ -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:
"#"
}
app/views/people/contacts.haml
View file @
8e88f4b1
...
...
@@ -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'
,
...
...
app/views/people/index.html.haml
View file @
8e88f4b1
...
...
@@ -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
...
...
app/views/people/show.html.haml
View file @
8e88f4b1
...
...
@@ -30,8 +30,6 @@
.loader.hidden
.spinner
%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'
,
...
...
app/views/streams/main_stream.html.haml
View file @
8e88f4b1
...
...
@@ -178,5 +178,3 @@
.col-md-9
.stream-container
#aspect-stream-container
=
render
"aspects/aspect_stream"
,
stream:
@stream
%a
.entypo-chevron-up.back-to-top
#back-to-top
{
title:
"#{t('layouts.application.back_to_top')}"
,
href:
"#"
}
app/views/tags/show.haml
View file @
8e88f4b1
...
...
@@ -33,5 +33,3 @@
#paginate
.loader.hidden
.spinner
%a
.entypo-chevron-up.back-to-top
#back-to-top
{
title:
"#{t('layouts.application.back_to_top')}"
,
href:
"#"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment