]> git.mxchange.org Git - friendica.git/commitdiff
Update wall_thread.tpl
authorRaroun <Raroun@users.noreply.github.com>
Mon, 13 Nov 2023 17:29:26 +0000 (18:29 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Nov 2023 17:29:26 +0000 (18:29 +0100)
Update for code review

view/theme/frio/templates/wall_thread.tpl

index 4ef23931fd22984b28df95cb73128d50613e4ecd..ed4f92f5ec432135212ff02780736bd5624a2a50 100644 (file)
@@ -122,22 +122,19 @@ as the value of $top_child_total (this is done at the end of this file)
                <div class="media-body">{{*this is the media body for comments - this div must be closed at the end of the file *}}
        {{/if}}
 
-                       {{* contact info header*}}
+               {{* contact info header*}}
                <div class="contact-info">
                        <div class="preferences">
                                {{if $item.network_icon != "" && $item.plink}}
-                                       <span class="wall-item-network"><a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" target="_blank"><i class="fa fa-{{$item.network_icon}} fakelink" title="{{$item.network_name}} - {{$item.plink.title}}" aria-hidden="true"></i></span>
+                                        <span class="wall-item-network"><a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" target="_blank"><i class="fa fa-{{$item.network_icon}} fakelink" title="{{$item.network_name}} - {{$item.plink.title}}" aria-hidden="true"></i></a></span>
                                {{else}}
-                                       {{if $item.network_icon != ""}}
-                                               <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
-                                       {{else}}
-                                               <span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
-                                       {{/if}}
-                                       {{if $item.plink}}      {{*link to the original source of the item *}}
-                                               <a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.plink.title}}" target="_blank">
-                                                       <i class="fa fa-external-link"></i>
-                                               </a>
-                                       {{/if}}
+                                       {{if $item.plink}}
+                                                        <a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.network_name}} - {{$item.plink.title}}" target="_blank">{{$item.network_name}}</a>
+                                       {{elseif $item.network_icon != ""}}
+                                                       <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
+                                       {{else}}
+                                               <span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
+                                       {{/if}}
                                {{/if}}
                        </div>
                {{if $item.thread_level==1}}