evazion
a7dc05ce63
Enable frozen string literals.
...
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00
evazion
07e23204b6
rubocop: fix various Rubocop warnings.
2021-06-17 04:17:53 -05:00
evazion
60ff2ae929
models: rename post/pool archives to post/pool versions.
2020-02-15 06:52:10 -06:00
evazion
576b4feb3b
views: convert mod dashboard + admin user edit page to simple form.
...
Fixes bug with the user level select dropdown on the mod dashboard page
missing the builder level.
2019-08-18 11:24:42 -05:00
Albert Yi
79ea6f7e6c
Add Docker and Travis config files to enable CI tests
...
Also fixes some Rails 6.0 deprecation warnings
2018-05-09 09:56:38 -07:00
evazion
45cecff1a6
Move with_timeout / without_timeout to ApplicationRecord.
2017-11-26 13:57:52 -06:00
evazion
d1d0fe9bc5
/moderator/dashboard: optimize sql queries
...
* Converts queries to use active record instead of raw sql. This ensures
that user objects are loaded by rails in the join, so that we
don't have to issue `User.find` calls to load users one-by-one.
* Use `.includes` to preload associations used in the view, to avoid
additional N+1 query problems (primarily, calls to link_to_user
also causing users to be loaded one-by-one).
2017-03-23 04:05:05 -05:00
evazion
2aa3f9ceba
/moderator/dashboard: fix exception when PostArchive isn't enabled.
...
NoMethodError exception raised
undefined method `each' for nil:NilClass
app/views/moderator/dashboards/_activity_tag.html.erb:10:in `_app_views_moderator_dashboards__activity_tag_html_erb__4366063041301266690_47304449138520'
app/views/moderator/dashboards/show.html.erb:10:in `_app_views_moderator_dashboards_show_html_erb___734721021521262965_47304462731220'
2017-03-21 17:17:19 -05:00
Albert Yi
fe9f31d871
remove timeout block
...
PostArchive isn't subject to statement timeouts so it isn't needed
2017-03-20 12:31:08 -07:00
evazion
8341752931
fixup! /moderator/dashboard: fix post version reference.
2017-03-19 17:02:39 -05:00
evazion
cebf592e20
/moderator/dashboard: fix post version reference.
2017-03-18 05:18:01 -05:00
Toks
e99f3f1747
fix dashboard max level
2013-05-12 11:53:02 -04:00
小太
cba839ba76
Kill trailing whitespace in ruby files
2013-03-19 23:10:10 +11:00
albert
a60eae695a
restyle mod dashboard
2013-02-23 18:50:00 -05:00
albert
3d9f5e20c6
remove db timeouts for mod report
2013-02-17 01:03:28 -05:00
albert
1515b6822f
fixes #328
2012-02-24 17:18:32 -05:00
albert
5158d1b274
fixes for upgrade schema script
2011-11-06 10:12:23 -05:00
albert
c8cb217e6c
fix for dashboard
2011-09-15 18:06:42 -04:00
albert
c8afd34d15
added ip addr search
2011-07-29 18:04:50 -04:00
albert
d0e8084f0f
implemented moderator dashboard queue
2011-07-22 17:34:43 -04:00
albert
58c3d2af13
fixing tests
2011-07-16 19:20:02 -04:00