parent
4e5ee36675
commit
8e88f4b183
8 changed files with 20 additions and 19 deletions
|
|
@ -3,23 +3,23 @@
|
||||||
app.pages.SinglePostViewer = app.views.Base.extend({
|
app.pages.SinglePostViewer = app.views.Base.extend({
|
||||||
templateName: "single-post-viewer",
|
templateName: "single-post-viewer",
|
||||||
|
|
||||||
subviews : {
|
subviews: {
|
||||||
"#single-post-content" : "singlePostContentView",
|
"#single-post-content": "singlePostContentView",
|
||||||
'#single-post-interactions' : 'singlePostInteractionsView'
|
"#single-post-interactions": "singlePostInteractionsView"
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize : function() {
|
initialize: function() {
|
||||||
this.model = new app.models.Post(gon.post);
|
this.model = new app.models.Post(gon.post);
|
||||||
this.initViews();
|
this.initViews();
|
||||||
},
|
},
|
||||||
|
|
||||||
initViews : function() {
|
initViews: function() {
|
||||||
this.singlePostContentView = new app.views.SinglePostContent({model: this.model});
|
this.singlePostContentView = new app.views.SinglePostContent({model: this.model});
|
||||||
this.singlePostInteractionsView = new app.views.SinglePostInteractions({model: this.model});
|
this.singlePostInteractionsView = new app.views.SinglePostInteractions({model: this.model});
|
||||||
this.render();
|
this.render();
|
||||||
},
|
},
|
||||||
|
|
||||||
postRenderTemplate : function() {
|
postRenderTemplate: function() {
|
||||||
if(this.model.get("title")){
|
if(this.model.get("title")){
|
||||||
// formats title to html...
|
// formats title to html...
|
||||||
var html_title = app.helpers.textFormatter(this.model.get("title"), this.model.get("mentioned_people"));
|
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;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
|
text-decoration: none;
|
||||||
transition: opacity ease 400ms;
|
transition: opacity ease 400ms;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
z-index: 49;
|
z-index: 49;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&.visible:hover {
|
&:focus,
|
||||||
|
&:active {
|
||||||
color: $white;
|
color: $white;
|
||||||
opacity: .85;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.visible { opacity: .5; }
|
&.visible {
|
||||||
|
opacity: .5;
|
||||||
|
pointer-events: auto;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: .85;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.noscript {
|
.noscript {
|
||||||
|
|
|
||||||
|
|
@ -38,3 +38,5 @@
|
||||||
%ol.indicator
|
%ol.indicator
|
||||||
|
|
||||||
#flash-container= flash_messages
|
#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
|
= render partial: 'people/person', locals: hash
|
||||||
= will_paginate @contacts_of_contact, renderer: WillPaginate::ActionView::BootstrapLinkRenderer
|
= 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
|
-if user_signed_in? && @person
|
||||||
#new_status_message_pane
|
#new_status_message_pane
|
||||||
= render 'shared/modal',
|
= render 'shared/modal',
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,6 @@
|
||||||
|
|
||||||
= will_paginate @people, renderer: WillPaginate::ActionView::BootstrapLinkRenderer
|
= 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
|
.col-md-4
|
||||||
- if AppConfig.settings.invitations.open?
|
- if AppConfig.settings.invitations.open?
|
||||||
%h4
|
%h4
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,6 @@
|
||||||
.loader.hidden
|
.loader.hidden
|
||||||
.spinner
|
.spinner
|
||||||
|
|
||||||
%a.entypo-chevron-up.back-to-top#back-to-top{title: "#{t('layouts.application.back_to_top')}", href: "#"}
|
|
||||||
|
|
||||||
-if user_signed_in? && @person
|
-if user_signed_in? && @person
|
||||||
#new_status_message_pane
|
#new_status_message_pane
|
||||||
= render 'shared/modal',
|
= render 'shared/modal',
|
||||||
|
|
|
||||||
|
|
@ -178,5 +178,3 @@
|
||||||
.col-md-9
|
.col-md-9
|
||||||
.stream-container#aspect-stream-container
|
.stream-container#aspect-stream-container
|
||||||
= render "aspects/aspect_stream", stream: @stream
|
= 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
|
#paginate
|
||||||
.loader.hidden
|
.loader.hidden
|
||||||
.spinner
|
.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