mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 20:29:59 +00:00
More validation.
This commit is contained in:
parent
3efda25f88
commit
42928c2a41
|
@ -37,12 +37,12 @@
|
||||||
{{ field.label(class='control-label') }}
|
{{ field.label(class='control-label') }}
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li role="presentation" class="active">
|
<li role="presentation" class="active">
|
||||||
<a href="#{{ field_name }}-tab" aria-controls="" role="tab" data-toggle="tab">
|
<a href="#{{ field_name }}-tab" role="tab" data-toggle="tab">
|
||||||
Write
|
Write
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation">
|
<li role="presentation">
|
||||||
<a href="#{{ field_name }}-preview" id="{{ field_name }}-preview-tab" aria-controls="preview" role="tab" data-toggle="tab">
|
<a href="#{{ field_name }}-preview" id="{{ field_name }}-preview-tab" role="tab" data-toggle="tab">
|
||||||
Preview
|
Preview
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -83,17 +83,17 @@
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading panel-heading-collapse">
|
<div class="panel-heading panel-heading-collapse">
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
<div class="row">
|
|
||||||
<a class="collapsed col-md-12" data-target="#collapseFileList" data-toggle="collapse" style="color:inherit;text-decoration:none;">File list</a>
|
<a class="collapsed col-md-12" data-target="#collapseFileList" data-toggle="collapse" style="color:inherit;text-decoration:none;">File list</a>
|
||||||
</div>
|
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-collapse collapse" id="collapseFileList">
|
<div class="panel-collapse collapse" id="collapseFileList">
|
||||||
<table class="table table-bordered table-hover table-striped">
|
<table class="table table-bordered table-hover table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
<tr>
|
||||||
<th style="width:auto;">Path</th>
|
<th style="width:auto;">Path</th>
|
||||||
<th style="width:auto;">Size</th>
|
<th style="width:auto;">Size</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{%- for key, value in files.items() recursive %}
|
{%- for key, value in files.items() recursive %}
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading panel-heading-collapse">
|
<div class="panel-heading panel-heading-collapse">
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
<div class="row"><div class="col-md-12">Too many files to display.</div></div>
|
Too many files to display.
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading panel-heading-collapse">
|
<div class="panel-heading panel-heading-collapse">
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
<div class="row"><div class="col-md-12">File list is not available for this torrent.</div></div>
|
File list is not available for this torrent.
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
(uploader)
|
(uploader)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
<p><img class="avatar" src="{{ comment.user.gravatar_url() }}"></p>
|
<p><img class="avatar" src="{{ comment.user.gravatar_url() }}" alt="{{ comment.user.userlevel_str }}"></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
var target = document.getElementById('torrent-comment{{ comment.id }}');
|
var target = document.getElementById('torrent-comment{{ comment.id }}');
|
||||||
var text = target.innerHTML;
|
var text = target.innerHTML;
|
||||||
var reader = new commonmark.Parser({safe: true});
|
var reader = new commonmark.Parser({safe: true});
|
||||||
|
|
Loading…
Reference in a new issue