Browse Source

added feedback

pull/7083/head
Philipp Holzer 2 years ago
parent
commit
9123361d61
No known key found for this signature in database GPG Key ID: 517BE60E2CE5C8A5
4 changed files with 69 additions and 65 deletions
  1. +1
    -1
      src/Model/User.php
  2. +1
    -1
      src/Module/Friendica.php
  3. +26
    -24
      view/templates/feedtest.tpl
  4. +41
    -39
      view/templates/friendica.tpl

+ 1
- 1
src/Model/User.php View File

@ -130,7 +130,7 @@ class User
}
/**
* Get a user based on it's email
* Get a user based on its email
*
* @param string $email
* @param array $fields


+ 1
- 1
src/Module/Friendica.php View File

@ -76,7 +76,7 @@ class Friendica extends BaseModule
'<strong>' . FRIENDICA_VERSION . '</strong>',
$app->getBaseURL(),
'<strong>' . DB_UPDATE_VERSION . '</strong>',
'<strong>' . $config->get("system", "post_update_version") . '</strong>'),
'<strong>' . $config->get('system', 'post_update_version') . '</strong>'),
'friendica' => L10n::t('Please visit <a href="https://friendi.ca">Friendi.ca</a> to learn more about the Friendica project.'),
'bugs' => L10n::t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">' . L10n::t('the bugtracker at github') . '</a>',
'info' => L10n::t('Suggestions, praise, etc. - please email "info" at "friendi - dot - ca'),


+ 26
- 24
view/templates/feedtest.tpl View File

@ -1,30 +1,32 @@
<h2>Feed Test</h2>
<form action="feedtest" method="get" class="panel panel-default">
<div class="panel-body">
<div class="form-group">
{{include file="field_input.tpl" field=$url}}
</div>
<p><button type="submit" class="btn btn-primary">Submit</button></p>
</div>
</form>
{{if $result}}
<div class="feedtest-result">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Output Items</h3>
</div>
<div id="feedtest" class="widget">
<h2>Feed Test</h2>
<form action="feedtest" method="get" class="panel panel-default">
<div class="panel-body">
<pre>{{$result.output}}</pre>
<div class="form-group">
{{include file="field_input.tpl" field=$url}}
</div>
<p><button type="submit" class="btn btn-primary">Submit</button></p>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Input Feed XML</h3>
</form>
{{if $result}}
<div class="feedtest-result">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Output Items</h3>
</div>
<div class="panel-body">
<pre>{{$result.output}}</pre>
</div>
</div>
<div class="panel-body">
{{$result.input}}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Input Feed XML</h3>
</div>
<div class="panel-body">
{{$result.input}}
</div>
</div>
</div>
{{/if}}
</div>
{{/if}}

+ 41
- 39
view/templates/friendica.tpl View File

@ -1,45 +1,47 @@
<h1>Friendica</h1>
<br>
<p>{{$about nofilter}}</p>
<br>
<p>{{$friendica nofilter}}</p>
<br>
<p>{{$bugs nofilter}}</p>
<br>
<p>{{$info nofilter}}</p>
<br>
<div id="friendica" class="widget">
<h1>Friendica</h1>
<br>
<p>{{$about nofilter}}</p>
<br>
<p>{{$friendica nofilter}}</p>
<br>
<p>{{$bugs nofilter}}</p>
<br>
<p>{{$info nofilter}}</p>
<br>
<p>{{$visible_addons.title nofilter}}</p>
{{if $visible_addons.list}}
<div style="margin-left: 25px; margin-right: 25px; margin-bottom: 25px;">{{$visible_addons.list nofilter}}</div>
{{/if}}
<p>{{$visible_addons.title nofilter}}</p>
{{if $visible_addons.list}}
<div style="margin-left: 25px; margin-right: 25px; margin-bottom: 25px;">{{$visible_addons.list nofilter}}</div>
{{/if}}
{{if $tos}}
<p>{{$tos nofilter}}</p>
{{/if}}
{{if $tos}}
<p>{{$tos nofilter}}</p>
{{/if}}
{{if $block_list}}
<div id="about_blocklist">
<p>{{$block_list.title nofilter}}</p>
<br>
<table class="table">
<thead>
<tr>
<th>{{$block_list.header[0] nofilter}}</th>
<th>{{$block_list.header[1] nofilter}}</th>
</tr>
</thead>
<tbody>
{{foreach $block_list.list as $blocked}}
<tr>
<td>{{$blocked.domain nofilter}}</td>
<td>{{$blocked.reason nofilter}}</td>
</tr>
{{/foreach}}
</tbody>
</table>
</div>
{{if $block_list}}
<div id="about_blocklist">
<p>{{$block_list.title nofilter}}</p>
<br>
<table class="table">
<thead>
<tr>
<th>{{$block_list.header[0] nofilter}}</th>
<th>{{$block_list.header[1] nofilter}}</th>
</tr>
</thead>
<tbody>
{{foreach $block_list.list as $blocked}}
<tr>
<td>{{$blocked.domain nofilter}}</td>
<td>{{$blocked.reason nofilter}}</td>
</tr>
{{/foreach}}
</tbody>
</table>
</div>
{{/if}}
{{/if}}
{{$hooked nofilter}}
</div>

Loading…
Cancel
Save