a681d8739f41f626434dd43e58d4dac661d4334d
[friendica.git/.git] / view / templates / admin / item / source.tpl
1 <h2>Item Source</h2>
2 <form action="admin/item/source" method="get" class="panel panel-default">
3         <div class="panel-body">
4                 <div class="form-group">
5                         {{include file="field_input.tpl" field=$guid}}
6                 </div>
7                 <p><button type="submit" class="btn btn-primary">Submit</button></p>
8         </div>
9 </form>
10
11 {{if $source}}
12 <div class="itemsource-results">
13         <div class="panel panel-default">
14                 <div class="panel-heading">
15                         <h3 class="panel-title">Item Id</h3>
16                 </div>
17                 <div class="panel-body">
18                         {{$item_id}}
19                 </div>
20         </div>
21         <div class="panel panel-default">
22                 <div class="panel-heading">
23                         <h3 class="panel-title">Item URI</h3>
24                 </div>
25                 <div class="panel-body">
26                         {{$item_uri}}
27                 </div>
28         </div>
29         <div class="panel panel-default">
30                 <div class="panel-heading">
31                         <h3 class="panel-title">Terms</h3>
32                 </div>
33                 <div class="panel-body">
34                         <table class="table table-condensed table-striped">
35                                 <tr>
36                                         <th>Type</th>
37                                         <th>Term</th>
38                                         <th>URL</th>
39                                 </tr>
40                 {{foreach $terms as $term}}
41                                 <tr>
42                                         <td>
43                         {{if $term.type == 1}}Tag{{/if}}
44                         {{if $term.type == 2}}Mention{{/if}}
45                         {{if $term.type == 8}}Implicit Mention{{/if}}
46                                         </td>
47                                         <td>
48                                                 {{$term.name}}
49                                         </td>
50                                         <td>
51                                                 {{$term.url}}
52                                         </td>
53                                 </tr>
54                 {{/foreach}}
55                         </table>
56                 </div>
57         </div>
58         <div class="panel panel-default">
59                 <div class="panel-heading">
60                         <h3 class="panel-title">Source</h3>
61                 </div>
62                 <pre><code class="language-php">{{$source}}</code></pre>
63         </div>
64 </div>
65 {{/if}}