Hide "Report" button for site guests (#265)

This commit is contained in:
Kfir Hadas 2017-06-14 20:07:53 +03:00 committed by Anna-Maria Meriniemi
parent ffb2cdec5f
commit 94574d1682
1 changed files with 4 additions and 0 deletions

View File

@ -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 %}