Commit Graph

1151 Commits

Author SHA1 Message Date
evazion
55512130e1 css: set text fields in dialogs to 100% width.
* Fixes the flag reason field being too small in the flag dialog
* Fixes the source field being too small in the post replacement dialog.
2017-06-22 14:19:28 -05:00
Albert Yi
954666893f Merge pull request #3147 from evazion/fix-1908
Fix #1908: Allow E shortcut to work on upload page.
2017-06-13 15:40:29 -07:00
evazion
a1c9f34027 Fix #1908: Allow E shortcut to work on upload page. 2017-06-12 20:28:56 -05:00
r888888888
d9ea925f4e add support for searching for dup-related flags 2017-06-12 15:25:07 -07:00
evazion
5f9fce7343 Fix #3139: XSS in Related Tags javascript. 2017-06-09 20:40:07 -05:00
evazion
42aed84975 /posts/$id: fix artcomm dialog to use dtext-ified commentary. 2017-06-09 12:29:04 -05:00
Albert Yi
f44f5d1fdb Merge pull request #3126 from evazion/feat-queue-pools
Fix #3125: Show pools in mod queue
2017-06-08 14:13:44 -07:00
Albert Yi
1548efbbae Merge pull request #3128 from evazion/fix-inline-blacklists
Fix #3121: No Blacklist Box on the various controllers
2017-06-08 14:05:56 -07:00
evazion
2929857682 blacklists: fix inline blacklist css to work on any page. 2017-06-07 23:31:34 -05:00
evazion
151b276fb9 modqueue: display pools for each post (fix #3125). 2017-06-07 22:45:01 -05:00
evazion
fed23c0baa fetch source data: fix gallery warning for non-pixiv galleries. 2017-06-06 23:03:07 -05:00
Albert Yi
eea5fbaab3 Merge pull request #3112 from evazion/fix-edit-mode
Fix height of tag edit box in edit mode.
2017-06-05 12:03:37 -07:00
Albert Yi
494ad99aac Merge pull request #3111 from evazion/fix-3099
Fix #3099: NilClass error for approval API request
2017-06-05 12:03:18 -07:00
evazion
9b31e16627 mode menu: fix height of tag edit box in edit mode.
Bug: in edit mode, each time you click a thumbnail the height of the tag
edit box increases by 4px.

This is due to `scrollHeight` including vertical padding. Fix it to a)
ignore this padding, and b) ensure the min height is at least 80px.
2017-06-04 14:02:46 -05:00
evazion
fdf8e7d5d7 Fix mode menu 'approve' option.
* Fix routing error in respond_with (didn't use /moderator namespace).

* Fix /moderator/posts/approvals.json response to return full
  PostApproval object, not just a success/failure message.

* Simplify the javascript a bit (use $.post instead of $.ajax).
2017-06-04 12:14:35 -05:00
evazion
3880fbe13e /posts/$id: fix shift+O to approve shortcut.
`Danbooru.Post.approve` is used for approving posts via the mode menu.
It doesn't hide all the notices or the approve/disapprove/flag buttons.
Click the link instead to hide those things.

Click the #quick-mod-approve link instead of #approve because #approve
prompts for confirmation.
2017-06-04 10:07:26 -05:00
BrokenEagle
6f593de46d Resize images for mobile layout 2017-06-03 12:52:27 -07:00
r888888888
3a49b3c54b include normalized artist url in artist json 2017-05-30 12:01:18 -07:00
evazion
3ecee91861 Fix #3061: Add "General" button for related tags on new/edit posts. 2017-05-26 12:49:59 -05:00
Albert Yi
eef1e686d8 Merge pull request #3067 from evazion/fix-3065
Fix #3065: <div> id incorrect for certain controllers
2017-05-22 12:15:47 -07:00
evazion
52e289e990 /static/terms_of_service: fix page wrapper ids. 2017-05-22 13:19:18 -05:00
evazion
d5b9b7162c /user_upgrades/new: fix page wrapper id.
* Move related css to user_upgrades.scss.
* Delete users/upgrade_information.html.erb as it is unused.
2017-05-22 13:07:31 -05:00
evazion
9b613157ae Add data attributes for CurrentUser's privileges to <body> tag (fix #3073). 2017-05-21 12:31:28 -05:00
evazion
9bf85ee2b3 Factor out <ins>/<del> css from #c-post-versions to .diff-list. 2017-05-20 12:07:47 -05:00
evazion
6475b98c46 /posts/$id/events: change page wrapper id to #c-post-events. 2017-05-20 08:09:54 -05:00
evazion
d46aa89159 /wiki_page_versions: change page wrapper id to #c-wiki-page-versions.
Changes the wrapper id to #c-wiki-page-versions and moves the
corresponding css from wiki_pages.scss to wiki_page_versions.scss.
2017-05-19 13:40:24 -05:00
evazion
c68e68f3c2 /uploads/new: add show/hide commentary toggle button. 2017-05-13 00:18:52 -05:00
Albert Yi
dc02dcf0e0 Merge pull request #3015 from evazion/feat-replace-images
Fix #2949: Sample image replacement ability
2017-05-12 17:11:29 -07:00
r888888888
5ad7f1af91 cache artist domains, show artist domains in wiki excerpt on post listing 2017-05-12 14:50:37 -07:00
evazion
7a656f790d /uploads/new: autopopulate commentary from /source.json. 2017-05-10 18:01:52 -05:00
Albert Yi
64311c83e4 Merge pull request #3028 from evazion/fix-flag-borders
Change flag borders from red to blue for non-approvers.
2017-05-08 13:05:54 -07:00
evazion
c1fa656bd2 posts: change flag borders from red to blue for non-approvers. 2017-05-04 17:40:17 -05:00
evazion
7ade3b6831 Fix #2352: return raw usernames in API instead of pretty names. 2017-05-03 22:16:38 -05:00
evazion
85f6590b1a responsive layout: fix <input> sizes and styling. 2017-05-02 22:30:56 -05:00
evazion
352a3e065f responsive layout: fix dropdown nav menu overlapping main content.
The culprit is `float: right;` but none of this other stuff is needed.
2017-05-02 22:30:56 -05:00
evazion
4e841c4ea5 post replacement: add "Replace Image" dialog to post sidebar. 2017-05-02 20:41:19 -05:00
r888888888
62c9beafc2 fixes #2993: Artist URL breakdown 2017-05-01 15:48:04 -07:00
Albert Yi
522ee8b303 Merge pull request #3004 from evazion/fix-responsive-taglist
Fix tag list for responsive layout.
2017-05-01 14:51:53 -07:00
r888888888
48e9856f37 fixes #3007: Eliminate Janitor role 2017-05-01 14:38:30 -07:00
evazion
e8b9361226 notes: display error message when note saving fails. 2017-04-28 21:37:14 -05:00
evazion
3eef8a62cc Remove unused css. 2017-04-28 15:08:07 -05:00
evazion
7aae76d80a responsive layout: move sidebars beneath main content.
Incidentally fixes bug with notes being mispositioned on top of the
sidebar because the sidebar was declared as float: left.
2017-04-28 15:05:46 -05:00
Albert Yi
9f19e2b78f Merge pull request #3001 from evazion/feat-unfav-hotkey
/posts: add shift+F to unfavorite hotkey.
2017-04-26 13:55:56 -07:00
Albert Yi
41b245d19d Merge pull request #2998 from evazion/fix-quote-stripping
Fix [quote] stripping for comments, forum post replies.
2017-04-26 12:43:30 -07:00
r888888888
b7f207180c eliminate responsive tag list 2017-04-26 12:26:51 -07:00
evazion
59a179fa15 /posts: add shift+F to unfavorite hotkey. 2017-04-25 01:50:14 -05:00
evazion
869f1610fc comments: use server-side quote-stripping instead of reimplementing in js. 2017-04-24 21:15:47 -05:00
evazion
4631262374 Fix broken tag autocomplete on multiple pages.
Mark all tag <input>s with a `data-autocomplete` attribute, instead of
hardcoding a list of html IDs to autocomplete in javascript.

This way should be less error prone. It fixes autocomplete in several places:

* Autocomplete for the search box on /posts didn't work in the
  responsive layout. This was because /posts has two search boxes that
  both have the id `tags`: one in the normal sidebar, and one in the
  responsive tag list. $("#tags") only initialized autocomplete on the
  first one.

* Autocomplete didn't work on the aliases or implications pages. This
  was due to selecting the wrong html ids.
2017-04-22 15:24:03 -05:00
Albert Yi
ecf00260c3 Merge pull request #2982 from evazion/fix-ss-dropdown
Fix saved search dropdown on post show page.
2017-04-22 01:04:47 -07:00
evazion
f1552539f7 notes: allow <ruby> tags for marking up furigana. 2017-04-21 14:31:05 -05:00