]> git.mxchange.org Git - friendica.git/commitdiff
[frio] Fix indentation and wrong button tag usage in vcard templates
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 5 Nov 2023 13:48:08 +0000 (08:48 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 6 Nov 2023 00:34:35 +0000 (19:34 -0500)
view/theme/frio/templates/profile/vcard.tpl
view/theme/frio/templates/widget/vcard.tpl

index 86d6bd9179ef5b7bb5768dd53a7850044edb1f1e..b41b206ee1a9d62edbacb2becb8f76edc1854c05 100644 (file)
                                </button>
                        </div>
                        {{/if}}
-                        {{if $profile.addr}}
-                               <div id="mention-link-button">
-                                       <button type="button" id="mention-link" class="btn btn-labeled btn-primary" onclick="openWallMessage('{{$mention_url}}')">
-                                              <span class=""><i class="fa fa-pencil-square-o"></i></span>
-                                              <span class="">{{$mention_label}}</span>
-                               </div>
+            {{if $profile.addr}}
+                       <div id="mention-link-button">
+                               <button type="button" id="mention-link" class="btn btn-labeled btn-primary" onclick="openWallMessage('{{$mention_url}}')">
+                                       <span class=""><i class="fa fa-pencil-square-o"></i></span>
+                                       <span class="">{{$mention_label}}</span>
+                               </button>
+                       </div>
                        {{/if}}
-                        {{if $network_label}}
-                               <div id="showgroup-button">
-                                       <button type="button" id="showgroup" class="btn btn-labeled btn-primary" onclick="window.location.href=('{{$network_url}}')">
-                                              <span class=""><i class="fa fa-group"></i></span>
-                                              <span class="">{{$network_label}}</span>
-                               </div>
+            {{if $network_label}}
+                       <div id="showgroup-button">
+                               <a id="showgroup" class="btn btn-labeled btn-primary" href="{{$network_url}}">
+                                       <span class=""><i class="fa fa-group"></i></span>
+                                       <span class="">{{$network_label}}</span>
+                               </a>
+                       </div>
                        {{/if}}
                </div>
                {{/if}}
index 9f030a8ef0a8faf25ebb29968cf3abcd58a0db7f..fff5a4b0e34785bb729cb27db85dfa350a4fbae1 100644 (file)
                        {{/if}}
                        {{if $showgroup_link}}
                                <div id="show-group-button">
-                                       <button type="button" id="show-group" class="btn btn-labeled btn-primary{{if !$always_open_compose}} modal-open{{/if}}" onclick="window.location.href='{{$showgroup_link}}'" title="{{$showgroup}}" aria-label="{{$showgroup}}">
+                                       <a type="button" id="show-group" class="btn btn-labeled btn-primary" href="{{$showgroup_link}}" title="{{$showgroup}}" aria-label="{{$showgroup}}">
                                                <span class=""><i class="fa fa-group"></i></span>
                                                <span class="">{{$showgroup}}</span>
-                                       </button>
+                                       </a>
                                </div>
                        {{/if}}
                </div>