]> git.mxchange.org Git - friendica.git/commitdiff
improve button-icon for groups in hovercard
authorJakobus Schürz <jakobus.schuerz@home.arpa>
Tue, 3 Oct 2023 07:00:11 +0000 (09:00 +0200)
committerJakobus Schürz <jakobus.schuerz@home.arpa>
Tue, 3 Oct 2023 07:00:11 +0000 (09:00 +0200)
src/Model/Contact.php
src/Module/Contact/Hovercard.php
view/lang/C/messages.po
view/templates/hovercard.tpl

index 47b8ad4cfdd5a8ecefdc00c0e72c5d1db12c7476..3e547fcaffcd9c6e2fb60440fcf2ab5d3c83859d 100644 (file)
@@ -1239,9 +1239,7 @@ class Contact
                                'edit'     => [DI::l10n()->t('View Contact'), $contact_url, false],
                                'follow'   => [DI::l10n()->t('Connect/Follow'), $follow_link, true],
                                'unfollow' => [DI::l10n()->t('Unfollow'), $unfollow_link, true],
-                               'mention'  => [DI::l10n()->t('Mention'), DI::l10n()->t('Post to group'), $mention_url, false],
-                               'group'    => [DI::l10n()->t('View group'), $group_link, $contact['forum'], true],
-                               'self'     => [$contact['self'] ?? false, true],
+                               'mention'  => [$mention_label, $mention_url, false],
                        ];
                } else {
                        $menu = [
index 1ca91d056f32b487890f0723885b1692fe8d809e..792a3d6bbc5cf75234a00ffb2240fdaa4cbf15c2 100644 (file)
@@ -111,6 +111,7 @@ class Hovercard extends BaseModule
                                'tags'         => $contact['keywords'],
                                'bd'           => $contact['bd'] <= DBA::NULL_DATE ? '' : $contact['bd'],
                                'account_type' => Contact::getAccountType($contact['contact-type']),
+                               'contact_type' => $contact['contact-type'],
                                'actions'      => $actions,
                                'self'         => $contact['self'],
                        ],
index 5d4dc2f7d73c339f1eb74a8afe8a78e6bf76fdb7..ee247a288ef7601ad5e16913ff82b320828c66f2 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: 2023.09-dev\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-10-02 10:20+0200\n"
+"POT-Creation-Date: 2023-10-03 08:59+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1784,31 +1784,30 @@ msgstr ""
 msgid "Follow Thread"
 msgstr ""
 
-#: src/Content/Item.php:429 src/Model/Contact.php:1239
+#: src/Content/Item.php:429 src/Model/Contact.php:1246
 msgid "View Status"
 msgstr ""
 
 #: src/Content/Item.php:430 src/Content/Item.php:451 src/Model/Contact.php:1176
-#: src/Model/Contact.php:1229 src/Model/Contact.php:1240
+#: src/Model/Contact.php:1237 src/Model/Contact.php:1247
 #: src/Module/Directory.php:157 src/Module/Settings/Profile/Index.php:259
 msgid "View Profile"
 msgstr ""
 
-#: src/Content/Item.php:431 src/Model/Contact.php:1241
+#: src/Content/Item.php:431 src/Model/Contact.php:1248
 msgid "View Photos"
 msgstr ""
 
-#: src/Content/Item.php:432 src/Model/Contact.php:1230
-#: src/Model/Contact.php:1242
+#: src/Content/Item.php:432 src/Model/Contact.php:1215
 msgid "Network Posts"
 msgstr ""
 
-#: src/Content/Item.php:433 src/Model/Contact.php:1231
-#: src/Model/Contact.php:1243
+#: src/Content/Item.php:433 src/Model/Contact.php:1239
+#: src/Model/Contact.php:1250
 msgid "View Contact"
 msgstr ""
 
-#: src/Content/Item.php:434 src/Model/Contact.php:1244
+#: src/Content/Item.php:434 src/Model/Contact.php:1251
 msgid "Send PM"
 msgstr ""
 
@@ -1843,7 +1842,7 @@ msgid "Languages"
 msgstr ""
 
 #: src/Content/Item.php:448 src/Content/Widget.php:80
-#: src/Model/Contact.php:1232 src/Model/Contact.php:1245
+#: src/Model/Contact.php:1240 src/Model/Contact.php:1252
 #: src/Module/Contact/Follow.php:167 view/theme/vier/theme.php:195
 msgid "Connect/Follow"
 msgstr ""
@@ -2350,7 +2349,7 @@ msgstr ""
 msgid "Organisations"
 msgstr ""
 
-#: src/Content/Widget.php:536 src/Model/Contact.php:1713
+#: src/Content/Widget.php:536 src/Model/Contact.php:1718
 msgid "News"
 msgstr ""
 
@@ -2435,24 +2434,22 @@ msgstr ""
 msgid "Network:"
 msgstr ""
 
-#: src/Content/Widget/VCard.php:123 src/Model/Contact.php:1233
-#: src/Model/Contact.php:1246 src/Model/Profile.php:463
+#: src/Content/Widget/VCard.php:123 src/Model/Contact.php:1241
+#: src/Model/Contact.php:1253 src/Model/Profile.php:463
 #: src/Module/Contact/Profile.php:463
 msgid "Unfollow"
 msgstr ""
 
-#: src/Content/Widget/VCard.php:127 src/Model/Contact.php:1234
-#: src/Model/Contact.php:1247 src/Module/Moderation/Item/Source.php:85
+#: src/Content/Widget/VCard.php:127 src/Model/Contact.php:1205
+#: src/Module/Moderation/Item/Source.php:85
 msgid "Mention"
 msgstr ""
 
-#: src/Content/Widget/VCard.php:128 src/Model/Contact.php:1234
-#: src/Model/Contact.php:1247
+#: src/Content/Widget/VCard.php:128 src/Model/Contact.php:1202
 msgid "Post to group"
 msgstr ""
 
-#: src/Content/Widget/VCard.php:129 src/Model/Contact.php:1235
-#: src/Model/Contact.php:1248
+#: src/Content/Widget/VCard.php:129 src/Model/Contact.php:1212
 msgid "View group"
 msgstr ""
 
@@ -3204,82 +3201,82 @@ msgstr ""
 msgid "Edit circles"
 msgstr ""
 
-#: src/Model/Contact.php:1255 src/Module/Moderation/Users/Pending.php:102
+#: src/Model/Contact.php:1260 src/Module/Moderation/Users/Pending.php:102
 #: src/Module/Notifications/Introductions.php:132
 #: src/Module/Notifications/Introductions.php:204
 msgid "Approve"
 msgstr ""
 
-#: src/Model/Contact.php:1709
+#: src/Model/Contact.php:1714
 msgid "Organisation"
 msgstr ""
 
-#: src/Model/Contact.php:1717
+#: src/Model/Contact.php:1722
 msgid "Group"
 msgstr ""
 
-#: src/Model/Contact.php:3020
+#: src/Model/Contact.php:3025
 msgid "Disallowed profile URL."
 msgstr ""
 
-#: src/Model/Contact.php:3025 src/Module/Friendica.php:101
+#: src/Model/Contact.php:3030 src/Module/Friendica.php:101
 msgid "Blocked domain"
 msgstr ""
 
-#: src/Model/Contact.php:3030
+#: src/Model/Contact.php:3035
 msgid "Connect URL missing."
 msgstr ""
 
-#: src/Model/Contact.php:3039
+#: src/Model/Contact.php:3044
 msgid ""
 "The contact could not be added. Please check the relevant network "
 "credentials in your Settings -> Social Networks page."
 msgstr ""
 
-#: src/Model/Contact.php:3057
+#: src/Model/Contact.php:3062
 #, php-format
 msgid "Expected network %s does not match actual network %s"
 msgstr ""
 
-#: src/Model/Contact.php:3074
+#: src/Model/Contact.php:3079
 msgid "The profile address specified does not provide adequate information."
 msgstr ""
 
-#: src/Model/Contact.php:3076
+#: src/Model/Contact.php:3081
 msgid "No compatible communication protocols or feeds were discovered."
 msgstr ""
 
-#: src/Model/Contact.php:3079
+#: src/Model/Contact.php:3084
 msgid "An author or name was not found."
 msgstr ""
 
-#: src/Model/Contact.php:3082
+#: src/Model/Contact.php:3087
 msgid "No browser URL could be matched to this address."
 msgstr ""
 
-#: src/Model/Contact.php:3085
+#: src/Model/Contact.php:3090
 msgid ""
 "Unable to match @-style Identity Address with a known protocol or email "
 "contact."
 msgstr ""
 
-#: src/Model/Contact.php:3086
+#: src/Model/Contact.php:3091
 msgid "Use mailto: in front of address to force email check."
 msgstr ""
 
-#: src/Model/Contact.php:3092
+#: src/Model/Contact.php:3097
 msgid ""
 "The profile address specified belongs to a network which has been disabled "
 "on this site."
 msgstr ""
 
-#: src/Model/Contact.php:3097
+#: src/Model/Contact.php:3102
 msgid ""
 "Limited profile. This person will be unable to receive direct/personal "
 "notifications from you."
 msgstr ""
 
-#: src/Model/Contact.php:3163
+#: src/Model/Contact.php:3168
 msgid "Unable to retrieve contact information."
 msgstr ""
 
index 70a341035d5b1bbd1aa20a7831c3d15c6299cddc..6cb857610ad267dbd2fe779b8eb479827c874c0e 100644 (file)
@@ -37,7 +37,7 @@
 
                                </div>
                                <div class="hover-card-actions-connection">
-                                       {{if $profile.actions.network}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.network.1}}" aria-label="{{$profile.actions.network.0}}" title="{{$profile.actions.network.0}}"><i class="fa fa-cloud" aria-hidden="true"></i></a>{{/if}}
+                                       {{if $profile.actions.network}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.network.1}}" aria-label="{{$profile.actions.network.0}}" title="{{$profile.actions.network.0}}"><i class="fa fa-{{($profile.contact_type==3) ? group : cloud}}" aria-hidden="true"></i></a>{{/if}}
                                        {{if $profile.actions.edit}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.edit.1}}" aria-label="{{$profile.actions.edit.0}}" title="{{$profile.actions.edit.0}}"><i class="fa fa-user" aria-hidden="true"></i></a>{{/if}}
                                        {{if $profile.actions.follow}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.follow.1}}" aria-label="{{$profile.actions.follow.0}}" title="{{$profile.actions.follow.0}}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{{/if}}
                                        {{if $profile.actions.unfollow}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.unfollow.1}}" aria-label="{{$profile.actions.unfollow.0}}" title="{{$profile.actions.unfollow.0}}"><i class="fa fa-user-times" aria-hidden="true"></i></a>{{/if}}