aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-19 19:29:35 +0000
committerMario <mario@mariovavti.com>2021-04-19 19:29:35 +0000
commit751d6fe8a4963036364f7e80d110b43bc551c893 (patch)
tree7249eb9da948e09eeba85eab066f531c9114a4ab
parent20ca6676d291cf03e6790d6ec5106c10712dd6e8 (diff)
downloadvolse-hubzilla-751d6fe8a4963036364f7e80d110b43bc551c893.tar.gz
volse-hubzilla-751d6fe8a4963036364f7e80d110b43bc551c893.tar.bz2
volse-hubzilla-751d6fe8a4963036364f7e80d110b43bc551c893.zip
register: minor strings changes and whitespace
-rw-r--r--Zotlabs/Module/Admin/Accounts.php2
-rw-r--r--view/tpl/admin_accounts.tpl89
2 files changed, 46 insertions, 45 deletions
diff --git a/Zotlabs/Module/Admin/Accounts.php b/Zotlabs/Module/Admin/Accounts.php
index 4d32beee1..1c1911b3a 100644
--- a/Zotlabs/Module/Admin/Accounts.php
+++ b/Zotlabs/Module/Admin/Accounts.php
@@ -314,7 +314,7 @@ class Accounts {
'$sel_aprv' => t('Approve selected'),
'$h_pending' => (($get_all) ? t('All registrations') : t('Verified registrations waiting for approval')),
'$th_pending' => array(t('Request date'), 'dId2', t('Email'), 'IP', t('Requests')),
- '$no_pending' => t('No verified registrations.'),
+ '$no_pending' => (($get_all) ? t('No registrations available') : t('No verified registrations available')),
'$approve' => t('Approve'),
'$deny' => t('Deny'),
'$delete' => t('Delete'),
diff --git a/view/tpl/admin_accounts.tpl b/view/tpl/admin_accounts.tpl
index 815a6f6f3..f4865f7a0 100644
--- a/view/tpl/admin_accounts.tpl
+++ b/view/tpl/admin_accounts.tpl
@@ -5,50 +5,51 @@
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
<h3>{{$h_pending}}</h3>
- {{if $debug}}<div>{{$debug}}</div>{{/if}}
- {{if $pending}}
- <table id="pending">
- <thead>
- <tr>
- {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
- <th></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- {{foreach $pending as $n => $u}}
- <tr title="{{$u.status.0}}" class="{{$u.status.1}}">
- <td class="text-nowrap">{{$u.reg_created}}</td>
- <td class="text-nowrap">{{$u.reg_did2}}</td>
- <td class="text-break">{{$u.reg_email}}</td>
- <td class="">{{$u.reg_atip}}</td>
- <td class="">{{$u.reg_atip_n}}</td>
- <td class="checkbox_bulkedit"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$n}}" name="pending[]" value="{{$n}}"></td>
- <td class="tools">
- <a id="zara_{{$n}}" {{* href="{{$baseurl}}/regmod/allow/{{$n}}" *}} class="zar2s zara btn btn-default btn-xs" title="{{$approve}}"><i class="fa fa-thumbs-o-up admin-icons"></i></a>
- <a id="zard_{{$n}}" {{* href="{{$baseurl}}/regmod/deny/{{$n}}" *}} class="zar2s zard btn btn-default btn-xs" title="{{$deny}}"><i class="fa fa-thumbs-o-down admin-icons"></i></a>
- <span id="zarreax_{{$n}}" class="zarreax"></span>
- </td>
- </tr>
- <tr title="{{$u.status.0}}" class="{{$u.status.1}}">
- <td colspan="7"><strong>{{$msg}}:</strong> {{$u.msg}}</td>
- </tr>
- {{/foreach}}
- </tbody>
- </table>
- <div class="float-left">
- <a class="btn btn-link" href="{{$get_all_link}}">{{$get_all}}</a>
- </div>
- <div class="float-right">
- <a id="zar2sat" class="btn btn-sm btn-primary" href="javascript:;">{{$sel_tall}}</a>
- <a id="zar2aas" class="zar2xas btn btn-sm btn-success" href="javascript:;"><i class="fa fa-check"></i> {{$sel_aprv}}</a>
- <a id="zar2das" class="zar2xas btn btn-sm btn-danger" href="javascript:;"><i class="fa fa-close"></i> {{$sel_deny}}</a>
- </div>
- <div class="clearfix"></div>
- {{else}}
- <p>{{$no_pending}}</p>
- {{/if}}
-
+ {{if $debug}}<div>{{$debug}}</div>{{/if}}
+ {{if $pending}}
+ <table id="pending">
+ <thead>
+ <tr>
+ {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
+ <th></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{foreach $pending as $n => $u}}
+ <tr title="{{$u.status.0}}" class="{{$u.status.1}}">
+ <td class="text-nowrap">{{$u.reg_created}}</td>
+ <td class="text-nowrap">{{$u.reg_did2}}</td>
+ <td class="text-break">{{$u.reg_email}}</td>
+ <td class="">{{$u.reg_atip}}</td>
+ <td class="">{{$u.reg_atip_n}}</td>
+ <td class="checkbox_bulkedit"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$n}}" name="pending[]" value="{{$n}}"></td>
+ <td class="tools">
+ <a id="zara_{{$n}}" {{* href="{{$baseurl}}/regmod/allow/{{$n}}" *}} class="zar2s zara btn btn-default btn-xs" title="{{$approve}}"><i class="fa fa-thumbs-o-up admin-icons"></i></a>
+ <a id="zard_{{$n}}" {{* href="{{$baseurl}}/regmod/deny/{{$n}}" *}} class="zar2s zard btn btn-default btn-xs" title="{{$deny}}"><i class="fa fa-thumbs-o-down admin-icons"></i></a>
+ <span id="zarreax_{{$n}}" class="zarreax"></span>
+ </td>
+ </tr>
+ <tr title="{{$u.status.0}}" class="{{$u.status.1}}">
+ <td colspan="7"><strong>{{$msg}}:</strong> {{$u.msg}}</td>
+ </tr>
+ {{/foreach}}
+ </tbody>
+ </table>
+ <div class="float-right">
+ <a id="zar2sat" class="btn btn-sm btn-primary" href="javascript:;">{{$sel_tall}}</a>
+ <a id="zar2aas" class="zar2xas btn btn-sm btn-success" href="javascript:;"><i class="fa fa-check"></i> {{$sel_aprv}}</a>
+ <a id="zar2das" class="zar2xas btn btn-sm btn-danger" href="javascript:;"><i class="fa fa-close"></i> {{$sel_deny}}</a>
+ </div>
+ {{else}}
+ <div class="text-muted">
+ {{$no_pending}}
+ </div>
+ {{/if}}
+ <div class="float-left">
+ <a class="btn btn-sm btn-link" href="{{$get_all_link}}">{{$get_all}}</a>
+ </div>
+ <div class="clearfix"></div>
<br><br>
<h3>{{$h_users}}</h3>
{{if $users}}