1
0
Fork 0
friendica_2020-09-1_sharedH.../view/templates/moderation/item/source.tpl

99 lines
2.3 KiB
Smarty
Raw Normal View History

2021-03-08 22:17:27 +01:00
<div id="source" class="generic-page-wrapper">
<h2>{{$l10n.title}}</h2>
<form action="moderation/item/source" method="get" class="panel panel-default">
<div class="panel-body">
2021-03-08 22:17:27 +01:00
<div class="form-group">
{{include file="field_input.tpl" field=$guid_field}}
2021-03-08 22:17:27 +01:00
</div>
<p><button type="submit" class="btn btn-primary">{{$l10n.submit}}</button></p>
2018-10-19 04:49:25 +02:00
</div>
2021-03-08 22:17:27 +01:00
</form>
{{if $guid}}
2021-03-08 22:17:27 +01:00
<div class="itemsource-results">
{{if $item_id}}
2021-03-08 22:17:27 +01:00
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{$l10n.itemidlbl}}</h3>
2021-03-08 22:17:27 +01:00
</div>
<div class="panel-body">
{{$item_id}}
</div>
2018-10-19 04:49:25 +02:00
</div>
2021-03-08 22:17:27 +01:00
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{$l10n.itemurilbl}}</h3>
2021-03-08 22:17:27 +01:00
</div>
<div class="panel-body">
{{$item_uri}}
</div>
</div>
2021-03-08 22:17:27 +01:00
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{$l10n.termslbl}}</h3>
2021-03-08 22:17:27 +01:00
</div>
<div class="panel-body">
<table class="table table-condensed table-striped">
<tr>
<th>{{$l10n.typelbl}}</th>
<th>{{$l10n.termlbl}}</th>
<th>{{$l10n.urllbl}}</th>
2021-03-08 22:17:27 +01:00
</tr>
{{foreach $terms as $term}}
2021-03-08 22:17:27 +01:00
<tr>
<td>
{{if $term.type == 1}}
{{$l10n.taglbl}}
{{/if}}
{{if $term.type == 2}}
{{$l10n.mentionlbl}}
{{/if}}
{{if $term.type == 8}}
{{$l10n.implicitlbl}}
{{/if}}
2021-03-08 22:17:27 +01:00
</td>
<td>
{{$term.name}}
</td>
<td>
{{$term.url}}
</td>
</tr>
{{/foreach}}
2021-03-08 22:17:27 +01:00
</table>
</div>
</div>
{{if $source}}
2021-03-08 22:17:27 +01: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 04:49:25 +02:00
</div>
{{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 04:49:25 +02:00
</div>
{{/if}}
</div>