Commit Graph

60 Commits

Author SHA1 Message Date
A nyaa developer f8a314df4f Better bans (#341)
* better bans

* put jinja2 template into correct file
2017-08-25 18:53:35 -04:00
Kfir Hadas 9fef343c1b Move torrent edit and upload into 'torrents' blueprint
Move supporting functions and variables into other files
* nyaa.views.torrents:
  - _create_upload_category_choices
* nyaa.backend:
  - get_category_id_map
2017-07-27 14:14:00 +03:00
Kfir Hadas eccb0ebdff Move '/' and '/rss' routes into 'main' blueprint
and update templates.
2017-07-27 14:14:00 +03:00
Kfir Hadas 0887dde6fc Move /user/<user_name> route into a blueprint
Move supporting functions and variables into other files
* nyaa.utils:
  - cached_function
  - chain_get
* nyaa.search:
  - DEFAULT_MAX_SEARCH_RESULT
  - DEFAULT_PER_PAGE
  - SERACH_PAGINATE_DISPLAY_MSG
  - _generate_query_string
2017-07-27 14:14:00 +03:00
Kfir Hadas 3913d8cea2 Move admin routes into blueprint
and update templates

Routes:
* /reports
* /adminlog
2017-07-27 14:14:00 +03:00
Kfir Hadas f316353176 Move account routes into blueprint (#292)
and update templates,
and remove unused imports

Routes:
* /login
* /logout
* /register
* /profile
2017-07-27 14:14:00 +03:00
Kfir Hadas 911fbc317f Move static routes into a blueprint
and update templates

Routes:
* /help
* /rules
* /xmlns/nyaa
* /about (commented out)
2017-07-27 14:14:00 +03:00
Arylide 6988daf803 HTML Changes 2017-07-22 20:31:50 -07:00
TheAMM c31749c1d5 Add link for site-revision vs Github master comparison in footer
Quality of Life. What new features?
2017-07-22 21:41:48 +03:00
Arylide 2e8e548067 Revert "Autofocus on search input box"
This reverts commit c9389cb888.
2017-07-17 17:02:19 -07:00
mreweilk c9389cb888 Autofocus on search input box 2017-07-11 23:28:30 -04:00
mreweilk dd8cb4757e Admin Log 2.0 (#283)
* Admin log added

* Add admin log to top bar

* Fixed some admin log bugs

* Remove comment_id column because comments die when they are killed

* Fix tabs in admin log template

* Fixed sort of admin logs to be created_time desc

* Fix navbar wrapping to a new line

when 992px <= width <= 1200px

* Put reports and admin log in "Admin" dropdown

Applied ./lint.sh fixes

Fixed long lines

* Updated log to be text instead of id based to account for future deletions

* Small fix in log message formatting
2017-07-04 23:13:59 -05:00
UnKnoWn bd0f9edce3 Reorder the search bar
Moving media queries to the end to ensure priority
2017-06-07 04:15:45 +08:00
Kfir Hadas c70a60b719 UI Fixes (#246)
* Fix markdown renderer

Use a simple for loop instead of `for (var target of markdownTargets)`, because it's unsupported in IE.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of#Browser_compatibility

* view.html : HTML Fixes

- Remove unmatched `</a>`
- Add missing `</div>`
- Use single quotes in {{ }}
- Closing tags comments

* layout.html

- Use single quotes in {{ }}
- Closing tags comments

* help.html: Convert all `<p>` to `<div>`

HTML spec doesn't allow lists inside `<p>` elements.

* Missing semicolon in `<script>`
2017-06-05 20:23:30 -04:00
snowfag 68c2c965a4 Move hardcoded urls into config. 2017-06-03 14:40:32 -04:00
TheAMM 505b4e18bd Move to markdown-it, render markdown in DOMContentLoaded
No more separate <script>s for comments
Adds a link to a GFM cheatsheet on markdown form
Spaces to tabs on "markdownEditors" DOMContentLoaded
2017-06-01 06:28:38 -05:00
nyaazi bea63315cd Merge branch 'master' into reports 2017-05-29 16:20:48 +03:00
nyaazi 5332ba1a49 Merge branch 'master' into reports 2017-05-26 15:25:02 +03:00
shm0o 3edc73a518 templates/layout.html: use url_for for the appropriate endpoints 2017-05-25 19:33:47 -04:00
shm0o 18dd7cd66f static_cachebuster: build the url with url_for 2017-05-25 19:33:47 -04:00
TheAMM 3f49f17baa Add simple OG metadata tags to templates
Hello, #185
2017-05-26 01:03:59 +03:00
TheAMM 3bd4898a65 Hotfix #193
Temporary workaround because CSS is hard.
2017-05-26 00:09:37 +03:00
TheAMM 1ab3d6e3eb Add cachebuster helper function for static css/js 2017-05-25 20:11:37 +03:00
Kfir Hadas a64cac5e5e Basic collapsible file tree 2017-05-25 12:53:23 +03:00
TheAMM 4f1576e086 Fancy grammar in your anime torrents 2017-05-24 21:54:50 +03:00
TheAMM d287aaf974 Show "Search <user>'s torrents..." on user pages in search field 2017-05-24 17:34:53 +03:00
ReimuHakurei 3418cb6175 More validation. 2017-05-24 06:45:00 +00:00
ReimuHakurei 3efda25f88 Increment css version 2017-05-24 06:11:20 +00:00
ReimuHakurei 8d393f5917 Make our HTML actually valid. Fix indentation. 2017-05-24 06:06:39 +00:00
ReimuHakurei 16cfcff846 Fix broken search. 2017-05-24 05:45:29 +00:00
ReimuHakurei 0d839eca35 More layout improvements. 2017-05-24 05:28:30 +00:00
ReimuHakurei 428b0bf8c7 Fix search on mobile. 2017-05-24 05:06:51 +00:00
ReimuHakurei dfe745c635 Add a wider viewport of 1400px for very wide screens (1600px+). 2017-05-24 04:09:16 +00:00
ReimuHakurei 4fa9972252 Merge branch 'master' of https://github.com/nyaadevs/nyaa 2017-05-24 04:08:16 +00:00
ReimuHakurei b0b77775d7 Unfuck the layout, and remove the search update info from the about box on the home page to declutter. 2017-05-24 04:04:32 +00:00
snowfag 34fe2c5c67 change glyphs for buttons. 2017-05-23 22:16:05 -04:00
snowfag 4a7d8646b6 Update upload/edit buttons. 2017-05-23 21:11:58 -04:00
snowfag 0770822824 Change CRLF to LF. 2017-05-23 21:06:32 -04:00
nyaadev 020a0871bd fix #173 and add avatar to mod user info
add rank color to username everywhere
some other minor changes
2017-05-24 00:28:17 +02:00
nyaadev a88f6a0847 please incease css version when editing it, fix #ad8a5c0d1c0998d808c4af3745cfc9e5c83f547b 2017-05-23 23:37:06 +02:00
nyaadev af61e5b1e9 some html + css changes around comments 2017-05-23 02:47:20 +02:00
nyaazi 1705bfd6ea Using the url_for function 2017-05-20 21:53:23 +03:00
nyaazi 799d5914d6 Added reports page 2017-05-19 20:52:04 +03:00
nyaadev 375dcf15ef Switch to CDN for bootstrap-select and font-awesome css
Remove superfluous static files
2017-05-19 15:23:26 +02:00
Nicolas F c31f3d251b Use cdnjs with SRI and HTTPS for all CDN JS files
SRI means that there's a lesser risk for XSS, and CDNJS itself
recommends always requesting them over HTTPS in their "About" page.

This closes #133
2017-05-19 08:43:49 +02:00
aldacron ddd4d8e44c Fixed MOTD spacing and changed to core js assets to cdns 2017-05-18 00:38:33 -07:00
aldacron 08217cee2f changed filter bar for clarity 2017-05-17 01:43:04 -07:00
Johnny Ding c61bba8f30 Merge pull request #80 from nathancyam/mobile_search
Issue #35: Mobile search improvements
2017-05-17 00:13:25 -07:00
Johnny Ding de5a15b9a0 Merge pull request #88 from nyaadevs/commonmark
Switch marked to commonmark
2017-05-16 23:51:23 -07:00
Nazo 6f61970559 Switch marked to commonmark 2017-05-16 21:29:22 +03:00