Commit Graph

29 Commits

Author SHA1 Message Date
nonamethanks
ea76a889db Add ability to mark tags as deprecated
* Deprecated tags can't be added to posts, but existing deprecated tags
  in a post won't be removed
* Only empty tags can be marked as deprecated manually
* No tags can be manually undeprecated
** These limits don't apply to admins
* Deprecating or undeprecating a tag will create a new mod action to
  prevent people from going rogue
* Added deprecate/undeprecate commands for BURs
* Deprecating a tag via BUR removes all implications to and from it as well
2022-04-08 09:07:14 +02:00
evazion
cde76e66f6 forms: fix form validation error messages.
* Fix it so that all edit forms show an error banner if the form
  has validation errors. Previously forms had to manually call
  `error_messages_for`, which not all forms did.

* Fix it so that the full validation error message is shown next to each
  input attribute that had errors. Also update the styling of these
  error messages to look better.
2021-02-22 02:38:26 -06:00
evazion
b8d95ace64 css: adjust form input box sizes.
Adjust input boxes to fit the screen better on mobile, and to use
consistent sizes throughout the site (no ad-hoc overrides to make
certain input boxes a bit bigger in random places).

On desktop, this makes most input boxes a bit taller and narrower. On
mobile, it makes input boxes the full width of the screen.

This most notably affects the tag edit box, the comment and forum
post box, the wiki page edit box, and the commentary box.
2021-02-16 09:28:38 -06:00
evazion
883856d4af simple form: refactor DText form fields to use SimpleForm.
* Refactors DText form fields to use a custom SimpleForm input instead
  of manually generated html. This fixes it so that DText fields use the
  same markup as normal SimpleForm fields, which lets us apply browser
  maxlength validations to DText input fields.

* Fixes autocomplete for @-mentions only working in comments and forum posts.
  Now @-mention autocomplete works in all DText fields, including dmails.
  Known bug: it applies in artist commentary fields when it shouldn't.
2020-06-25 16:28:09 -05:00
evazion
abacc8ebb1 views: convert helpers to partials. 2020-01-11 20:01:14 -06:00
evazion
c86c61c9a4 Fix #4162: Remove browser autocomplete from most inputs. 2020-01-10 16:08:34 -06:00
evazion
70b6525e69 wiki pages: fix error when force renaming wiki page.
Bug: force renaming a wiki page fails. Fix: use the wiki page id instead
of the title in the update action.
2019-11-06 21:56:21 -06:00
evazion
960e5d4ae0 views: factor out sidebar layout template.
* Factor out common sidebar layout template.
* Convert wiki pages and posts to use this template.
* Add data-layout attribute to <body> element indicating the current layout.
2019-09-28 17:50:10 -05:00
evazion
e98db8a5b8 css: refactor notice box css.
* Remove .ui-corner-all, .ui-state-highlight, .ui-state-error classes
  from notice boxes.
* Use .notice, .notice-info, .notice-error classes instead.
* Replace <p> elements in notices with <div>'s so that we don't have to
  work around the `margin-bottom: 1em` from <p> elements.
* Replace <h1> elements in notices with <h2>.
* Standardize info notices to use the same shade of light yellow in the
  light theme.
2019-09-22 15:09:45 -05:00
evazion
f151285038 views: standardize page titles. 2019-08-24 22:55:35 -05:00
r888888888
c4503e9971 Revert "#2234 comment out post previews"
This reverts commit 4281d1a48f.
2017-06-29 13:15:02 -07:00
Toks
4281d1a48f #2234 comment out post previews 2014-10-05 16:40:13 -04:00
Toks
f972ee53c0 enhance show or new wpages; move wpage preview code to helper 2013-05-11 08:31:03 -04:00
Toks
4fe7437b9c simplify alias/implication list code for wiki pages 2013-05-04 19:09:42 -04:00
ToksT
2ad34653f7 consistency fix 2013-05-04 19:32:56 -03:00
Toks
b2a43bb028 fixes #1179 2013-04-11 12:14:47 -04:00
Toks
d3dbca4ccc fixes #1243 2013-04-09 13:48:47 -04:00
Toks
80bfb70968 fixes #1122; fix typo in fix for #725 2013-03-28 19:36:13 -04:00
albert
87edfd52b1 fixes #975 2013-03-22 10:24:01 -07:00
小太
1a03a86592 Kill trailing whitespace in erb files 2013-03-19 23:11:58 +11:00
albert
c59afe4726 fixes #944 2013-03-18 22:02:03 -07:00
albert
34ae712be0 fixed titles 2011-10-23 16:55:57 -04:00
albert
5cf122c2e0 changes 2011-06-29 12:47:40 -04:00
albert
4717726217 wiki page, comment views 2011-03-13 03:54:32 -04:00
albert
851d1fa26d style tweaks 2011-03-11 16:35:53 -05:00
albert
ccb2def7d7 implemented javascripts for wiki pages 2011-03-11 16:29:24 -05:00
albert
81aec6b950 wiki pages 2011-03-10 18:35:19 -05:00
albert
9e7efbd295 stubbed in view code from old danbooru; only janitors can lock a wiki page 2011-02-28 14:18:39 -05:00
albert
099c75f9b6 wiki page func test 2011-02-02 16:11:26 -05:00