summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
AgeCommit message (Collapse)AuthorFilesLines
2018-11-07Fix "make" after removal of tagops.jsYorhel1-1/+0
2018-11-04JS-less tag visibility toggleszx141-17/+38
2018-10-28Code style: Keep the HTML structure explicit and indentation correctYorhel1-5/+3
2018-10-28Add JS-less NSFW screenshot togglezx141-4/+9
(cherry picked from commit 6446d7d185543440b97be009fdf2a1f0c379b26f)
2018-10-27VNPage: Hide vote dropdown when nothing has been released yetYorhel1-3/+9
This is a lazy implementation - it doesn't fully prevent voting on unreleased VNs, but it makes it much harder to do so by accident. Fixes #5
2018-10-23Add JS-less NSFW togglezx141-10/+17
2018-10-02DB: Convert resolution into an enumYorhel1-9/+5
Been wanting to do this for a long time - using an integer index into an array that changes once in a while is way too fragile. Doubly so when said indices are also used in filters and URLs that can't be updated every time a new resolution is added.
2018-10-01Lower the average vote requirement for tag spoilers a bitYorhel1-1/+2
https://vndb.org/t950.512
2018-06-19Add uncensored iconYorhel1-0/+2
Icon created by fuukanou: https://vndb.org/t10665.49 File size reduced a bit further by removing metadata and using scour Closes #3
2018-03-27Add platform icons to VN screenshot listingYorhel1-0/+1
https://vndb.org/t950.416
2018-02-09Increase VN page staff/cast cutoff thing to 200pxYorhel1-2/+2
https://vndb.org/t950.410
2018-01-12Truly unique names for release icons and pushed those classes to the ↵TigerShark1-2/+2
inmediate container <abbr>.
2018-01-06Release filters: Fix handling of PC98 resolution iconYorhel1-0/+2
https://vndb.org/t9992.16
2018-01-06Add bb2text() and use it for release notes & open graph tagsYorhel1-5/+2
2018-01-05Fix static file URL for release iconsYorhel1-1/+1
2018-01-05Code style changes to release icons codeYorhel1-63/+55
These are just style consistency changes, functionally equivalent.
2018-01-05Various fixes to the release icons featureYorhel1-3/+6
It's been a while since I had static/f/ in git, so I had to adjust .gitignore a bit. The CSS changes are purely opinion, but it does integrate better with the existing layout. Everything else are bug fixes.
2018-01-05Add info icons for each release in vn page.TigerShark1-1/+64
2017-03-26Multi::RG: Remove unofficial relations from graph if #vns > 30Yorhel1-0/+1
This makes the relation graphs useful again for several large (mostly) independent graphs that are sometimes linked together by unofficial relations. e.g. https://vndb.org/t8985
2017-01-25Disable links to AnimeNFO for the momentYorhel1-4/+5
https://vndb.org/t2520.210
2017-01-19Add Open Graph tags for the main page and vrspcflan1-1/+12
2016-10-16Support more than 100 characters per VNYorhel1-1/+1
2016-10-16VNPage: Add gender icons to character summaryYorhel1-0/+1
2016-02-12Minor fixes / behaviour reverts related to the removal of L10NYorhel1-2/+2
- Fix mouse-over text of language flag on homepage - Capitalize release types in edit form - Use plural form of character roles on VN page listing
2016-01-23L10N: Intern all VNDB::Handler::* stuffYorhel1-112/+110
Most of these replacements were automated. This ended up being less work than I had anticipated. I also fixed a few minor bugs along the way, but probably introduced more than I fixed.
2016-01-20L10N: Intern all VNDB::Util::* stuffYorhel1-15/+15
With some related edits in other parts of the code, mostly due to interface changes to htmlRevision() and htmlFormError(). Trivial replacements were automated by a super awesome script.
2016-01-19Move some VNDB::L10N stuff to VNDB::Func + intern VNDB::FuncYorhel1-4/+3
2016-01-17L10N: Intern blood_types/genders/(char|staff)_roles/discussion_boardsYorhel1-8/+8
I definitely needed the Tie::IxHash thing for these.
2016-01-17Use Tie::IxHash for some global.pl listsYorhel1-3/+3
This removes the reliance on sort() to provide meaningful ordering (the keys aren't always good for ordering) and removes the 'order' hack used for (vn|prod)_relations.
2016-01-17L10N: Intern VN/producer relations + update relation graphsYorhel1-4/+2
Now that graphviz knows the actual strings, it has a better opportunity to create better graphs. (Most of them still look messy tho)
2016-01-17L10N: Intern tag_cats/voiced/animated/*_statusYorhel1-9/+9
2016-01-16L10N: Intern languages/platforms/resolutions/media/ptype/rtype/vnlengthYorhel1-23/+23
2016-01-10Add 'more'/'less' buttons to staff/character boxes on VN pagesYorhel1-2/+2
2015-11-28VNPage: Generalize seiyuu listing to character summary listingYorhel1-61/+73
The comment already suggested this: I wonder whether it's better to just ask database for character list instead of doing this manual group/sort So yeah, let's just do that.
2015-11-26Modified cast block layout.morkt1-18/+24
2015-11-26Handler::VNPage: Fix character listing tabYorhel1-1/+1
2015-11-26Handler::VNPage: Move staff tab into main VN page + some styling changesYorhel1-42/+23
The styling of the staff info can be a bit awkward at times, but it looks slightly better than a table, IMO. I didn't really know what to do with the the seiyuu info - it wastes a lot of screen space in its current implementation, but I can't think of anything better at the moment.
2015-11-01Image viewer: Use HTML5 data- attribute instead of 'rel' for dataYorhel1-2/+2
The possible values of the rel attribute is fixed, it's not supposed to be a free-form field.
2015-11-01Switch to HTML5 doctype + s/acronym/abbr/ + s/&nbsp;/&#xa0;/eYorhel1-2/+2
I'd have preferred to stick with XHTML 1.0, but unfortunately browsers won't allow you to use modern Javascript APIs with an older doctype. Note that most pages don't actually validate correctly as HTML5, I'm relying on browsers to be lenient. In either case, I'd like VNDB to stay valid XML (XHTML5, then), and luckily that shouldn't be a problem.
2015-10-17SQL: Fix all browsing queries to use the new schemaYorhel1-6/+6
This basically makes VNDB browsable again, but editing entries is still broken. I split off the get-old-revision functionality from the db*Get() methods into db*GetRev(). This split makes sense even with the old SQL schema: db*Get() had to special-case some joins/filters when fetching an older revision, and none of the other filters would work in that case. This split does cause some code duplication in that all db*GetRev() methods look very much alike, and that the columns they fetch is almost identical to the db*Get() methods. Not sure yet how to avoid the duplication elegantly. I didn't do a whole lot of query optimization yet (most issues require extra indices, I'll investigate later which indices will make a big difference), but I did fix some low hanging fruit whenever I encountered something. I don't think I've worsened anything, performance-wise.
2015-08-31Handler::VNPage: Increase limit on number of visible releasesYorhel1-2/+2
From 50 to 200. https://vndb.org/t6892
2015-08-17js: Clean up misc.jsYorhel1-2/+2
- Individual blocks don't leak variables into the parent scope anymore. Previously some blocks would re-use variables from other blocks, creating (almost invisible) dependencies between te blocks. - More consistent code for ulist-change-dropdowns, and all of them have a ref= argument now. - Use 'hidden' class instead of style.display wherever that makes sense. - Remove dead 'advselect' code. Hasn't been used since the addition of search filters. - lang_select doesn't rely on the position of the language class in className anymore (seriously that stuff is fragile...)
2015-08-08Add sexual trait toggle to character informationYorhel1-12/+2
It's not a preference yet and the sexual traits are still visible by default. I'll fix that later.
2015-07-27Handler::VNPage: Bunch of fixes for release page comparison rewriteYorhel1-5/+4
- Remove the obsolete 'use's - Re-add max-width style when requested - Fix comparison in displaying media - Fix sorting on animation column
2015-07-26Handler::VNPage: Rewrite release comparison pageYorhel1-408/+227
The previous code was using experimental perl features (switch / smartmatch) that weren't really needed, and the information about individual columns was spread around in multiple functions. This rewrite makes the code consistent with the rest of VNDB, and has *all* of the column-specific information in one data structure. I did not replicate the similar-cell-merging feature, partly because the code for it is definitely not trivial and partly because it doesn't make the table look any less cluttered. In fact, I feel that it only makes the table harder to interpret because it looks messy. This is a matter opinion, of course, so I might reimplement the feature if people who actually use this comparison page want to. Overall, I'm still undecided on whether this comparison page should exist at all in its current form - it's not very user-friendly and often looks cluttered. I'm keeping it because it does have some use-cases where it avoids opening every release page to do a manual comparison, but I'd love a more friendly-looking alternative.
2015-07-21Add profile option for the default spoiler settingYorhel1-10/+8
This fixes the unexpected behaviour that changing the spoiler setting on one page will change it for all pages. All manual spoiler changing options are temporary now.
2015-07-21L10N: Combine spoiler setting stringsYorhel1-9/+9
2015-07-21Add profile option for default visible tag categories on VN pagesYorhel1-3/+2
The name of the profile setting isn't very clear. Not sure what to do with it.
2015-07-21Add profile option to show or summarize tags on VN pages by defaultYorhel1-2/+2
2015-07-20L10N: Support plural forms for charrolesYorhel1-1/+1
Used /v+/chars, other occurrences just use singular.