i mustache you a question, but i'll shave it for you later.

This commit is contained in:
danielgrippi 2012-01-22 22:01:45 -08:00
parent 5d15c53f6b
commit 9510e1ca6f
4 changed files with 11 additions and 5 deletions

View file

@ -0,0 +1,3 @@
<a href="{{object_url}}" class="stream-photo-link">
<img src="{{image_url}}" data-small-photo="{{image_url}}" data-full-photo="{{image_url}}" class="stream-photo" />
</a>

View file

@ -1,3 +0,0 @@
<a href="<%= object_url %>" class="stream-photo-link">
<img src="<%= image_url %>" data-small-photo="<%= image_url %>" data-full-photo="<%= image_url %>" class="stream-photo" />
</a>

View file

@ -32,4 +32,9 @@ var app = {
}
};
$(function() { app.initialize(); });
$(function() {
Handlebars.registerHelper('t', function(){
return Diaspora.I18n.t(arguments[0], jQuery.parseJSON(arguments[1]))
})
app.initialize();
});

View file

@ -23,6 +23,7 @@ app.views.Reshare = app.views.Content.extend({
});
app.views.ActivityStreams__Photo = app.views.Content.extend({
template_name : "#activity-streams-photo-template"
legacyTemplate : false,
templateName : "activity-streams-photo"
});