summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
AgeCommit message (Collapse)AuthorFilesLines
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/ / /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.
2015-05-12Fix display of 'external' iconYorhel1-1/+1
Broken in commit 887607bb3744c727ec617508c17b2b7df46c2287
2015-02-07Handler::VNPage: Fix ordering of staff/cast on revision pagemorkt1-3/+5
2015-02-04Add spoiler settings to /v+/staffmorkt1-6/+12
2015-01-29VNPage: Don't shorten credit notes in revision displayYorhel1-2/+2
The revision is supposed to display all changes, so a change to any part of the notes should be visible.
2015-01-28Hide spoilerous characters from the VN staff pages by defaultYorhel1-3/+5
To fix an issue mentioned in <https://vndb.org/t6138.15>. Yay for writing patches on the live site.
2015-01-28Merge branch 'staff' into masterYorhel1-1/+2
Conflicts: lib/VNDB/DB/VN.pm lib/VNDB/Handler/VNPage.pm
2015-01-17Handler::VNPage: Conditionally disable warnings for smartmatchmorkt1-1/+1
Only recent perl versions need it, on older versions the 'no warnings' line would cause an error.
2015-01-17Fix placing of add/edit tabs on VN pages when tags are hiddenmorkt1-0/+1
2015-01-02staff: Fix deleting of staff + use JSON to pass data + minor fixesmorkt1-2/+2
2014-12-28staff: Import cast from other VN + some styling + more improvementsmorkt1-7/+10
2014-12-28More progress on the staff + cast DBmorkt1-24/+57
2014-12-24Further progress on the staff databasemorkt1-5/+10
- Moves staff<->vn linking form to the main VN edit form - Fixes a bug with linking staff aliases to VNs - Adds staff changes to the VN revisions - And some misc. improvements
2014-12-22Initial implementation of a staff/seiyuu databasemorkt1-9/+52
2014-10-21Disable warning about switch statementYorhel1-1/+2
I really want to rewrite that code to not use the very unperlish switch statement, but the code is rather... complex and hairy. :(
2014-10-16Completely get rid of the old charedit perm flagYorhel1-3/+1
2013-01-22Handler::VNPage: Fix display of VN list statusses on VN pageYorhel1-1/+1
2013-01-21Handler::VNPage: Fix perl warning on revision pagesYorhel1-1/+1
mtvnlen() can't be used as serialize function, since it also reads the second argument and interprets it as a number.
2013-01-21I18N: Merge all translation strings that eval to "Unknown"Yorhel1-13/+13
A generic '_unknown' is more easily usable.
2013-01-05Don't use Multi for processing VN cover imagesYorhel1-4/+2
I used to do this to avoid loading Image::Magick in each TUWF process, decreasing memory usage, and lowering the blocking time by avoiding too much processing. Memory isn't much of a problem nowadays, and processing images is fast enough, too, so this complexity isn't necessary anymore. (Character images and screenshots pending)
2012-07-13Various improvements with the releases tableSpaceRanger1-106/+254
2012-07-06Handler::VNPage: Compare booleans after negation in releases tableYorhel1-4/+4
This fixes another (obscure) Perl warning when $rel->{patch} is undef. Perl similar to C when it comes to booleans: Comparing them with == is a recipe for disaster. (Unless you use the C99 'bool' type, but Perl doesn't have such an equivalent)