2021-03-08 21:17:27 +00:00
|
|
|
<div id="source" class="generic-page-wrapper">
|
2022-11-08 08:24:20 +00:00
|
|
|
<h2>{{$l10n.title}}</h2>
|
|
|
|
<form action="moderation/item/source" method="get" class="panel panel-default">
|
2019-02-22 02:37:23 +00:00
|
|
|
<div class="panel-body">
|
2021-03-08 21:17:27 +00:00
|
|
|
<div class="form-group">
|
2022-11-08 08:24:20 +00:00
|
|
|
{{include file="field_input.tpl" field=$guid_field}}
|
2021-03-08 21:17:27 +00:00
|
|
|
</div>
|
2022-11-08 08:24:20 +00:00
|
|
|
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
|
2018-10-19 02:49:25 +00:00
|
|
|
</div>
|
2021-03-08 21:17:27 +00:00
|
|
|
</form>
|
|
|
|
|
2022-11-08 08:24:20 +00:00
|
|
|
{{if $guid}}
|
2021-03-08 21:17:27 +00:00
|
|
|
<div class="itemsource-results">
|
2022-11-08 08:24:20 +00:00
|
|
|
{{if $item_id}}
|
2021-03-08 21:17:27 +00:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2022-11-08 08:24:20 +00:00
|
|
|
<h3 class="panel-title">{{$l10n.itemidlbl}}</h3>
|
2021-03-08 21:17:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{{$item_id}}
|
|
|
|
</div>
|
2018-10-19 02:49:25 +00:00
|
|
|
</div>
|
2021-03-08 21:17:27 +00:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2022-11-08 08:24:20 +00:00
|
|
|
<h3 class="panel-title">{{$l10n.itemurilbl}}</h3>
|
2021-03-08 21:17:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{{$item_uri}}
|
|
|
|
</div>
|
2019-02-22 02:37:23 +00:00
|
|
|
</div>
|
2021-03-08 21:17:27 +00:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2022-11-08 08:24:20 +00:00
|
|
|
<h3 class="panel-title">{{$l10n.termslbl}}</h3>
|
2021-03-08 21:17:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<table class="table table-condensed table-striped">
|
|
|
|
<tr>
|
2022-11-08 08:24:20 +00:00
|
|
|
<th>{{$l10n.typelbl}}</th>
|
|
|
|
<th>{{$l10n.termlbl}}</th>
|
|
|
|
<th>{{$l10n.urllbl}}</th>
|
2021-03-08 21:17:27 +00:00
|
|
|
</tr>
|
2022-11-08 08:24:20 +00:00
|
|
|
{{foreach $terms as $term}}
|
2021-03-08 21:17:27 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
2022-11-08 08:24:20 +00:00
|
|
|
{{if $term.type == 1}}
|
|
|
|
{{$l10n.taglbl}}
|
|
|
|
{{/if}}
|
|
|
|
{{if $term.type == 2}}
|
|
|
|
{{$l10n.mentionlbl}}
|
|
|
|
{{/if}}
|
|
|
|
{{if $term.type == 8}}
|
|
|
|
{{$l10n.implicitlbl}}
|
|
|
|
{{/if}}
|
2021-03-08 21:17:27 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{$term.name}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{$term.url}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-11-08 08:24:20 +00:00
|
|
|
{{/foreach}}
|
2021-03-08 21:17:27 +00:00
|
|
|
</table>
|
|
|
|
</div>
|
2019-02-22 02:37:23 +00:00
|
|
|
</div>
|
2022-11-08 08:24:20 +00:00
|
|
|
{{if $source}}
|
2021-03-08 21:17:27 +00:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{{$sourcelbl}}</h3>
|
|
|
|
</div>
|
|
|
|
<pre><code class="language-php">{{$source}}</code></pre>
|
2018-10-19 02:49:25 +00:00
|
|
|
</div>
|
2022-11-08 08:24:20 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="panel panel-warning">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{{$l10n.error}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p>{{$l10n.nosource}}</p>
|
|
|
|
{{if $l10n.noconfig}}
|
|
|
|
<p>{{$l10n.noconfig nofilter}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
<div class="panel panel-danger">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{{$l10n.error}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{{$l10n.notfound}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-10-19 02:49:25 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-11-08 08:24:20 +00:00
|
|
|
</div>
|