aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-12 21:08:29 +0000
committerMario <mario@mariovavti.com>2022-01-12 21:08:29 +0000
commitabe3039926dd388108e620148868880cb1da3fa3 (patch)
tree5df8a062da5e7829d23045fc7e197392a9655baa /view
parent82a1117e917a0c97de961f31f4d4aea7affa069f (diff)
downloadvolse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.tar.gz
volse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.tar.bz2
volse-hubzilla-abe3039926dd388108e620148868880cb1da3fa3.zip
ux improvements
Diffstat (limited to 'view')
-rw-r--r--view/tpl/connection_template.tpl9
-rw-r--r--view/tpl/profile_edit.tpl2
2 files changed, 8 insertions, 3 deletions
diff --git a/view/tpl/connection_template.tpl b/view/tpl/connection_template.tpl
index 5c1542111..090899cd6 100644
--- a/view/tpl/connection_template.tpl
+++ b/view/tpl/connection_template.tpl
@@ -1,6 +1,11 @@
<div id="contact-entry-wrapper-{{$contact.id}}">
<div class="section-subtitle-wrapper clearfix">
<div class="float-end">
+ {{if $contact.status}}
+ {{foreach $contact.states as $state}}
+ <span class="badge rounded-pill bg-danger text-white me-1" title="">{{$state}}</span>
+ {{/foreach}}
+ {{/if}}
<span id="contact-role-{{$contact.id}}" class="badge rounded-pill bg-warning text-dark me-1" title="{{$role_label}}">{{$contact.role}}</span>
<button type="button" class="btn btn-outline-secondary btn-sm contact-edit" title="{{$contact.edit_hover}}" data-id="{{$contact.id}}">
<i class="fa fa-pencil"></i> {{$contact.edit}}
@@ -16,11 +21,11 @@
{{include "connstatus.tpl" perminfo=$contact.perminfo}}
</div>
<div class="contact-info">
- {{if $contact.status}}
+ {{** if $contact.status}}
<div class="contact-info-element">
<span class="contact-info-label">{{$contact.status_label}}:</span> {{$contact.status}}
</div>
- {{/if}}
+ {{/if **}}
{{if $contact.connected}}
<div class="contact-info-element">
<span class="contact-info-label">{{$contact.connected_label}}:</span> <span class="autotime" title="{{$contact.connected}}"></span>
diff --git a/view/tpl/profile_edit.tpl b/view/tpl/profile_edit.tpl
index 7361411b9..c55ce0183 100644
--- a/view/tpl/profile_edit.tpl
+++ b/view/tpl/profile_edit.tpl
@@ -30,7 +30,7 @@
{{/if}}
</div>
</div>
- <h2>{{$banner}}</h2>
+ <h2>{{$banner}}{{if $multi_profiles}}: {{$profile_name.2}}{{/if}}</h2>
<div class="clear"></div>
</div>
<div class="section-content-tools-wrapper" id="profile-upload-form">