parent
4e5ee36675
commit
8e88f4b183
8 changed files with 20 additions and 19 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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: "#"}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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: "#"}
|
||||
|
|
|
|||
|
|
@ -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: "#"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue