aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-08-02 16:02:29 +0000
committerMario <mario@mariovavti.com>2024-08-02 16:02:29 +0000
commit56cb6f1034b36dca0cd91bc51c491bb2fe5809ef (patch)
tree440443af190841dd47decb33d4678dbf71d8ae91
parent7eb23aa8b8d161a74ea59bc4c6eef5357fe6b1c0 (diff)
downloadvolse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.tar.gz
volse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.tar.bz2
volse-hubzilla-56cb6f1034b36dca0cd91bc51c491bb2fe5809ef.zip
streamline location rendering
-rw-r--r--include/conversation.php12
-rw-r--r--view/tpl/conv_item.tpl8
-rw-r--r--view/tpl/conv_list.tpl8
-rw-r--r--view/tpl/jot.tpl8
-rw-r--r--view/tpl/search_item.tpl8
5 files changed, 24 insertions, 20 deletions
diff --git a/include/conversation.php b/include/conversation.php
index e4b39d5b1..b3ba96a82 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1467,14 +1467,18 @@ function render_location_default($item) {
$location = $item['location'];
$coord = $item['coord'];
- if($coord) {
+ if ($coord) {
if($location)
- $location .= '&nbsp;<span class="smalltext">(' . $coord . ')</span>';
+ $location .= '&nbsp;(' . $coord . ')';
else
- $location = '<span class="smalltext">' . $coord . '</span>';
+ $location = $coord;
}
- return $location;
+ if (!$location) {
+ return '';
+ }
+
+ return '<i class="bi bi-geo-alt" title="' . $location . '"></i>';
}
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index b0077e09b..af212608a 100644
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -29,14 +29,14 @@
<div class="p-2 wall-item-head{{if !$item.title && !$item.event && !$item.photo}} rounded-top{{/if}}{{if $item.is_new && !$item.event && !$item.is_comment}} wall-item-head-new{{/if}} clearfix">
<div class="lh-sm text-end float-end">
<div class="wall-item-ago opacity-75" id="wall-item-ago-{{$item.id}}">
- {{if $item.editedtime}}
- <i class="bi bi-pencil"></i>
+ {{if $item.location}}
+ {{$item.location}}
{{/if}}
{{if $item.delayed}}
<i class="bi bi-clock"></i>
{{/if}}
- {{if $item.location}}
- <small class="wall-item-location p-location" id="wall-item-location-{{$item.id}}">{{$item.location}}</small>
+ {{if $item.editedtime}}
+ <i class="bi bi-pencil"></i>
{{/if}}
{{if $item.verified}}
<i class="bi bi-shield-check" title="{{$item.verified}}"></i>
diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl
index 3188433d3..388a952f2 100644
--- a/view/tpl/conv_list.tpl
+++ b/view/tpl/conv_list.tpl
@@ -23,14 +23,14 @@
<div class="p-2 wall-item-head{{if !$item.title && !$item.event && !$item.photo}} rounded-top{{/if}}{{if $item.is_new && !$item.event && !$item.is_comment}} wall-item-head-new{{/if}}" >
<div class="lh-sm text-end float-end">
<div class="wall-item-ago opacity-75" id="wall-item-ago-{{$item.id}}">
- {{if $item.editedtime}}
- <i class="bi bi-pencil"></i>
+ {{if $item.location}}
+ {{$item.location}}
{{/if}}
{{if $item.delayed}}
<i class="bi bi-clock"></i>
{{/if}}
- {{if $item.location}}
- <small class="wall-item-location p-location" id="wall-item-location-{{$item.id}}">{{$item.location}}</small>
+ {{if $item.editedtime}}
+ <i class="bi bi-pencil"></i>
{{/if}}
{{if $item.verified}}
<i class="bi bi-shield-check" title="{{$item.verified}}"></i>
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl
index 965cd975c..4eee6f1ac 100644
--- a/view/tpl/jot.tpl
+++ b/view/tpl/jot.tpl
@@ -138,12 +138,12 @@
<div class="btn-group me-2 d-none d-lg-flex">
{{if $setloc}}
<button type="button" id="profile-location-wrapper" class="btn btn-outline-secondary btn-sm border-0" title="{{$setloc}}" onclick="jotGetLocation();return false;">
- <i id="profile-location" class="bi bi-geo-fill jot-icons"></i>
+ <i id="profile-location" class="bi bi-geo-alt-fill jot-icons"></i>
</button>
{{/if}}
{{if $clearloc}}
<button type="button" id="profile-nolocation-wrapper" class="btn btn-outline-secondary btn-sm border-0" title="{{$clearloc}}" onclick="jotClearLocation();return false;" disabled="disabled">
- <i id="profile-nolocation" class="bi bi-geo jot-icons"></i>
+ <i id="profile-nolocation" class="bi bi-geo-alt jot-icons"></i>
</button>
{{/if}}
{{else}}
@@ -193,10 +193,10 @@
<a class="dropdown-item" href="#" onclick="initializeEmbedPhotoDialog(); return false;"><i class="bi bi-file-image jot-icons"></i>&nbsp;{{$embedPhotos}}</a>
{{/if}}
{{if $setloc}}
- <a class="dropdown-item" href="#" onclick="jotGetLocation(); return false;"><i class="bi bi-geo-fill"></i>&nbsp;{{$setloc}}</a>
+ <a class="dropdown-item" href="#" onclick="jotGetLocation(); return false;"><i class="bi bi-geo-alt-fill"></i>&nbsp;{{$setloc}}</a>
{{/if}}
{{if $clearloc}}
- <a class="dropdown-item" href="#" onclick="jotClearLocation(); return false;"><i class="bi bi-geo"></i>&nbsp;{{$clearloc}}</a>
+ <a class="dropdown-item" href="#" onclick="jotClearLocation(); return false;"><i class="bi bi-geo-alt"></i>&nbsp;{{$clearloc}}</a>
{{/if}}
{{/if}}
{{if $feature_expire}}
diff --git a/view/tpl/search_item.tpl b/view/tpl/search_item.tpl
index 8d76f6ac4..07d20b9ec 100644
--- a/view/tpl/search_item.tpl
+++ b/view/tpl/search_item.tpl
@@ -23,14 +23,14 @@
<div class="p-2 wall-item-head{{if !$item.title && !$item.event && !$item.photo}} rounded-top{{/if}}{{if $item.is_new && !$item.event && !$item.is_comment}} wall-item-head-new{{/if}}" >
<div class="lh-sm text-end float-end">
<div class="wall-item-ago opacity-75" id="wall-item-ago-{{$item.id}}">
- {{if $item.editedtime}}
- <i class="bi bi-pencil"></i>
+ {{if $item.location}}
+ {{$item.location}}
{{/if}}
{{if $item.delayed}}
<i class="bi bi-clock"></i>
{{/if}}
- {{if $item.location}}
- <small class="wall-item-location p-location" id="wall-item-location-{{$item.id}}">{{$item.location}}</small>
+ {{if $item.editedtime}}
+ <i class="bi bi-pencil"></i>
{{/if}}
{{if $item.verified}}
<i class="bi bi-shield-check" title="{{$item.verified}}"></i>