Juanjo Bazán
113f9b32d7
Merge branch 'master' into polls
2017-01-19 16:51:19 +01:00
Juanjo Bazán
f102f9f753
adds Budget::Investment to valid commentable types
2017-01-10 13:30:30 +01:00
Juanjo Bazán
5ec12e4b5b
Merge branch 'master' into redux-polling
2016-12-27 18:22:06 +01:00
rgarcia
b104859da3
adds question comments
2016-11-16 19:41:52 +01:00
rgarcia
bb3c4c6399
adds consistency to ruby code style
...
Keep a blank line before and after private
Keep a blank line before and after protected
Remove extra empty line at class body end
Remove extra blank line
Add final newline
Use 2 (not 3) spaces for indentation
Use 2 (not 4) spaces for indentation
Remove space before comma
Add space after comma
Remove trailing whitespaces
Remove unnecessary spacing
Use snake_case for variable names
Do not use then for multi-line if
Remove unused block argument - i
Use the new Ruby 1.9 hash syntax
Remove unused assignment to variable
Indent when as deep as case
Align attributes
Align end with def
2016-11-15 11:18:43 +01:00
palomahnhp
d786f9edea
adds the maximum length of the comments to settings
2016-03-03 15:20:29 +01:00
Juanjo Bazán
c258a4f3b4
adds scope for only normal user comments
2015-11-12 12:15:36 +01:00
kikito
73c306a673
Adds 3 orders for comments: most_voted, newest, oldest
2015-11-02 14:01:55 +01:00
kikito
0cf592af71
Fixes two issues in comment_tree
...
* The descendants list for a comment was not being built correctly
* The root comments must be ordered “newest first”, but their
descendants must be ordered “newest last”
2015-10-30 20:06:36 +01:00
kikito
a7daf0108b
sorts comments by creation date after sorting by confidence_score
2015-10-28 17:34:02 +01:00
kikito
f5d9ea4357
adds confidence_score capacity to the comment model
2015-10-28 16:25:35 +01:00
Juanjo Bazán
b979f871dd
removes unused method
2015-09-24 12:42:21 +02:00
Juanjo Bazán
23eba622a2
fix bug when blocking users
2015-09-22 16:30:43 +02:00
kikito
343025872b
changes comment moderation to be similar to proposals moderation
2015-09-22 14:20:37 +02:00
kikito
793bc52d00
recalculates comments_count when restoring in addition to when hiding a comment
2015-09-18 11:00:18 +02:00
Juanjo Bazán
df72ece3c4
[admin/comments] remove comments of blocked users
2015-09-17 13:54:15 +02:00
kikito
231665020e
Allows commenting Proposals in Comment validation
2015-09-12 14:05:24 +02:00
kikito
d57d538f3b
Extracts Flammable module from comment & debate
2015-09-12 14:05:24 +02:00
David Gil
8ed434cc8b
uses more rails-like syntax in scopes
2015-09-10 18:44:33 +02:00
kikito
2d3015703d
replaces constants by class methods + private functions. Fixes broken tests
2015-09-10 13:02:21 +02:00
kikito
8c9f189d75
merges master and fixes conflicts
2015-09-09 19:36:23 +02:00
kikito
5e7a5b57de
Adds max lengths and validations in models
2015-09-09 18:32:36 +02:00
Juanjo Bazán
92bff4b4c3
adds :touch to ancestry
...
now nested comments caches invalidates automagically
2015-09-09 14:46:09 +02:00
rgarcia
0bca1c5b95
upgrades ruby hash syntax
2015-09-05 22:02:51 +02:00
kikito
08c31c5985
calls all the sorting scopes the same way
2015-09-04 14:17:59 +02:00
kikito
9bb63e9b32
Makes comments increase the hot_score
2015-09-04 14:04:45 +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
kikito
62415991c0
Fixes an issue found on comments using the dev_seed
2015-09-01 20:11:45 +02:00
kikito
b872d9a46d
fixes failing specs
2015-08-28 19:19:18 +02:00
kikito
a5e48693fe
Implements admin interface for Comments incl. filters
2015-08-28 10:56:43 +02:00
kikito
cd982768f2
Renames the "archive" action to "ignore_flag" (+)
...
* archived_at -> ignored_flag_at
* archived? -> ignored_flag?
* archive -> ignore_flag
* pending -> pending_flag_review
* archived (scope) -> with_ignored_flag
* I18n changes
2015-08-27 11:43:58 +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
Raimond Garcia
4bd5ff0116
Merge pull request #253 from AyuntamientoMadrid/counter-cache-comments
...
Counter cache column for Debate's comments
2015-08-26 20:05:57 +02:00
kikito
48ef4df0c3
Adds Comment#for_render
2015-08-26 19:41:42 +02:00
Juanjo Bazán
dacbe27fda
uses cache counter for debate's comments
2015-08-26 17:26:17 +02:00
kikito
25c3c4d1f1
merges master and fix conflicts
2015-08-26 14:48:16 +02:00
kikito
6110284356
removes all references to "review" (replaced by "archive")
2015-08-26 13:48:57 +02:00
Juanjo Bazán
cfe583fbe6
adds cache to votes on Comments
2015-08-25 16:26:36 +02:00
Alberto Garcia Cabeza
8037a82fef
Adds styles to moderation admin
2015-08-25 15:19:54 +02:00
Juanjo Bazán
030fd49120
allows comment as moderator/administrator
...
Ref: #170
2015-08-24 18:17:04 +02:00
Juanjo Bazán
57228636c4
adds as_moderator/administrator methods to comment
2015-08-24 17:47:09 +02:00
kikito
169809496e
Adds filters & refactors to comment moderation
2015-08-22 20:28:48 +02:00
kikito
4f0c49f921
Changes moderation/comments to allow for different commentable_types
2015-08-22 09:15:20 +02:00
kikito
2c49d30952
Adds review-related methods to comment & debate
2015-08-21 21:58:48 +02:00
kikito
ee881230ba
merges master and fixes conflicts
2015-08-20 18:50:10 +02:00
kikito
246145e4cb
adds abilities for regular users
2015-08-20 18:45:32 +02:00
Juanjo Bazán
896fe41db0
favors with_hidden
2015-08-20 17:52:59 +02:00
kikito
8944327405
adds InappropiateFlag model with relations and specs
2015-08-20 16:03:00 +02:00
Juanjo Bazán
b340d7741a
adds hiding users by moderators
2015-08-20 13:16:37 +02:00