Commit Graph

92 Commits

Author SHA1 Message Date
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
kikito
5903ebe857 merges master and fix conflicts 2015-09-12 19:54:15 +02:00
Alberto Garcia Cabeza
417757c4b0 Fixes add flags on mobile devices 2015-09-12 18:05:33 +02:00
Juanjo Bazán
48b3e8c450 removes commentable dependency from comment form 2015-09-12 14:12:37 +02:00
Juanjo Bazán
7b672d3ecb Merge pull request #462 from dgilperez/auto_linking
Adds autolinking for comments
2015-09-10 21:27:49 +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
kikito
43bdfb940e merges master and fixes conflicts 2015-09-10 17:47:40 +02:00
kikito
2d3015703d replaces constants by class methods + private functions. Fixes broken tests 2015-09-10 13:02:21 +02:00
Alberto Garcia Cabeza
a61c006f7f Replaces bullet for bull 2015-09-09 20:33:21 +02:00
kikito
8c9f189d75 merges master and fixes conflicts 2015-09-09 19:36:23 +02:00
kikito
ada03c8474 Adds max lengths in views 2015-09-09 18:34:26 +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
Juanjo Bazán
e4e1c9039f cache for comment/_form
uses info for commentable but without need for invalidation after commentable updates
2015-09-09 14:54:01 +02:00
rgarcia
13cf1d9449 removes all comments cache 2015-09-07 10:55:23 +02:00
kikito
601323b5a3 removes cache from comment form 2015-09-07 10:50:03 +02:00
Raimond Garcia
d27500b832 Merge pull request #384 from AyuntamientoMadrid/pending-filter-in-admin
Pending filters in admin
2015-09-06 22:38:17 +02:00
Juanjo Bazán
bf18da3faa adds cache for authors of debate/comment 2015-09-06 22:03:31 +02:00
Juanjo Bazán
e618c12344 removes weird char 2015-09-06 21:55:33 +02:00
Raimond Garcia
e560bdfc90 Merge pull request #377 from AyuntamientoMadrid/caching_debates
updates comment form cache
2015-09-06 14:23:24 +02:00
rgarcia
d8f8dc826b updates comment form cache 2015-09-06 14:22:46 +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
ea85059dbb fixes issue with flags on comments with children
Closes #318
2015-09-04 19:35:48 +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
Juanjo Bazán
5c10435064 disables voting on comments for not allowed users 2015-09-02 12:23:56 +02:00
kikito
005fd4c09a Replaces can? :flag/:unflag by a helper function 2015-09-01 10:34:46 +02:00
kikito
b872d9a46d fixes failing specs 2015-08-28 19:19:18 +02:00
kikito
c989607b50 Merge branch 'master' into hidden_comments 2015-08-28 18:53:44 +02:00
Juanjo Bazán
fc8687a707 adds comments labels per comment
fixes #265
2015-08-28 14:30:52 +02:00
Alberto Garcia Cabeza
413a034e23 Adds styles for deleted comments 2015-08-27 20:21:26 +02:00
kikito
909dfb4ce3 Several renamings
InappropiateFlag -> Flag
x.flag_as_inappropiate -> x.flag
x.undo_flag_as_inappropiate -> x.unflag
X.flagged_as_inappropiate -> x.flagged
flag-as-inappropiate-actions views & css -> flag-actions views & css
2015-08-27 10:48:49 +02:00
kikito
48ef4df0c3 Adds Comment#for_render 2015-08-26 19:41:42 +02:00
kikito
25c3c4d1f1 merges master and fix conflicts 2015-08-26 14:48:16 +02:00
kikito
015fe704e4 Fixes flagging specs by making them id-based instead of text-based 2015-08-26 13:14:42 +02:00
kikito
c183cf2cc6 merges master and fix conflicts 2015-08-25 19:31:25 +02:00
Juanjo Bazán
cfe583fbe6 adds cache to votes on Comments 2015-08-25 16:26:36 +02:00
Alberto Garcia Cabeza
8bdf03c50d Changes some test for moderation 2015-08-25 16:02:36 +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
kikito
36fb9b60b2 Use a js-class instead of an id for moderator-comment-actions 2015-08-24 18:35:59 +02:00
Juanjo Bazán
030fd49120 allows comment as moderator/administrator
Ref: #170
2015-08-24 18:17:04 +02:00