1
0
Fork 0
mirror of https://github.com/ProjectSynthoria/SynthoriaArchive.git synced 2025-03-12 23:36:54 +02:00
Commit graph

58 commits

Author SHA1 Message Date
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
Kfir Hadas
94574d1682 Hide "Report" button for site guests (#265) 2017-06-14 20:07:53 +03: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
Alex Ingram
0a12db74d0 Change report button to btn-xs as a temporary fix. 2017-06-05 00:45:50 -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
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
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
nyaazi
5332ba1a49 Merge branch 'master' into reports 2017-05-26 15:25:02 +03:00
shm0o
8b7712b1d0 templates/view.html: use url_for for the 'edit_torrent' endpoint 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
Kfir Hadas
559602d19b Fix inverted icons in file list 2017-05-25 22:16:12 +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
Kfir Hadas
e91fdb70da Strip collapse functionality from file list panel 2017-05-25 16:41:07 +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
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
aldacron
d5e2311c56 Resolves #181 2017-05-24 23:25:21 -07:00
TheAMM
0e89d3f24b Show torrent hash on torrent page 2017-05-24 17:17:51 +03:00
ReimuHakurei
3418cb6175 More validation. 2017-05-24 06:45:00 +00:00
ReimuHakurei
42928c2a41 More validation. 2017-05-24 06:19:15 +00: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
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
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
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
katnyaa
607d9b2c92 Change wording for Downloads heading 2017-05-22 15:00:06 +00: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
nyaazi
e13235fc97 "Unfix" the page 2017-05-20 23:00:42 +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
nyaazi
73c84ce5ec Remove duplicate reports for already reviewed torrent 2017-05-20 13:58:58 +03:00
nyaazi
354736720b Implemented report action
Actions: Close report, Hide torrent, Delete torrent
2017-05-20 13:33:58 +03:00
nyaazi
799d5914d6 Added reports page 2017-05-19 20:52:04 +03:00
nyaazi
98fbe6efb1 Adding report table, route and view. 2017-05-19 20:03:47 +03:00
Nazo
40d7540058 Handle softbreaks properly with commonmark, fixes #100 2017-05-17 18:54:17 +03:00
Johnny Ding
0093b2bf4f Merge pull request #76 from sharkykh/fix-file-list
Fix padding for single file in torrent file list
2017-05-16 23:53:43 -07:00
Nazo
6f61970559 Switch marked to commonmark 2017-05-16 21:29:22 +03:00
Kfir Hadas
261490daa7 Fix padding for single file in torrent file list 2017-05-16 11:53:13 +03:00
TheAMM
7f767072cf Fix icon spacing in torrent filelist
As noted in #66
2017-05-15 09:50:58 +03:00
sharkykh
6be5326f45 Reformat code some more 2017-05-15 09:37:02 +03:00
sharkykh
bd1a9f5cf4 Reformat 2017-05-15 09:34:22 +03:00