Commit Graph

21 Commits

Author SHA1 Message Date
evazion
054ac51d47 policies: remove current request from context.
This refactors Pundit policies to only rely on the current user, not on
the current user and the current HTTP request. In retrospect, it was a
bad idea to include the current request in the Pundit context. It bleeds
out everywhere and there are many contexts (in tests and models) where
we only have the current user, not the current request. The previous
commit got rid of the only two places where we used it.
2021-01-17 00:57:59 -06:00
evazion
20f8a26709 tests: fix rails 2.7 keyword parameter deprecation warnings. 2020-05-25 01:48:46 -05:00
evazion
83c2abf1ae delayed jobs: fix exception on index page. 2020-03-30 12:36:06 -05:00
evazion
b83c612246 pundit: convert delayed jobs to pundit. 2020-03-20 18:03:00 -05:00
BrokenEagle
3ab2c4c3ea Use optional parameter to set column class
- Fixes the extremely long class name on the post versions view
- Can now use one value instead of having to set th and td
- Added missing column classes on all tables
2020-01-13 21:21:13 +00:00
evazion
5c913d8ad1 table builder: fix various incorrect css classes.
Change calling convention to explicitly indicate whether the attributes
are for the <th> element or the <td> element. Fixes various cases where
the two were mixed up.

* Fix .col-expand classes not being set correctly on the /post_versions,
  /pool_versions, and /notes pages.

* Fix .updater and .updated-at classes not being set correctly on the
  /forum_topics page.

* Fix the name param being ignored (noticeable in the post count field
  on the /tags page).

* Don't pass empty string when column has no name.
2020-01-07 02:40:59 -06:00
BrokenEagle
043944e1dd Convert index tables to using table builder 2020-01-04 22:02:43 +00:00
evazion
f151285038 views: standardize page titles. 2019-08-24 22:55:35 -05:00
BrokenEagle
5cdd8d8f67 Standardize position of page title and secondary links
- Removed path specification for secondary links where unneeded
2017-12-28 10:20:27 -08:00
r888888888
91147bba88 fix nil error on delayed job index 2017-11-20 16:35:14 -08:00
r888888888
e8ff733b3c clean up stack trace on delayed jobs index 2017-11-17 14:42:48 -08:00
evazion
9c9bf28db4 /delayed_jobs: add run, cancel, retry, delete actions. 2017-05-05 11:33:10 -05:00
evazion
9404eeafa1 /delayed_jobs: reorganize columns; fix column sizes. 2017-05-05 11:33:10 -05:00
evazion
cbb15b3e81 /delayed_jobs: add '#c-delayed-jobs #a-index' wrapper divs. 2017-05-05 11:33:10 -05:00
Toks
12d63a7d88 fixes #1096 2013-09-17 11:31:11 -04:00
ghostrigger
98b8e6a3e6 fixes #1523 hopefully
added missing document title for delayed jobs
2013-05-04 15:38:28 +08:00
albert
5ec4452777 better formatting for delayed jobs 2013-03-15 13:29:07 -04:00
albert
e51631fbfa should solve all residual tag_query_limit bugs 2013-02-20 21:56:09 -05:00
albert
2af59642f6 clean up job listing, bug fixes 2013-02-17 23:16:56 -05:00
albert
3d5c47afe3 hide data in delayed job listing 2013-02-17 13:13:11 -05:00
albert
51ef3e46c2 added delayed job listing 2012-04-18 18:16:21 -04:00