Commit Graph

13 Commits

Author SHA1 Message Date
evazion
33f2725ae7 Fix #4112: Colorize tags in DText.
DText is processed in three phases: a preprocessing phase, the regular
parsing phases, and a postprocessing phase.

In the preprocessing phase we extract all the wiki links from all the
dtext messages on the page (more precisely, we do this in forum threads
and on comment pages, because these are the main places with lots of
dtext). This is so we can lookup all the tags and wiki pages in one
query, which is necessary because in the worst case (in certain forum
threads and in certain list_of_* wiki pages) there can be hundreds of
tags per page.

In the postprocessing phase we fixup the html generated by the ragel
parser to add CSS classes to wiki links. We do this in a postprocessing
step because it's easier than doing it in the ragel parser itself.
2019-10-11 18:45:55 -05:00
evazion
75232c0cd4 comments.js: clean up unnecessary code.
* Remove Dtext import (no longer used).
* Remove create.js.erb template (not used).
* Don't hide `#hidden-comments-notice-for-...` (didn't exist).
2018-09-29 20:42:38 -05:00
evazion
130570aa33 comments.js: fix thresholded comments.
* Restore behavior of thresholded comments being greyed out (lost in 6fa0ae2cf).

* Set the `below-threshold` class for thresholded comments in the html instead of in javascript.

* Remove `include_below_threshold` param; it was always true when clicking "Show all comments".
2018-08-09 14:45:26 -05:00
evazion
abe8b9c071 Fix "Show all comments" link.
The second argument to `trigger` is supposed to be an array.

ref: https://danbooru.donmai.us/forum_topics/9127?page=250#forum_post_149379
2018-08-08 23:44:35 -05:00
Albert Yi
6fa0ae2cf1 Migrate assets to use Webpacker 2018-07-27 15:24:05 -07:00
Toks
413ac0a491 Fix various bugs when clicking "Show all comments" 2014-03-21 16:25:58 -04:00
Toks
f1a4d816e7 fixes #2109 2014-03-13 14:04:26 -04:00
Kevin Xiwei Zheng
35aab77c5c Fix superfluous "unvote" links (#1819) 2013-07-01 21:28:58 -04:00
Toks
0ad06e03dd fix "Show all comments" opening editing forms 2013-06-18 20:50:45 -04:00
Toks
35915f9ad2 fixes #1380 2013-04-20 10:52:57 -04:00
albert
c478eb33b6 * Additional effects
* Fixed flash pngs
* Fixed dmail search links
2011-11-03 17:42:40 -04:00
albert
3395c97c65 fixed comment hiding 2011-09-11 16:40:58 -04:00
albert
7483ad2e28 comment threshold link now hitting the correct action 2011-09-11 15:15:16 -04:00