]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/acl_selector.tpl
Merge branch 'master' into develop
[friendica.git] / view / templates / acl_selector.tpl
index c1220bc1e301a6d9645a7911c4736beb08ecbbdf..6755f2a198fd13eab1af641a84eec303d647f420 100644 (file)
@@ -1,7 +1,7 @@
 
 <div id="acl-wrapper">
        <input id="acl-search">
-       <a href="#" id="acl-showall">{{$showall}}</a>
+       <a id="acl-showall">{{$showall}}</a>
        <div id="acl-list">
                <div id="acl-list-content">
                </div>
 
 <div class="acl-list-item" rel="acl-template" style="display:none">
        <img data-src="{0}"><p>{1}</p>
-       <a href="#" class='acl-button-show'>{{$show}}</a>
-       <a href="#" class='acl-button-hide'>{{$hide}}</a>
+       <a class='acl-button-show'>{{$show}}</a>
+       <a class='acl-button-hide'>{{$hide}}</a>
 </div>
 
 {{if $networks}}
 <hr style="clear:both"/>
-<div id="profile-jot-email-label">{{$emailcc}}</div><input type="text" name="emailcc" id="profile-jot-email" title="{{$emtitle|escape:'html'}}" />
+<div id="profile-jot-email-label">{{$emailcc}}</div><input type="text" name="emailcc" id="profile-jot-email" title="{{$emtitle}}" />
 <div id="profile-jot-email-end"></div>
-{{if $jotnets}}
-{{$jotnets}}
-{{/if}}{{/if}}
+
+       {{if $jotnets_fields}}
+               {{if $jotnets_fields|count < 3}}
+<div class="profile-jot-net">
+               {{else}}
+<details class="profile-jot-net">
+       <summary>{{$jotnets_summary}}</summary>
+               {{/if}}
+
+               {{foreach $jotnets_fields as $jotnets_field}}
+                       {{if $jotnets_field.type == 'checkbox'}}
+                               {{include file="field_checkbox.tpl" field=$jotnets_field.field}}
+                       {{elseif $jotnets_field.type == 'select'}}
+                               {{include file="field_select.tpl" field=$jotnets_field.field}}
+                       {{/if}}
+               {{/foreach}}
+
+               {{if $jotnets_fields|count >= 3}}
+</details>
+               {{else}}
+</div>
+               {{/if}}
+       {{/if}}
+{{/if}}
 
 <script>
 $(document).ready(function() {
        if(typeof acl=="undefined"){
                acl = new ACL(
                        baseurl+"/acl",
-                       [ {{$allowcid}},{{$allowgid}},{{$denycid}},{{$denygid}} ],
-                       {{$features.aclautomention}}
+                       [ {{$allowcid nofilter}},{{$allowgid nofilter}},{{$denycid nofilter}},{{$denygid nofilter}} ],
+                       {{$features.aclautomention}},
+                       {{if $APP->is_mobile}}true{{else}}false{{/if}}
                );
        }
 });