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

fixed content expander in comments; comments have a smaller limit than posts

parent d2b71681
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -16,7 +16,7 @@
= person_image_link(post.author, :size => :thumb_small)
.content
%div
%div.post_initial_info
%span.from
= person_link(post.author, :class => 'author')
%time.time.timeago{:datetime => post.created_at, :integer => time_for_sort(post).to_i}
......
......@@ -18,13 +18,21 @@ var Stream = {
Stream.setUpAudioLinks();
//Stream.setUpImageLinks();
// collapse long comments
// collapse long posts
$(".content p", this.selector).expander({
slicePoint: 400,
widow: 12,
expandText: Diaspora.widgets.i18n.t("show_more"),
userCollapse: false
});
// collapse long comments
$(".comment .content span", this.selector).expander({
slicePoint: 200,
widow: 12,
expandText: Diaspora.widgets.i18n.t("show_more"),
userCollapse: false
});
},
initializeLives: function(){
......@@ -41,7 +49,6 @@ var Stream = {
});
this.setUpComments();
},
setUpComments: function(){
......
......@@ -477,8 +477,9 @@ ul.dropdown
:bottom 5px
.details
:color #aaa
.post_initial_info
.details
:color #aaa
.time,
.timeago,
......
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