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) 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({ this.$("#post-comments").append(new app.views.Comment({
model: comment, model: comment,
className : "post-comment media" className : "post-comment media",
templateName : "post-viewer/comment"
}).render().el); }).render().el);
} }
}); });

View file

@ -369,9 +369,19 @@
/* new stream overrides */ /* new stream overrides */
#stream { #stream {
color : #fff; 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-content {
.stream-frame { .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"> <div class="img">
{{#linkToPerson author}} {{#linkToPerson author}}
{{{personImage this "small" "small"}}} <div class="profile-image-container smaller" style="background-image : url('{{avatar.large}}')"></div>
{{/linkToPerson}} {{/linkToPerson}}
</div> </div>
<div class="bd"> <div class="bd">
{{#linkToPerson author}} <a href="/people/{{author.guid}}" class="author author-name">
{{name}} {{author.name}}
{{/linkToPerson}} </a>
<div class="comment-content"> <div class="collapsible comment-content">
{{{text}}} {{{text}}}
</div> </div>
<div class="info">
<time class="timeago" datetime="{{created_at}}"/>
</div>
</div> </div>

View file

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