mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 08:40:00 +00:00
Hide "Report" button for site guests (#265)
This commit is contained in:
parent
ffb2cdec5f
commit
94574d1682
|
@ -74,9 +74,11 @@
|
|||
|
||||
<div class="panel-footer clearfix">
|
||||
{% if torrent.has_torrent %}<a href="{{ url_for('download_torrent', 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 %}
|
||||
<button type="button" class="btn btn-xs btn-danger pull-right" data-toggle="modal" data-target="#reportModal">
|
||||
Report
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div><!--/.panel -->
|
||||
|
||||
|
@ -177,6 +179,7 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if g.user %}
|
||||
<div class="modal fade" id="reportModal" tabindex="-1" role="dialog" aria-labelledby="reportModalLabel">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
|
@ -207,5 +210,6 @@
|
|||
$('#reason').focus();
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue