rgarcia
6a09e6548d
reverts - stats with delayed jobs
2015-09-09 19:17:13 +02:00
rgarcia
e555126331
tracks debate visits from the controller
2015-09-09 14:41:19 +02:00
rgarcia
d843690586
takes into account precision for confidence score
2015-09-08 15:44:04 +02:00
Enrique García
db969b0380
Merge pull request #429 from AyuntamientoMadrid/confidence_score
...
Confidence score
2015-09-08 15:00:51 +02:00
rgarcia
96ae7575b1
adds confidence_score to debates
2015-09-08 14:40:14 +02:00
kikito
eac0928d0f
changes on the hot-score calculation
2015-09-08 14:18:44 +02:00
rgarcia
bb5e18e609
refactors conflictive debates
2015-09-07 17:43:48 +02:00
rgarcia
4ce95e2735
adds conflictive debates
2015-09-07 16:58:00 +02:00
Juanjo Bazán
26a2a67a71
refactors debate's tags related utility methods
...
tags are already loaded, using them instead of extracting them again for each debate saves 50 query per index (2 query per debate in the page)
2015-09-06 22:51:34 +02:00
rgarcia
0bca1c5b95
upgrades ruby hash syntax
2015-09-05 22:02:51 +02:00
Juanjo Bazán
771f44c22b
adds self.search to Debate
2015-09-05 15:05:56 +02:00
Juanjo Bazán
0a33a64c93
typo
2015-09-04 23:22:16 +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
kikito
83ebbb14b1
Refactors hot_score calculations
2015-09-04 13:59:30 +02:00
kikito
fba4f1fade
Adds initial hot score implementation for debates
2015-09-04 12:34:17 +02:00
kikito
3012f2ffcd
Removes reorder in debate (no default order)
2015-09-04 11:54:19 +02:00
kikito
134f38a38f
Removes debates default order
2015-09-04 11:51:21 +02:00
kikito
7c3ca55de1
Adds the default score selector/controller. Refactors debates specs
2015-09-04 11:50:07 +02:00
Juanjo Bazán
559b60e63f
adds random order to debates' index
2015-09-03 18:50:19 +02:00
Juanjo Bazán
dbfa35c444
adds 'most commented' order to debates
2015-09-03 18:31:16 +02:00
Juanjo Bazán
cd3806476f
removes 'most voted' order from debates
2015-09-03 18:20:12 +02:00
Juanjo Bazán
bcb1f2ba72
adds order by score to debates
2015-09-03 18:13:48 +02:00
Juanjo Bazán
358028c3e6
Fixes conflicts. Merge branch 'master' into ancestry
2015-09-03 16:37:28 +02:00
kikito
e0f8f8d8de
Removes Debate.search & uses Debate.tagged_by when appropriate
...
Using `params` was wrong here because if given an inexistent tag,
@tag_filter was nil but the debates were still filtered by it (so the
listing and what the page title said were different)
2015-09-03 11:17:21 +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
274ddb2589
changes rules for allowing debate votes
...
first 100 votes are allowed for unverified users
2015-09-02 13:40:38 +02:00
Juanjo Bazán
872a23443b
updates anonymous counter in debate when voted
...
refactors to move all related code to Debate model
2015-09-01 17:49:02 +02:00
Juanjo Bazán
bbf96259fc
adds controller check for anonymous votes
2015-09-01 17:49:02 +02:00
Juanjo Bazán
2e5b5bccb5
adds methods to decide if a user can vote a debate
2015-09-01 17:49:01 +02:00
kikito
76c2f2f021
Merge branch 'master' into flag-renaming
2015-08-27 19:06:29 +02:00
kikito
fb9d3097cc
Finishes admin interface for debates
2015-08-27 19:05:27 +02:00
Marko Lovic
b6df3be8c0
Change Debate.sort_by method for individual scopes
2015-08-27 15:24:59 +02:00
Marko Lovic
6f32801a88
Change names of debate order filters
...
* 'news' to 'created_at'
* 'votes' to 'total_votes'
* 'rated' to 'likes'
2015-08-27 15:24:59 +02:00
Marko Lovic
2d48966de3
Change variable name and references from "filter" to "order"
2015-08-27 15:24:59 +02:00
Marko Lovic
ccaca54816
Add filters to specify order of debates#index
2015-08-27 15:24:59 +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
kikito
9112cacde4
Adds Debate#for_render
2015-08-26 19:40:37 +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
6ead1a2c1d
adds cache to votes on Debates
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
kikito
5eeaa7d189
implements /moderation/debates
2015-08-22 23:20:55 +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
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
Juanjo Bazán
10d7e9effe
changes to unambiguous order declaration.
...
Specified as a string referred table of 'created_at' was ambiguous, index failed when filtering by tag
2015-08-19 16:32:39 +02:00