i mustache you a question, but i'll shave it for you later.
This commit is contained in:
parent
5d15c53f6b
commit
9510e1ca6f
4 changed files with 11 additions and 5 deletions
3
app/views/templates/activity_streams_photo.handlebars
Normal file
3
app/views/templates/activity_streams_photo.handlebars
Normal 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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue