Commit Graph

60 Commits

Author SHA1 Message Date
Juanjo Bazán
cc5babe764 hides comment's author avatar for erased users 2015-11-08 13:21:08 +01:00
Juanjo Bazán
e38a74d73f adds simple format to comments 2015-11-07 20:38:43 +01:00
Juanjo Bazán
2671b25ba6 makes author name a link to activity page
in debates/proposals/comments
2015-11-04 14:09:16 +01:00
kikito
60b3c65b05 Refactor comment tree calculation using a PORO 2015-10-30 17:00:32 +01:00
kikito
b2918621ab Refactors in children count when rendering comments 2015-10-28 17:33:24 +01:00
Sergio Arbeo
4e7493c75c Refactor comment body
Refactor the body of the comment to use a couple of helpers instead of a long
list of `if`s in the html.
2015-10-26 14:51:34 +01:00
Sergio Arbeo
3013d13b38 Add paragraphs to comments
Fix #600
2015-10-26 01:25:53 +01:00
kikito
6c5d1faa90 Uses the new field, erased_at, for erased users 2015-10-21 14:28:21 +02:00
Juanjo Bazán
ef4d99e538 moves comment's i18n 2015-09-13 13:54:34 +02:00
kikito
5b2ee94765 removes all mentions of debates from comment views 2015-09-13 12:32:27 +02:00
David Gil
31cf51f07a adds text_with_links helper and use that in any comment.body in views, adds test to check for malicious injections in comment body 2015-09-10 18:28:10 +02:00
Alberto Garcia Cabeza
a61c006f7f Replaces bullet for bull 2015-09-09 20:33:21 +02:00
Juanjo Bazán
cda54b0050 adds time tag to comment 2015-09-09 16:53:17 +02:00
Juanjo Bazán
811c329199 changes how comment.created_at is shown
time_ago_in_words is not cache friendly
2015-09-09 14:57:27 +02:00
Juanjo Bazán
e24e9e7be8 cache for _comment partial
not need to invalidates on commentable updates of comment_count because now ancestry touches parent comments so if there is children comment invalidation is automatic
2015-09-09 14:56:15 +02:00
rgarcia
13cf1d9449 removes all comments cache 2015-09-07 10:55:23 +02:00
Juanjo Bazán
bf18da3faa adds cache for authors of debate/comment 2015-09-06 22:03:31 +02:00
Juanjo Bazán
60089b8986 uses author info in comment/debate cache
author is already preloaded and we avoid expensive touching methods
2015-09-06 12:13:39 +02:00
Juanjo Bazán
5b3f9e5642 uses preloaded info 2015-09-06 12:07:58 +02:00
rgarcia
5200d76be6 caches comments 2015-09-05 22:02:51 +02:00
Juanjo Bazán
dfc1ccb108 renames helper method 2015-09-03 17:13:19 +02:00
Juanjo Bazán
136c1e73ed uses ancestry to retrieve debate comments 2015-09-03 16:32:54 +02:00
Juanjo Bazán
dee2d0196b ancestries
moves to ancestry from acts_as_commentable_with_threading
2015-09-02 19:23:09 +02:00
Juanjo Bazán
eb689d7c7e refactors comment form 2015-09-02 17:22:21 +02:00
kikito
b872d9a46d fixes failing specs 2015-08-28 19:19:18 +02:00
Alberto Garcia Cabeza
413a034e23 Adds styles for deleted comments 2015-08-27 20:21:26 +02:00
kikito
48ef4df0c3 Adds Comment#for_render 2015-08-26 19:41:42 +02:00
kikito
c183cf2cc6 merges master and fix conflicts 2015-08-25 19:31:25 +02:00
Alberto Garcia Cabeza
9202a4f8e4 Adds styles for flag as inappropriate 2015-08-25 14:09:04 +02:00
Juanjo Bazán
8233aa6a3e adds different avatar for same initial name users 2015-08-25 13:03:30 +02:00
Juanjo Bazán
6d93f975e3 Merge branch 'master' into moderator_comments 2015-08-24 19:01:49 +02:00
kikito
c6976b0905 Adds test for not using moderation links in my own comments 2015-08-24 18:36:56 +02:00
Juanjo Bazán
030fd49120 allows comment as moderator/administrator
Ref: #170
2015-08-24 18:17:04 +02:00
Alberto Garcia Cabeza
dffb8e8a5e Adds styles for comment as administrator 2015-08-24 12:29:35 +02:00
Alberto Garcia Cabeza
cfd25042b6 Adds styles for comment as moderator 2015-08-24 12:22:31 +02:00
kikito
c88f7c1f30 merges master and fixes conflicts 2015-08-23 20:27:11 +02:00
Alberto Garcia Cabeza
ff6285d114 Improves general styles 2015-08-21 18:57:09 +02:00
kikito
ee881230ba merges master and fixes conflicts 2015-08-20 18:50:10 +02:00
kikito
e7effbf77c Allows flagging comments as inappropriate 2015-08-20 18:47:16 +02:00
Juanjo Bazán
896fe41db0 favors with_hidden 2015-08-20 17:52:59 +02:00
Juanjo Bazán
b340d7741a adds hiding users by moderators 2015-08-20 13:16:37 +02:00
Juanjo Bazán
0066cb0514 compares ids 2015-08-19 16:32:39 +02:00
Juanjo Bazán
d2ac8b7f43 applies hidden users styles commented 2015-08-19 16:22:24 +02:00
Alberto Garcia Cabeza
2eccd30eff Adds styles for deleted users, improves previous 2015-08-19 15:01:10 +02:00
kikito
b4c66133da Replaces comments by calls to user.methods 2015-08-19 12:10:08 +02:00
Alberto Garcia Cabeza
04db8112b4 Adds styles for associations comments 2015-08-19 11:53:35 +02:00
Alberto Garcia Cabeza
87d921b3c7 Adds styles for comments 2015-08-19 11:53:18 +02:00
Juanjo Bazán
74742d5f76 adds i18n to deleted comments 2015-08-17 14:08:59 +02:00
rgarcia
f31ed2940d adds moderation to comments and debates [#136] 2015-08-17 13:39:31 +02:00
David Gil
bf95e55345 more explicit and versatile usage of avatar_image, changing style option by a direct size - asuming we will always use square images 2015-08-14 21:15:59 +02:00