Anna-Maria Meriniemi
1bc36c5a17
[Schema change] Add webseed support (BEP-19) ( #317 )
...
Store webseeds in Trackers table with is_webseed flag
Adjusts torrent creation accordingly
2017-07-30 00:00:39 +03:00
Kfir Hadas
b992467dad
Apply isort & flake8 ( #312 )
...
* Update isort settings
* Apply import sorting (isort) on all files in nyaa/
* Fixed Flake8 errors in nyaa/ (see PR for list)
* Add isort to lint.sh and requirements.txt
2017-07-28 20:01:19 +03:00
Kfir Hadas
99c052c85f
Tiny code reformat
2017-07-27 23:29:25 +03:00
Kfir Hadas
42725d4a3c
Hotfix Gravatar
2017-07-27 23:17:06 +03:00
Kfir Hadas
ab6193d01d
Update Gravatar ( #313 )
...
* Update help.html with a section about user avatars
* Update Gravatar implementation to use the rating feature
2017-07-27 16:03:13 -04:00
Kfir Hadas
2424639bf9
Refactor routes.py
2017-07-27 14:14:00 +03:00
Kfir Hadas
c539795fdc
Move the remaining template_global into 'template-utils' blueprint
2017-07-27 14:14:00 +03:00
Kfir Hadas
93f94023d1
Move delete_comment and submit_report into blueprint
2017-07-27 14:14:00 +03:00
Kfir Hadas
ef56e54521
Move torrent magnet and torrent download into 'torrents' blueprint
2017-07-27 14:14:00 +03: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
9acdd14e81
Move /view/<int:torrent_id> route into 'torrents' blueprint
...
and update templates.
2017-07-27 14:14:00 +03:00
Kfir Hadas
42535bbdab
Move 404 handler into 'main' blueprint
2017-07-27 14:14:00 +03:00
Kfir Hadas
4aac17ff23
Move 'before_request' into 'main' blueprint
...
Update comment in api_handler with new before_request location
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
f3b923ccca
Move template filters and globals into blueprint ( #301 )
...
* Move 8 of 9 template filters and globals into a blueprint
* Rename nyaa.filters -> nyaa.template_utils
* Fix import sorting
2017-07-27 14:14:00 +03:00
Kfir Hadas
50529920bd
Move /user/activate/<payload> route into users
...
Move supporting functions as well:
- get_serializer
- get_activation_link
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
Kfir Hadas
7e16616a5d
Remove unused imports
2017-07-27 14:14:00 +03:00
Kfir Hadas
de8bd047d5
Apply isort on routes.py
2017-07-27 14:14:00 +03:00
Arylide
dc627bf398
Revert "upload page: use alerts, add alert about rules ( #304 )"
...
This reverts commit c5ce99c3f3
.
2017-07-24 20:03:58 -07:00
queue
b1d187613a
bencode: fix nontermination on empty or malformed input
...
read(1) returns b'' on EOF, which wasn't checked for in a couple cases,
which could cause empty/truncated input to enter one of the `while True`
loops without hope of exit. programming is hard.
2017-07-24 20:53:48 -06:00
Nicolas F
c5ce99c3f3
upload page: use alerts, add alert about rules ( #304 )
...
This changes the tracker announce URL message to be one of those
bootstrap alert bubbles, and adds an additional warning which tells
people to read the rules and not upload off-topic crap.
2017-07-24 16:46:39 +03:00
Arylide
6988daf803
HTML Changes
2017-07-22 20:31:50 -07:00
TheAMM
a50d39ccaa
Improve RSS feed title (show term, torrent/magnet)
2017-07-22 21:54:28 +03: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
TheAMM
6b71cf101e
Add simple info in RSS <description>
...
Allows puny humans to gather some information from the RSS feed
Fixes #299
(... and nobody will know!)
2017-07-22 21:37:53 +03:00
Kfir Hadas
fe4ac73ca2
Update torrent download route headers ( #298 )
...
- Change disposition from inline to attachment
- Add Content-Length header (by updating `_get_cached_torrent_file`)
2017-07-20 11:00:20 +03:00
Arylide
2e8e548067
Revert "Autofocus on search input box"
...
This reverts commit c9389cb888
.
2017-07-17 17:02:19 -07:00
mreweilk
b51045503d
Fix banned display on selection box
2017-07-16 14:19:20 -04:00
mreweilk
c9389cb888
Autofocus on search input box
2017-07-11 23:28:30 -04:00
Matt Kliewer
708e0da5a1
Add logging to report view and add option to disable (ban) a user for superadmins
2017-07-09 18:07:31 -05:00
Alex Ingram
570ee1225a
Fix broken comment CSS
2017-07-08 20:03:14 -05:00
zapzapzap1
1ae577acdb
Add links to torrent clients' download pages ( #259 )
...
* Add links to torrent client's download pages
* Fuck uTorrent
* Goodbye, uTorrent
2017-07-08 00:10:33 -05:00
Kfir Hadas
c466e76471
Fix RFC822 filters + More tests ( #257 )
...
* Make rfc822 filters compatible with Windows systems.
.strftime() is relative to the system it's being run on.
UNIX has '%s' for seconds since the EPOCH, Windows doesn't (ValueError).
Solution: use .timestamp() to achieve the same result on both platforms.
This also allows us to drop the float() around it, since it returns a float.
* Start testing filters
* Add placeholders for more tests
* Make 'tests' folder a Python package
Now you can run tests with just `pytest tests`
* Update readme and travis config
* Test timesince()
* Update and organize .gitignore
Deleted: (nothing)
Added: Coverage files, .idea\
* Test filter_truthy, category_name
* Tests for backend.py
* Tests for bencode.py
* Move (empty) test_models.py to tests package
* Tests for utils.py
* Fixes for flattenDict
* Change name to `flatten_dict`
* `newkey` was assigned but never used
* Add a helper class for testing
* Show coverage on Travis
(only Travis for now...)
* Remove IDE
* Use correct assert functions
* Update README.md
2017-07-07 16:14:37 -05:00
Matt Kliewer
45e3834f2a
Change portion of welcome message
2017-07-05 13:15:58 -04:00
Kfir Hadas
3b55af85f0
Fix torrent deletion log
...
* Fix `url referenced before assignment.`
* Fix every action logged as delete/undelete
2017-07-05 13:48:34 +03: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
Nicolas F
fdb041c23b
Don't use responsive table on reports list
...
The responsive table actually does *worse* in narrow layouts because
the action column fucks off out of view and needs to be scrolled to
if the report reason is long. With a normal table you may not get
consistent row heights, but at least you don't have to horizontally
scroll to perform an action.
Also fixed a goof where I used a style attribute instead of making
the max-width for the action column a class.
2017-06-27 16:07:10 +02:00
Nicolas F
25535e9cb9
Add extra information to reports list
...
Shows whether the reporter is trusted, whether the uploader is trusted,
the name of the uploader and for superadmins the IP for the uploader.
2017-06-27 15:56:46 +02:00
Nicolas F
9dfce327b6
Improve reports table styling
...
Condense the table, vertically align the text inside rows, use a
bootstrap styled select, group it together with the review button
and shrink it down a little.
2017-06-27 15:25:55 +02:00
Nicolas F
f1df776410
Add alert about reports that nobody will read
...
Apparently some people don't understand what the report button
is for. Adding this small warning can be considered a success even
if it just leads to one less stupid report.
2017-06-27 14:40:58 +02:00
TheAMM
081eb16246
Make username regex to stop the validation chain
...
with a decorator to replace ValidationError with StopValidation
2017-06-19 16:05:42 +03:00
Kfir Hadas
94574d1682
Hide "Report" button for site guests ( #265 )
2017-06-14 20:07:53 +03:00
Johnny Ding
ffb2cdec5f
Merge pull request #251 from sharkykh/tests
...
INITIAL UNIT TESTING FUCK YEAH
2017-06-07 23:27:53 -07:00
Kfir Hadas
16e72a2a9c
set noqa to ignore a single error
2017-06-08 04:14:04 +03:00
nyaazi
9fbaf3c12a
Setting height for comment textarea ( #253 )
2017-06-07 23:53:25 +03:00
Kfir Hadas
6f526de5ea
Lint
2017-06-07 19:38:19 +03:00
aldacron
80fecd5496
add description and keywords
2017-06-06 23:53:19 -07:00
UnKnoWn
bd0f9edce3
Reorder the search bar
...
Moving media queries to the end to ensure priority
2017-06-07 04:15:45 +08:00
Johnny Ding
06735a6536
Merge pull request #243 from nyaadevs/elasticsearch-fullword
...
Multi-field search display_name to match words over ngram limit. Resolves #205
2017-06-05 20:34:04 -07: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
TheAMM
2d0cf7cbb4
[ES Schema change] Multi-field search display_name to match words over ngram limit
...
This fixes searching for "Machiavellianism", 16 chars ("Machiavellianis", 15 chars, worked previously).
Does not (seem to!) break anything, but requires a re-indexing of ES.
2017-06-05 17:29:00 +03:00
aldacron
ae71b6ed59
clean up motds
2017-06-05 00:04:21 -07:00
aldacron
566e7d8cf8
resolves #239
2017-06-05 00:02:52 -07:00
Alex Ingram
0a12db74d0
Change report button to btn-xs as a temporary fix.
2017-06-05 00:45:50 -05:00
Kfir Hadas
467270837c
Enable linkify
for Markdown parser
...
Autoconvert URL-like text to links
2017-06-05 02:36:18 +03:00
TheAMM
6592bec67c
Clean up info api script
...
And a tiny bit of the serverside endpoint.
2017-06-04 00:52:11 +03:00
kyamiko
570a06bd9e
API Info ( #157 )
...
Squashing 11 commits into one.
2017-06-03 23:57:53 +03:00
snowfag
abfb5c178e
Update rules page.
2017-06-03 15:06:15 -04:00
snowfag
68c2c965a4
Move hardcoded urls into config.
2017-06-03 14:40:32 -04:00
Kfir Hadas
3165389d52
Fix lint check + update lint script ( #224 )
...
* Fix PEP8 E301 on nyaa/models.py
* Add utils/ to lint checker
* Run of lint.sh + manual fixes
As suggested https://github.com/nyaadevs/nyaa/pull/157#issuecomment-305051428
* Fix backwards tick in README
* Updated script
* Update Travis config
2017-06-01 06:40:33 -05:00
ReimuHakurei
3e2437bba1
Fix merge mistake.
2017-06-01 11:37:50 +00:00
Alex Ingram
b5e70ba0b0
Merge branch 'master' into focus-report-field
2017-06-01 06:30:34 -05:00
Nicolas F
e564b3ee19
Change label of button on edit page
...
Small nitpick change.
"Edit" being the button that saves the edits might be a little
confusing, whereas "Save Changes" is less ambiguous and more
easily recognised.
2017-06-01 06:29:14 -05:00
Nicolas F
ae30e9c95c
Get started with a bare-bones help page
...
It includes little anchors over headings that you can click to link
your one reading-challenged friend to the right section.
In the future, adding an explanation of the different categories
and labels under a new h2 would be a good thing.
2017-06-01 06:28:49 -05:00
TheAMM
80587e02fe
Default description to "" in field renderer
...
Otherwise we get None on upload page
2017-06-01 06:28:38 -05:00
TheAMM
f4fb9fc065
Render markdown text field manually in the template
...
We need to escape newlines in the editor as well!
2017-06-01 06:28:38 -05: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
Nicolas F
07d45b6223
Focus report reason text field when reporting
...
A small convenience change which by sets the focus to the newly
opened modal dialog's text field if the report button is hit.
This way, people can type away their gripes with the torrent without
having to click into the text field first.
2017-05-30 19:31:28 +02:00
TheAMM
051f3f38d2
Clean up Torrent flag properties
2017-05-30 12:46:27 +03:00
nyaazi
5525337931
Replace the header titles
2017-05-30 10:29:59 +03:00
TheAMM
2b331c307e
Optimize MySQL COUNT queries and pagination
...
Also leaves 'Torrent.trackers' as 'select' for the joining, since we don't need it on listings
2017-05-29 18:27:34 +03:00
nyaazi
5dc8bdaf74
For the green
2017-05-29 16:24:45 +03:00
nyaazi
bea63315cd
Merge branch 'master' into reports
2017-05-29 16:20:48 +03:00
TheAMM
32fa021f34
Turn comments icon on search result into link to comments
...
Also cleans up torrent.id/torrent.meta.id
2017-05-28 02:46:04 +03:00
Anna-Maria Meriniemi
f02836f75e
Merge pull request #194 from shm0o/url-stuff
...
More `url_for`
2017-05-28 02:42:42 +03:00
TheAMM
16194a12a3
Fix typo in ES search sort keys
2017-05-27 21:37:26 +03:00
Anna-Maria Meriniemi
ea17f2d4da
Merge pull request #169 from sharkykh/num-comments
...
Add number of comments to torrent lists
2017-05-27 21:36:29 +03:00
TheAMM
260dc2cdc8
Forbid caching when debugging
2017-05-27 21:33:20 +03:00
Anna-Maria Meriniemi
d65602ee9f
[DB Changes! Read PR!] Merge pull request #196 from nyaadevs/elasticsearch-comment-count
...
Elasticsearch comment count. Read PR #201 as well.
2017-05-27 20:12:43 +03:00
Anna-Maria Meriniemi
279ec26f7c
[DB Changes! Read PR!] Merge pull request #201 from nyaadevs/update-alembic-migrations
...
Rewrite database models for declarative and update Alembic migrations
2017-05-27 20:11:57 +03:00
TheAMM
07cf0de6f9
Rewrite site-specific database models into declarative bases
...
This allows us to easily extend the bases into Nyaa and Sukebei models, with working FKs and relationships.
Note: the schema will (should!) otherwise match, however; the following index on Torrent was renamed:
uploader_flag_idx will be <prefix>_uploader_flag_idx, as we will be always creating both flavors.
The index rename should not affect SQA, but will potentially break migrations.
2017-05-27 18:14:39 +03:00
TheAMM
f7ed2c06d3
Jeez fine PEP8 I get it
2017-05-27 18:10:21 +03:00
TheAMM
d89f74893b
Remove username validator from login form to allow logging in with email
...
Since our previous regex was broken, the validator passed practically everything.
2017-05-26 23:28:28 +03:00
Kfir Hadas
fa946844d1
Style fixes
...
Comments box changed the height of the `<tr>`
Tweak icon/text sizes.
2017-05-26 19:23:34 +03:00
Kfir Hadas
aad5a0c6ea
Update style
...
Add support for sorting comments (in advance),
add th for sorting by comments_count, add title to the counter box and fix it being under the torrent's name,
2017-05-26 18:25:56 +03:00
Kfir Hadas
90695cad11
Add number of comments to torrent lists
...
Will only show when number of comments is above zero.
2017-05-26 16:50:31 +03:00
TheAMM
b5ebebf98e
Update Torrent.comment_count on comment submit/delete
2017-05-26 16:11:31 +03:00
TheAMM
6c80557e39
SCHEMA CHANGE: Add comment_count to Torrent
...
with a helper function on Torrent to update the count.
2017-05-26 16:08:46 +03:00
nyaazi
9e656ff7f6
Line too long
2017-05-26 15:29:49 +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
c178f905b0
templates/search_results.html: use url_for for the appropriate endpoints
2017-05-25 19:33:47 -04:00
shm0o
8b7712b1d0
templates/view.html: use url_for for the 'edit_torrent' endpoint
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
b6ecad898d
Fix username validator
...
Tehee, oops!
2017-05-26 01:47:05 +03: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
Kfir Hadas
d7181cf6a1
PEP8
2017-05-25 22:19:42 +03:00
Kfir Hadas
559602d19b
Fix inverted icons in file list
2017-05-25 22:16:12 +03:00
TheAMM
ca382bff9c
Fix RSS magnets for ES torrents
2017-05-25 21:52:26 +03:00
Anna-Maria Meriniemi
0394639954
Calculate comment age clientside, show timestamp in mouseover title ( #191 )
...
Resolves outdated comment ages thanks to caching and will show timestamps in local time.
2017-05-25 21:13:35 +03:00
TheAMM
bb30f6e3d2
Scroll user to their new comment after submission
2017-05-25 21:11:55 +03:00
TheAMM
1ab3d6e3eb
Add cachebuster helper function for static css/js
2017-05-25 20:11:37 +03:00
Kfir Hadas
e91fdb70da
Strip collapse functionality from file list panel
2017-05-25 16:41:07 +03:00
Anna-Maria Meriniemi
cfa41bf388
Merge pull request #186 from sharkykh/collapsible-file-tree
...
Basic collapsible file tree
2017-05-25 15:53:47 +03:00
Kfir Hadas
ae4d75ecde
Show first level's items based on amount
...
Currently set to show when list has 20 items or less
2017-05-25 15:16:29 +03:00
Kfir Hadas
e0ffadb08c
Fix extra margin/padding of files and folders
2017-05-25 14:43:50 +03:00
Anna-Maria Meriniemi
d07e3e34ae
Merge pull request #183 from sharkykh/user-page-gravatar
...
Use gravatar URL in /user/<username>
2017-05-25 13:50:36 +03:00
Kfir Hadas
a64cac5e5e
Basic collapsible file tree
2017-05-25 12:53:23 +03:00
TheAMM
b09c61980c
Add new route for torrent download, fix Content-Disposition
...
New route is `/download/<torrent_id>.torrent`, which will help people using tools that do not consider headers.
Old torrent download route still works.
Updated one remaining link to use url_for.
Added plain `filename="..."` to `Content-Disposition`, since it is still the most common standard with percent encoded UTF-8.
Fixes part 2 of #45
2017-05-25 11:15:45 +03:00
Johnny Ding
5a19dae649
Merge pull request #182 from sharkykh/fix-lint
...
Apply PEP8
2017-05-24 23:40:42 -07:00
Kfir Hadas
80a5cb65a4
Use gravatar URL in /user/x
...
Even though only mods/admins can see it
2017-05-25 09:29:38 +03:00
aldacron
d5e2311c56
Resolves #181
2017-05-24 23:25:21 -07:00
aldacron
142dd5359c
Resolves #129 and refactored create magnet es naming
2017-05-24 23:19:08 -07:00
Kfir Hadas
ebcf1dc836
PEP8
2017-05-25 09:08:18 +03:00
nyaadev
02c04ce893
order torrent.trackers relation
2017-05-25 00:36:49 +02: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
TheAMM
3a4280ccc5
Redirect searches with an info hash to torrent if found
...
Redirect will not happen on RSS or user page views (/searches).
Adds a helper to models.Torrent to search with a hex hash
Reformats "special search logic"
2017-05-24 17:34:36 +03:00
TheAMM
0e89d3f24b
Show torrent hash on torrent page
2017-05-24 17:17:51 +03:00
TheAMM
aeef80edaa
Clean up user search suggestion
2017-05-24 13:34:33 +03:00
ReimuHakurei
363203dfe0
Fix error on search for non-Unicode.
2017-05-24 10:14:03 +00:00
ReimuHakurei
8da628136f
Improve breaking of button groups.
2017-05-24 08:37:13 +00:00
ReimuHakurei
f215f0803c
Add per-user filter on search page based on query.
2017-05-24 08:33:32 +00:00
ReimuHakurei
63a469e08b
Hide news blob on search pages.
2017-05-24 08:33:32 +00:00
TheAMM
b60ec9ec0a
Failsafe in API for explicit nulls/Nones
2017-05-24 11:32:51 +03:00
TheAMM
ea2e01ae2c
Revert edit/upload form back to -md-, split flag buttons into two groups
2017-05-24 11:31:29 +03:00
ReimuHakurei
3418cb6175
More validation.
2017-05-24 06:45:00 +00:00
ReimuHakurei
917b9b7170
Merge branch 'master' of https://github.com/nyaadevs/nyaa
2017-05-24 06:19:22 +00:00
ReimuHakurei
42928c2a41
More validation.
2017-05-24 06:19:15 +00:00
snowfag
d38f30a7b7
Admins should have same userlevel_str as mods.
2017-05-24 02:18:09 -04: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
1eb805120e
Merge branch 'master' of https://github.com/nyaadevs/nyaa
2017-05-24 05:28:40 +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
snowfag
aa09191a24
Change guest anon upload glyph.
2017-05-24 00:57:07 -04:00
snowfag
02c7223f09
Move deleted button on edit page.
2017-05-24 00:44:27 -04: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
fb91b2bbf8
Guest upload visual fix.
2017-05-23 21:32:02 -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
1b76eaea35
fix race condition?
2017-05-23 15:18:17 +02:00
katnyaa
ba7e0a7c2e
routes: Fix invalid call from previous merge
2017-05-23 13:47:47 +01:00
katnyaa
48df88ce71
Merge pull request #140 from FallenWarrior2k/master
...
Changed RSS feed to conform to RSS standards and added a namespace
2017-05-23 12:44:03 +00:00
katnyaa
aa0d7f702f
api: Invalid JSON is a client-side error
2017-05-23 13:19:07 +01:00
snowfag
ad8a5c0d1c
Update buttons and css.
2017-05-23 01:17:55 -04:00
nyaadev
f32d1a0c64
use enumerated index for comment anchors
2017-05-23 02:59:31 +02:00
nyaadev
af61e5b1e9
some html + css changes around comments
2017-05-23 02:47:20 +02:00
snowfag
f76593a3fb
Proper sized default avatar.
2017-05-22 19:08:08 -04:00
nyaadev
76812b0ef0
utf8mb4 for database connection
2017-05-23 00:46:26 +02:00
nyaadev
c6d4803e90
Merge branch 'comments' of nyaadevgithub:nyaadevs/nyaa
2017-05-23 00:38:18 +02:00
nyaadev
8ef6e915da
shameful late edit: change comment text collation to utf8mb4
2017-05-23 00:36:53 +02:00
snowfag
eb0fdbfef5
update message.
2017-05-22 18:32:48 -04:00
nyaadev
3fc347d049
Move posting comments to view_torrent to fix displaying form errors.
2017-05-23 00:04:27 +02:00
nyaadev
b7144f80f9
Make comments great again.
2017-05-22 23:38:06 +02:00
snowfag
aab3eaccaa
Spruce up comments.
2017-05-22 23:20:52 +02:00
nyaadev
fee55c1792
comments can be added+removed. gravatar for user avatar
2017-05-22 23:20:49 +02:00
martstern
9bd71af1b2
only allow logged in users to comment
2017-05-22 23:19:36 +02:00
Sn0wCrack
c3a637c8eb
Added date column t o comments
2017-05-22 23:19:36 +02:00
Sn0wCrack
fe6abf33c1
Added ability for users to leave anonymous comments
2017-05-22 23:19:36 +02:00
Sn0wCrack
1a9ebc19ed
Added hard delete functionality
2017-05-22 23:19:36 +02:00
Sn0wCrack
6d608ab2f4
Added comments
2017-05-22 23:19:23 +02:00
TheAMM
1e230584ab
Re-add generated torrent tracker count limit
...
As found out in #164 , this feature disappeared somewhere along the line.
2017-05-22 23:59:21 +03:00
TheAMM
f04c3e1cf3
Remove v1 upload api and update notice
2017-05-22 22:57:37 +03:00
A nyaa developer
b241dd5508
Don't generate empty torrent file for torrents without info dict (has_torrent).
2017-05-22 20:08:41 +02:00
katnyaa
607d9b2c92
Change wording for Downloads heading
2017-05-22 15:00:06 +00:00
katnyaa
159d5a5d9e
Fix lint errors
2017-05-22 15:12:17 +01:00
TheAMM
7066fb258e
Wait, that was no dict at all! Fix v1 api default
2017-05-22 16:54:02 +03:00
TheAMM
0e57378359
API: default to trusted, properly pass CSRF to UploadForm
2017-05-22 16:51:03 +03:00
TheAMM
a1c024a342
Re-enable CSRF token for upload & fix API CSRF handling
2017-05-22 16:29:14 +03:00
katnyaa
1016d5be02
Fix typo
2017-05-22 13:02:02 +00:00
aldacron
29e878a1ec
fixed api_uploader and reverted backend.py change
2017-05-22 00:36:01 -07:00
aldacron
8fc81b395e
if is_trusted is not sent and user is trusted, torrent will marked as trusted unless specified. this also enable backward compat of v1
2017-05-21 22:53:28 -07:00
aldacron
c2438f3913
nyaadev is an idiot and broke apiv2
2017-05-21 22:10:05 -07:00
nyaadev
0a258d59e1
temporary ghetto import, will be removed once importing is done.
2017-05-22 01:49:02 +02:00
nyaadev
a4c7dd7912
Add ReCaptcha to upload page if user is not logged in.
...
Bring back CSRF to upload form (Use the upload API)
2017-05-21 19:29:21 +02:00
nyaadev
9af778217b
DB CHANGE: Add uploader ip address to torrent column and show on torrent view page for superadmins.
...
Added migration script!: remove sukebei_ lines if your local db does not have those.
Show users ip address on user page for superadmins.
Rename Admin to Moderator internally.
Moderators can now change user level to trusted.
Superadmins can make users moderator.
Improve changing user level.
2017-05-21 19:12:15 +02:00
nyaazi
92a6074fa2
Merge branch 'master' into reports
2017-05-21 18:48:45 +03:00
TheAMM
740be1a40a
Fix upload api handler: default to '' to conform better to WTForm
2017-05-21 12:41:34 +03:00
TheAMM
5408f3e7c4
Update upload api V2 + script for is_trusted
2017-05-21 12:28:37 +03:00
UnKnoWn
31d8d9ec5b
Issue #145 : Added CSS change for visited links ( #149 )
...
* Added CSS change for visited links
2017-05-21 11:38:11 +03:00
Anna-Maria Meriniemi
0475e2948d
Merge pull request #148 from nyaadevs/restructure-upload-edit
...
Restructure upload/edit templates
2017-05-21 10:28:46 +03:00
nyaazi
e13235fc97
"Unfix" the page
2017-05-20 23:00:42 +03:00
TheAMM
f31efcdaa1
Align fields better, move Anonymous as first flag
2017-05-20 22:50:49 +03:00
TheAMM
af0cca2f8c
Display full category names on upload/edit category lists
2017-05-20 22:50:40 +03:00
TheAMM
b9d88e8960
Restructure upload.html and edit.html as well as route logic
...
Rename variables and reformats user/admin logic
Add an is_trusted field to upload and edit forms
Restructure fields on upload and edit pages
Add simple styling for checkboxes
Add titles (mouseover) for checkboxes with crude explanations
Show Anonymous checkbox during upload and check & disable it for guests
Show Trusted checkbox for users at or above Trusted level
Adjust description field rendering to show field label above it
Add title (mouseover) for edit icon on torrent page
Show uploader for admins on anonymous torrents
Show uploader for admins when editing others' torrents
2017-05-20 22:00:45 +03:00
TheAMM
752a5a1f95
Clean up models.User.level helpers
2017-05-20 21:59:24 +03:00
TheAMM
2ccf23a1f3
Clean up models.User.level helpers
2017-05-20 21:56:22 +03:00
nyaazi
1705bfd6ea
Using the url_for function
2017-05-20 21:53:23 +03:00