diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index 8862e7f..7ed25ff 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -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 %}