summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-27Fix typography on "Grabbing URLs..." with …Juuso Lapinlampi
This change may seem very subtle, but many screen readers will actually behave differently. Before this commit, a screenreader like JAWS may read "Grabbing URLs dot dot dot". After this commit, JAWS may read "Grabbing URLs" and pauses for a little longer. Reference: http://www.deque.com/blog/dont-screen-readers-read-whats-scre en-part-1-punctuation-typographic-symbols/
2015-09-27Add Pantsu.cat copyright to js/pomf.jsJuuso Lapinlampi
This compliments commit 7dca38c.
2015-09-26Rename Catalan virus scans banner as virusscans.swigJuuso Lapinlampi
bannersca.json looks for virusscans.swig, but the actual template for this has a wrong file name lacking the "-s". This fixes a bug introduced in 975e255.
2015-09-26Change virus scan banner class to alert-infoJuuso Lapinlampi
alert-info conveys a message "this needs your attention, but it's not super important." alert-error conveys a message "you screwed up, please correct the error or leave the site." This means alert-error should only be used for errors the user has made. Using it for an informational message about virus scans is incorrect.
2015-09-26Use cached totalName instead of $('.file-name', totalRow)Juuso Lapinlampi
This cleans up a little bit of smelly code, which came from a copy-paste job.
2015-09-26Remove extra two character whitespace between wordsJuuso Lapinlampi
This fixes style two character whitespace in pages (Swig) with one character whitespace. See the broken windows theory: https://en.wikipedia.org/wiki/Broken_windows_theory
2015-09-26Use <input type="hidden"> in upload_form_nojs.swigJuuso Lapinlampi
Replacing <form> action with an <input> creates an additional semantic meaning, and it's now modifiable more easily in DOM.
2015-09-26Indent upload_form_nojs.swig from spaces to tabsJuuso Lapinlampi
This creates consistency with other Swig templates.
2015-09-26Remove <br> element from upload_form_nojs.swigJuuso Lapinlampi
<br> is a presentantional element, not semantic. Use CSS instead.
2015-09-26Remove non-valid href element from #upload-btnJuuso Lapinlampi
This fixes a silly validation error that was introduced in last commit. The javascript:; is reduntant anyway.
2015-09-26Indent Gruntfile uglify task banner to two spacesJuuso Lapinlampi
Improves readability and consistency.
2015-09-26Remove reduntant <span> element in #upload-btnJuuso Lapinlampi
There seems to be no meaning to having this <span> element here with no styling applied to it. It doesn't have anything to do with drag and drop functionality either, and nothing seems to be broken after removing it.
2015-09-26Replace #upload-btn <a> element with <button>Juuso Lapinlampi
Corrects semantics and increases accessibility. The <a> element represents a hyperlink. A hyperlink is "a link from a hypertext file or document to another location or file." This is not what #upload-btn is, it's a button. Ask yourself: "Does the element change the URL?" In our case, the upload button does not so it is incorrect to use an <a> element here. The idea to use <a> elements as buttons comes from years ago when you couldn't style <button> elements in legacy browsers. Today you can, so there's no reason to break the semantics. Reference: http://blogs.ancestry.com/techroots/buttons-vs-anchors/
2015-09-26Remove <header> element from index pagesJuuso Lapinlampi
The <header> element represents a group of introductory or navigational aids. It is semantically incorrect to use it with only one element inside. The <header> element was introduced in commit 87014fa08f. That commit describes the correct usage of <header> element with multiple elements inside <header>. This bug was introduced in commit fd566d3d7f.
2015-09-26Regain sanity in nav.swig links with correct pathsJuuso Lapinlampi
Before this commit, Catalan pages had no way to return to the Catalan index page using the navigation. Instead of hardcoding pantsu.cat URLs to index, use a sane "/" path.
2015-09-26Add new Catalan translations to Gruntfile buildJuuso Lapinlampi
Previously, links to Catalan FAQ and others would be broken because the generated files would not exist. This is like a hack. Hopefully someone will soon tell me how to organize these pages to subfolders to regain my sanity.
2015-09-26Rename ca.swig as indexca.swigJuuso Lapinlampi
ca.swig is confusing and difficult to find. This commit creates consistency with other pages until someone more knowledgeable person tells me how to sort these to /pages/ca/ with Gruntfile.
2015-09-25Bump grunt-contrib-htmlmin version up to ^0.5.0Juuso Lapinlampi
This upgrades the htmlmin dependency to version 0.8.0. Unfortunately, upstream author does not maintain the CHANGELOG file.
2015-09-25Merge branch 'add-catalan-translation'Juuso Lapinlampi
Catalan translation courtesy of Cupkle. Few patches added by wub@.
2015-09-25Remove Pantsu.cat from check_fileapica.swig authorsJuuso Lapinlampi
wub@ and ewhal@ no longer have any content in this file. It's been replaced.
2015-09-25Fix HTML lang attributes for Catalan translationJuuso Lapinlampi
2015-09-25Add full, more accurate Catalan translationCupkle
2015-09-24Remove unused UploadedFile class $crc32 propertyJuuso Lapinlampi
get_crc32() was removed in commit ea6a7a0194 and never in use in the code. It seems Eric forgot to remove this property.
2015-09-24Add extra whitespace for var uploadBtn in pomf.jsJuuso Lapinlampi
This is not how it appeared in the initial commit 1792788f5f, but personally I like it and style guides allow me to adjust the whitespace for these kind of variables. Improves readability.
2015-09-24Add an extra whitespace for rowUrl in pomf.jsJuuso Lapinlampi
Improves readability by indenting these variables to same level. Restores whitespace style like in initial commit 1792788f5f.
2015-09-24Replace ambiguous MIT license mentions with ExpatJuuso Lapinlampi
MIT has used many licenses for software. Calling this project to be available under a "MIT" license is misleading.
2015-09-24Remove "The MIT License (MIT)" line from LICENSEJuuso Lapinlampi
The line is reduntant and more confusing than helpful. It belongs to README. The original Expat license text doesn't include this line.
2015-09-24HTML-ify html_error() response with <p>Eliot Whalan
2015-09-24Rename txt_error() to text_error()Eliot Whalan
2015-09-24Fix indentation to 2 spaces.Eliot Whalan
2015-09-24Addition symbol prevented urls from being passedEliot Whalan
Fix bug introduced in 6c82d36307.
2015-09-24Remove code that requires moe panelEliot Whalan
2015-09-24Fix indentation to 2 spaces to comply with airbnbEliot Whalan
https://github.com/airbnb/javascript
2015-09-24Fix bug introduced in 6c82d36307. Newline broke JSEliot Whalan
2015-09-24Merge remote-tracking branch 'origin/liberate-img'Eliot Whalan
Remove non-free images
2015-09-24Merge remote-tracking branch 'origin/copyright-headers'Eliot Whalan
2015-09-23static/upload.php: Use strict comparison for $triesJuuso Lapinlampi
2015-09-23Fix other.swig title from "FAQ" to "Other Services"Juuso Lapinlampi
2015-09-23Fix index page indentation from spaces to tabsJuuso Lapinlampi
Silly ewhal@, that's not how you indent pages. Fixes a code style violation introduced in commit 87014fa08f.
2015-09-23Add Expat copyright headers to pages (SWIG)Juuso Lapinlampi
2015-09-23Add cenci0 to contributors in LICENSE / package.jsonJuuso Lapinlampi
cenci0 has a lot of improved code in static/classes/Response.class.php and static/upload.php. This can be seen in commit 5b77a4eaab.
2015-09-23Add Expat copyright headers to PHP filesJuuso Lapinlampi
Interestingly, static/classes/UploadedFile.class.php is not licensed under Expat license. Because it was posted in PHP.net comments, I believe it's under the PHP license.
2015-09-23Add Expat copyright headers to JavaScript filesJuuso Lapinlampi
2015-09-23Add author email addresses to LICENSEJuuso Lapinlampi
2015-09-23Add Expat copyright header to css/pomf.cssJuuso Lapinlampi
2015-09-23Replace markdown backticks with four space indentsJuuso Lapinlampi
Fenced code blocks are not part of the original markdown standard, thus less portable. Even if fenced code blocks were used, they should specify the code language with it. Indented code blocks with 4 spaces are portable, which we prefer.
2015-09-23Add missing whitespace to check_fileapi (Firefox)Juuso Lapinlampi
2015-09-23Remove now-dead code for kawaii grill imagesJuuso Lapinlampi
2015-09-23Remove non-free kawaii imagesJuuso Lapinlampi
These files are non-free and can no longer be distributed with source releases. No free replacements are available. I have not attempted to reach out the authors of images concerned. - img/10.png: tisenomati, http://www.pixiv.net/member_illust.php?mode=big&illust_id=9984708 - img/2.png: https://danbooru.donmai.us/posts/1011708 -> http://haruka.saiin.net/~gyroscope/data/img/2011100201.jpg - img/3.png: Luminous Flux, http://www.pixiv.net/member_illust.php?mode=medium&illust_id=33001785 - img/4.png: Unclear origin. http://www.99comic.com/comics/7208o152458/ - img/5.png: Unclear origin. http://www.taringa.net/SonicIdol/mi/qyLSd - img/6.png: Unclear origin. - img/7.png: Spanuel, http://spanuel.deviantart.com/art/Akiyama-Mio-vector-trace-429724879 - img/8.png: Kimi Ni Todoke 57 manga / Mango Scans - img/9.png: https://danbooru.donmai.us/posts/459541 / http://e-shuushuu.net/image/165818/ -> pixiv/ura-kata, dead origin link at http://www.pixiv.net/member_illust.php?mode=medium&illust_id=4418425 These files may have to be filtered later from Git history or an orphan branch created from this commit forward to satisfy copyright.
2015-09-23Merge https://git.pantsu.cat/yrrah2/pomfEliot Whalan