New help section for IRC and some prod changes I never put in the repo because lazy.

This commit is contained in:
Arylide 2018-02-22 23:23:53 -08:00
parent 8de2663fc2
commit 0b98b2454a
4 changed files with 30 additions and 6 deletions

View File

@ -101,6 +101,30 @@
At the moment we have no established process for granting trusted status to users
who did not previously have it. If and when we establish such a process it will be announced.
</div>
{{ linkable_header("IRC Help Channel Policies", "irchelp") }}
<div>
<p>Our IRC help channel is at Rizon <a href="irc://irc.rizon.net/nyaa-help">#nyaa-help</a>. A webchat link
pre-filled with our channel is available <a href="https://qchat.rizon.net/?channels=nyaa-help&uio=d4">right here</a>.</p>
<b>Read this to avoid getting banned:</b>
<ul>
<li>The IRC channel is for site support <b>only</b>.</li>
<li>XDCC, similar services, and their triggers are not allowed.</li>
<li>Do not idle if you do not need site support unless you have voice/+ access, you may be removed otherwise</li>
<li>We do not know when A or B will be released, if it's authentic, or anything about a particular release. Do not ask.</li>
<li><b>Requests are not allowed.</b> We only manage the site; we do not necessarily have the material you want on hand.</li>
<li>Use English only. Even though we aren't all from English-speaking countries, we need level ground to communicate on.</li>
<li><b>Do NOT under any circumstances send private messages to the staff. Ask your question in the channel on joining and wait; a staff member will respond in due time.</b></li>
</ul>
<b>Keep these things in mind when asking for help:</b>
<ul>
<li>We are not interested in your user name. Paste a link to your account if you want us to do something with it.</li>
<li>Provide as many details as possible. If you are having trouble submitting any kind of entry, we want to know everything about you and what (except any passwords) you supply to the form in question.</li>
</ul>
</div>
{# <div class="content">
<h1>Help</h1>
<p><b>The search engine</b> is located at the top right, and it allows users to search through the torrent titles available on the site. Results matching either word A or B can be included by typing a vertical bar between them (|). Results matching a certain word can be excluded by prefixing that word with a hyphen-minus (-). Phrases can be matched by surrounding them with double-quotes (). Search results can be filtered by category, remake, trusted, and/or A+ status, and then narrowed down further by age and size ranges as well as excluding specific users. Sorting can be done in ascending or descending order by date, amount of seeders/leechers/downloads, size, or name. The search engine adapts to the current view and makes it possible to search for specific torrents in a specific subcategory from a specific user.</p>

View File

@ -80,7 +80,7 @@
<li {% if request.path == url_for('torrents.upload') %}class="active"{% endif %}><a href="{{ url_for('torrents.upload') }}">Upload</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
About
Info
<span class="caret"></span>
</a>
<ul class="dropdown-menu">

View File

@ -74,7 +74,7 @@
<div class="panel-footer clearfix">
{% if torrent.has_torrent %}<a href="{{ url_for('torrents.download', torrent_id=torrent.id )}}"><i class="fa fa-download fa-fw"></i>Download Torrent</a> or {% endif %}<a href="{{ torrent.magnet_uri }}" class="card-footer-item"><i class="fa fa-magnet fa-fw"></i>Magnet</a>
{% if g.user %}
{% if g.user and g.user.age > config['RATELIMIT_ACCOUNT_AGE'] %}
<button type="button" class="btn btn-xs btn-danger pull-right" data-toggle="modal" data-target="#reportModal">
Report
</button>
@ -162,7 +162,7 @@
{% if g.user.id == comment.user_id and not comment.editing_limit_exceeded %}
<button class="btn btn-xs edit-comment" title="Edit"{% if config.EDITING_TIME_LIMIT %} data-until="{{ comment.editable_until|int }}"{% endif %}>Edit</button>
{% endif %}
{% if g.user.is_moderator or g.user.id == comment.user_id %}
{% if g.user.is_superadmin or g.user.id == comment.user_id %}
<form class="delete-comment-form" action="{{ url_for('torrents.delete_comment', torrent_id=torrent.id, comment_id=comment.id) }}" method="POST">
<button name="submit" type="submit" class="btn btn-danger btn-xs" title="Delete">Delete</button>
</form>
@ -224,7 +224,7 @@
{% endif %}
</div>
{% if g.user %}
{% if g.user and g.user.age > config['RATELIMIT_ACCOUNT_AGE'] %}
<div class="modal fade" id="reportModal" tabindex="-1" role="dialog" aria-labelledby="reportModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">

View File

@ -359,7 +359,7 @@ def delete_comment(torrent_id, comment_id):
if not comment:
flask.abort(404)
if not (comment.user.id == flask.g.user.id or flask.g.user.is_moderator):
if not (comment.user.id == flask.g.user.id or flask.g.user.is_superadmin):
flask.abort(403)
if torrent_id != comment.torrent_id:
@ -383,7 +383,7 @@ def delete_comment(torrent_id, comment_id):
@bp.route('/view/<int:torrent_id>/submit_report', endpoint='report', methods=['POST'])
def submit_report(torrent_id):
if not flask.g.user:
if not flask.g.user or flask.g.user.age < app.config['RATELIMIT_ACCOUNT_AGE']:
flask.abort(403)
form = forms.ReportForm(flask.request.form)