Commit graph

8370 commits

Author SHA1 Message Date
Andy Allan
c71fd544e0 Avoid sending a commit value from from the search button 2018-03-28 11:05:46 +08:00
Andy Allan
918a382cad Use options_for_select to set the selected items in the search form 2018-03-28 11:05:46 +08:00
Andy Allan
32d1afbb18 Create a report_link helper, and use text instead of a flag icon 2018-03-28 11:05:46 +08:00
Andy Allan
ee1a8637d3 Convert issue status to an enum 2018-03-21 12:05:08 +08:00
Andy Allan
facce9d0bb Refactor set_default_assigned_role to be more easily read. 2018-03-14 17:35:58 +08:00
Andy Allan
696bbd169b Redirect to the reportable after creating a report. 2018-03-14 17:24:41 +08:00
Andy Allan
2fc70be734 Add a redirect and error message if user ends up trying to report something without the correct parameters 2018-03-14 17:09:57 +08:00
Andy Allan
85bf9adb91 Handle issue_types properly if current_user is both and admin and a moderator 2018-03-14 16:47:45 +08:00
Andy Allan
283cffdfdb Handle current_user being both an admin and a moderator for building user list 2018-03-14 16:47:45 +08:00
Andy Allan
6bcffbf499 Unwind the set_issues method 2018-03-14 16:34:19 +08:00
Andy Allan
e7e12a38c6 Create a more accurate permissions check message 2018-03-14 16:29:47 +08:00
Andy Allan
5310c7000c Remove cascading deletes, add another foreign key, and switch index around. 2018-03-14 16:15:39 +08:00
Andy Allan
3e5a4a14df Ensure reports have an issue id and a user id 2018-03-14 15:36:46 +08:00
Andy Allan
5e7abf67fb Remove nonsense has_one relationship 2018-03-14 15:20:04 +08:00
Andy Allan
c1bb412033 Fix class name 2018-03-14 15:18:47 +08:00
Andy Allan
870a497f94 Remove unnecessary div 2018-03-14 15:16:51 +08:00
Andy Allan
04901868fa Apply list styling to list of related reports 2018-03-14 15:14:35 +08:00
Andy Allan
e41751fb32 Use th instead of td and b 2018-03-14 14:56:06 +08:00
Andy Allan
9e46754c88 User user_path to generate links to users 2018-03-14 14:21:43 +08:00
Andy Allan
05b871db99 Avoid wrapping in the reports count column 2018-03-14 13:06:32 +08:00
Andy Allan
aaaeb211de Combine last_updated_by and last_updated_at columns on issues index
Also change to use time as a distance, and link to the user.
2018-03-14 12:51:22 +08:00
Andy Allan
e44f856b53 Combine category and reporting user 2018-03-14 12:51:22 +08:00
Andy Allan
13e7a4b0e9 Increase padding around report disclaimer 2018-03-14 12:51:22 +08:00
Andy Allan
e85110957a Remove vandalism as an option for reporting notes. 2018-03-14 12:51:22 +08:00
Andy Allan
59ca99d17c Use lower case to refer to reportable objects 2018-03-14 12:13:43 +08:00
Andy Allan
36970bcf50 Use underscore versions of model names for translation keys. 2018-03-14 12:12:24 +08:00
Andy Allan
0737c4f169 Fix grammar 2018-03-14 11:58:55 +08:00
Andy Allan
508bb04f21 Remove unused code 2018-03-05 10:19:11 +08:00
Andy Allan
04a87bb121 Rubocop fixes 2018-02-28 16:23:25 +08:00
Andy Allan
1c04af415e Update tests for new link text 2018-02-28 16:10:30 +08:00
Andy Allan
a20e28809f Merge branch 'master' into moderation 2018-02-28 15:55:28 +08:00
Andy Allan
424b6ef1cf Merge branch 'master' into moderation 2018-02-28 15:46:25 +08:00
Andy Allan
7821bf48ad Reposition the note and user report flags 2018-02-28 15:43:22 +08:00
Andy Allan
8587c2a02b Rework the new report form text and layout 2018-02-28 15:27:01 +08:00
Andy Allan
05ae0755a4 Rearrange issues table and combine some columns. 2018-02-28 14:56:47 +08:00
Andy Allan
3006ce9713 Remove reporting of changesets 2018-02-28 14:39:40 +08:00
Andy Allan
80a241f798 Allow reporting of anonymous notes 2018-02-28 14:26:40 +08:00
Andy Allan
3bd06529c7 Refactor reportable_url to just return the url
Allows removal of the largely duplicate instance_url helper (which
returned the same urls, but with a hard-coded title).
2018-02-28 13:30:17 +08:00
Andy Allan
2a89bf2e6c Refactor reportable_url helper to focus on just the title choices. 2018-02-28 11:53:43 +08:00
Andy Allan
38efcc2f33 Remove the report_type helper and use the model_name.human to look up translations. 2018-02-28 11:40:00 +08:00
Andy Allan
b955a7e78e Link to diary comments using anchors, rather than showing them alone
Neither way is perfect, but this is less surprising than seeing a diary
entry with only one comment visible.
2018-02-28 11:24:00 +08:00
Andy Allan
75e178e6b8 Allow the status to be translated in the table of results 2018-02-28 10:50:27 +08:00
Andy Allan
0366c2eabb Rework status search to avoid relying on the enum ids, and also to allow translations 2018-02-28 10:44:50 +08:00
Tom Hughes
4e138f6bf3 Merge remote-tracking branch 'upstream/pull/1772' 2018-02-27 20:38:53 +00:00
Holger Jeromin
f9745fd2b1
Move abbr style from border to text-decoration 2018-02-27 21:25:03 +01:00
Tom Hughes
c819c8114d Merge remote-tracking branch 'upstream/pull/1769' 2018-02-27 20:22:15 +00:00
Tom Hughes
c858d7d53a Remove underline from abbr elements
Fixes #1771
2018-02-27 20:19:52 +00:00
Aaron Lidman
b22cb7541d Trace everywhere in potlatch too 2018-02-26 22:42:29 -08:00
Aaron Lidman
446dbcd514 Use trace consistently, closes #1644 2018-02-26 22:42:03 -08:00
Tom Hughes
81241b3083 Exclude hidden diary entries and comments from spam scoring 2018-02-26 22:35:06 +00:00