DG MS; background colors for great justice (on the stream)

This commit is contained in:
danielgrippi 2012-05-22 15:10:53 -07:00
parent 1c342282b0
commit 2e52def47a
5 changed files with 42 additions and 13 deletions

View file

@ -9,7 +9,8 @@ app.views.Comment = app.views.Content.extend({
});
},
initialize : function(){
initialize : function(options){
this.templateName = options.templateName || this.templateName
this.model.on("change", this.render, this)
},

View file

@ -38,7 +38,8 @@ app.views.PostViewerReactions = app.views.Base.extend({
this.$("#post-comments").append(new app.views.Comment({
model: comment,
className : "post-comment media"
className : "post-comment media",
templateName : "post-viewer/comment"
}).render().el);
}
});

View file

@ -369,9 +369,19 @@
/* new stream overrides */
#stream {
color : #fff;
background-color : #333;
}
background-color : #222;
.background {
@include box-shadow(-2px, 0, 7px, rgba(0,0,0,0.8));
position : fixed;
background-color : cyan;
height : 100%;
width : 100%;
background-color : #333;
}
}
#stream-content {
.stream-frame {

View file

@ -1,15 +1,27 @@
{{#if canRemove}}
<div class="controls">
<a href="#" class="delete comment_delete" title="{{t "delete"}}">
<img alt="Deletelabel" src="{{imageUrl "deletelabel.png"}}" />
<a/>
</div>
{{/if}}
<div class="img">
{{#linkToPerson author}}
{{{personImage this "small" "small"}}}
{{/linkToPerson}}
{{#linkToPerson author}}
<div class="profile-image-container smaller" style="background-image : url('{{avatar.large}}')"></div>
{{/linkToPerson}}
</div>
<div class="bd">
{{#linkToPerson author}}
{{name}}
{{/linkToPerson}}
<a href="/people/{{author.guid}}" class="author author-name">
{{author.name}}
</a>
<div class="comment-content">
{{{text}}}
</div>
<div class="collapsible comment-content">
{{{text}}}
</div>
<div class="info">
<time class="timeago" datetime="{{created_at}}"/>
</div>
</div>

View file

@ -1,5 +1,10 @@
<div id="stream">
<div class="container">
<div class="row">
<div class="background offset5"></div>
</div>
<div class="row">
<section id="stream-content" class="span4 offset1"/>