markdownify small frames, css for new profile.

This commit is contained in:
Dennis Collinson 2012-04-21 16:05:24 -07:00
parent ca33070b9e
commit 0279874e32
4 changed files with 14 additions and 1 deletions

View file

@ -8,6 +8,12 @@ app.views.SmallFrame = app.views.Base.extend({
"click .content" : "goToPost"
},
presenter : function(){
//todo : we need to have something better for small frame text, probably using the headline() scenario.
return _.extend(this.defaultPresenter(),
{text : this.model && app.helpers.textFormatter(this.model.get("text"), this.model)})
},
postRenderTemplate : function() {
this.$el.addClass(this.photoClass() + ' ' + this.textClass())
},

View file

@ -49,6 +49,12 @@ body {
-webkit-transform : scale(0.98);
}
//hax to deal with markdownify
p {
font-size: inherit;
line-height: inherit;
}
position : relative;
background-color : #fff;

View file

@ -4,6 +4,7 @@
text-align: center;
width: 100%;
display: block;
clear: both;
.loader {
display: inline-block;

View file

@ -11,7 +11,7 @@
{{/if}}
<div class="text-content">
{{text}}
{{{text}}}
</div>
</div>
<div class="info">