Commit graph

17 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
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
Kfir Hadas
467270837c Enable linkify for Markdown parser
Autoconvert URL-like text to links
2017-06-05 02:36:18 +03: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
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
a64cac5e5e Basic collapsible file tree 2017-05-25 12:53:23 +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
Kfir Hadas
e8885df2b4 Drag&Drog in upload 2017-05-17 20:14:26 +03:00
Nazo
40d7540058 Handle softbreaks properly with commonmark, fixes #100 2017-05-17 18:54:17 +03:00
Nazo
2523201757 Use spaces instead of tabs 2017-05-16 21:32:54 +03:00
Nazo
6f61970559 Switch marked to commonmark 2017-05-16 21:29:22 +03:00
TheAMM
675edb08c3 Oops, remove debug log 2017-05-14 11:25:09 +03:00
TheAMM
cf77b03a6f Convert UTC to local time in JS
Also adds classes to row headers to accurately access them in JS.
Updates the serverside date format in view.html to match YYYY-MM-DD HH:MM
2017-05-14 11:23:02 +03:00
TheAMM
3bdff6246f Fix markdown linebreaks and match preview render options with final 2017-05-14 09:38:19 +03:00
Nathan Yam
fabe0f6fec Issue #10 Add markdown preview editor
These changes add a macro that creates the relevant HTML markup for a
markdown editor. In the main.js file, we bind the relevant elements with
the marked library, so users can see their contents in a HTML format.
2017-05-14 15:33:08 +10:00
TheAMM
39230e1f39 [templates] Add JS-calculated hovertext for date ages
On torrent listing and torrent view, mouse over the times to see "X hours Y minutes Z seconds ago" etc
2017-05-13 02:41:52 +03:00
nyaadev
00d65e312c Initial commit. 2017-05-12 20:51:49 +02:00