Skip to content
Extraits de code Groupes Projets
Valider 0a670ccf rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

convert comment underscore template to a handlebars template.

parent 3a764906
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
<div class="right controls">
<!-- need access to post -->
<% if(ownComment) { %>
<a href="#" class="delete comment_delete" title="<%= Diaspora.I18n.t('delete') %>">
{{#if ownComment}}
<a href="#" class="delete comment_delete" title="{{t "delete"}}">
<img alt="Deletelabel" src="/images/deletelabel.png" />
<a/>
<% } %>
{{/if}}
</div>
<a href="/people/<%= author.id %>">
<img src="<%= author.avatar.small %>" class="avatar" data-person-id="<%= author.id %>"/>
<a href="/people/{{author.id}}">
<img src="{{author.avatar.small}}" class="avatar" />
</a>
<div class="content">
<span class="from">
<a href="/people/<%= author.id %>">
<%= author.name %>
{{author.name}}
</a>
</span>
<div class="collapsible">
<%= text %>
{{text}}
</div>
<div class="comment_info">
<time class="timeago" datetime="<%= created_at %>"/>
<time class="timeago" datetime="{{created_at}}"/>
</div>
</div>
app.views.Comment = app.views.Content.extend({
legacyTemplate : true,
template_name: "#comment-template",
templateName: "comment",
tagName : "li",
......
app.views.Content = app.views.StreamObject.extend({
legacyTemplate : true,
presenter : function(){
var model = this.model
return _.extend(this.defaultPresenter(), {
......@@ -15,10 +14,12 @@ app.views.Content = app.views.StreamObject.extend({
})
app.views.StatusMessage = app.views.Content.extend({
legacyTemplate : true,
template_name : "#status-message-template"
});
app.views.Reshare = app.views.Content.extend({
legacyTemplate : true,
template_name : "#reshare-template"
});
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter