improve button-icon for groups in hovercard
This commit is contained in:
parent
f95f846ef8
commit
b42373d834
4 changed files with 36 additions and 40 deletions
|
@ -1239,9 +1239,7 @@ class Contact
|
||||||
'edit' => [DI::l10n()->t('View Contact'), $contact_url, false],
|
'edit' => [DI::l10n()->t('View Contact'), $contact_url, false],
|
||||||
'follow' => [DI::l10n()->t('Connect/Follow'), $follow_link, true],
|
'follow' => [DI::l10n()->t('Connect/Follow'), $follow_link, true],
|
||||||
'unfollow' => [DI::l10n()->t('Unfollow'), $unfollow_link, true],
|
'unfollow' => [DI::l10n()->t('Unfollow'), $unfollow_link, true],
|
||||||
'mention' => [DI::l10n()->t('Mention'), DI::l10n()->t('Post to group'), $mention_url, false],
|
'mention' => [$mention_label, $mention_url, false],
|
||||||
'group' => [DI::l10n()->t('View group'), $group_link, $contact['forum'], true],
|
|
||||||
'self' => [$contact['self'] ?? false, true],
|
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
$menu = [
|
$menu = [
|
||||||
|
|
|
@ -111,6 +111,7 @@ class Hovercard extends BaseModule
|
||||||
'tags' => $contact['keywords'],
|
'tags' => $contact['keywords'],
|
||||||
'bd' => $contact['bd'] <= DBA::NULL_DATE ? '' : $contact['bd'],
|
'bd' => $contact['bd'] <= DBA::NULL_DATE ? '' : $contact['bd'],
|
||||||
'account_type' => Contact::getAccountType($contact['contact-type']),
|
'account_type' => Contact::getAccountType($contact['contact-type']),
|
||||||
|
'contact_type' => $contact['contact-type'],
|
||||||
'actions' => $actions,
|
'actions' => $actions,
|
||||||
'self' => $contact['self'],
|
'self' => $contact['self'],
|
||||||
],
|
],
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2023.09-dev\n"
|
"Project-Id-Version: 2023.09-dev\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -1784,31 +1784,30 @@ msgstr ""
|
||||||
msgid "Follow Thread"
|
msgid "Follow Thread"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:429 src/Model/Contact.php:1239
|
#: src/Content/Item.php:429 src/Model/Contact.php:1246
|
||||||
msgid "View Status"
|
msgid "View Status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:430 src/Content/Item.php:451 src/Model/Contact.php:1176
|
#: 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
|
#: src/Module/Directory.php:157 src/Module/Settings/Profile/Index.php:259
|
||||||
msgid "View Profile"
|
msgid "View Profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:431 src/Model/Contact.php:1241
|
#: src/Content/Item.php:431 src/Model/Contact.php:1248
|
||||||
msgid "View Photos"
|
msgid "View Photos"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:432 src/Model/Contact.php:1230
|
#: src/Content/Item.php:432 src/Model/Contact.php:1215
|
||||||
#: src/Model/Contact.php:1242
|
|
||||||
msgid "Network Posts"
|
msgid "Network Posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:433 src/Model/Contact.php:1231
|
#: src/Content/Item.php:433 src/Model/Contact.php:1239
|
||||||
#: src/Model/Contact.php:1243
|
#: src/Model/Contact.php:1250
|
||||||
msgid "View Contact"
|
msgid "View Contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:434 src/Model/Contact.php:1244
|
#: src/Content/Item.php:434 src/Model/Contact.php:1251
|
||||||
msgid "Send PM"
|
msgid "Send PM"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1843,7 +1842,7 @@ msgid "Languages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:448 src/Content/Widget.php:80
|
#: 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
|
#: src/Module/Contact/Follow.php:167 view/theme/vier/theme.php:195
|
||||||
msgid "Connect/Follow"
|
msgid "Connect/Follow"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -2350,7 +2349,7 @@ msgstr ""
|
||||||
msgid "Organisations"
|
msgid "Organisations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Widget.php:536 src/Model/Contact.php:1713
|
#: src/Content/Widget.php:536 src/Model/Contact.php:1718
|
||||||
msgid "News"
|
msgid "News"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -2435,24 +2434,22 @@ msgstr ""
|
||||||
msgid "Network:"
|
msgid "Network:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Widget/VCard.php:123 src/Model/Contact.php:1233
|
#: src/Content/Widget/VCard.php:123 src/Model/Contact.php:1241
|
||||||
#: src/Model/Contact.php:1246 src/Model/Profile.php:463
|
#: src/Model/Contact.php:1253 src/Model/Profile.php:463
|
||||||
#: src/Module/Contact/Profile.php:463
|
#: src/Module/Contact/Profile.php:463
|
||||||
msgid "Unfollow"
|
msgid "Unfollow"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Widget/VCard.php:127 src/Model/Contact.php:1234
|
#: src/Content/Widget/VCard.php:127 src/Model/Contact.php:1205
|
||||||
#: src/Model/Contact.php:1247 src/Module/Moderation/Item/Source.php:85
|
#: src/Module/Moderation/Item/Source.php:85
|
||||||
msgid "Mention"
|
msgid "Mention"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Widget/VCard.php:128 src/Model/Contact.php:1234
|
#: src/Content/Widget/VCard.php:128 src/Model/Contact.php:1202
|
||||||
#: src/Model/Contact.php:1247
|
|
||||||
msgid "Post to group"
|
msgid "Post to group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Widget/VCard.php:129 src/Model/Contact.php:1235
|
#: src/Content/Widget/VCard.php:129 src/Model/Contact.php:1212
|
||||||
#: src/Model/Contact.php:1248
|
|
||||||
msgid "View group"
|
msgid "View group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3204,82 +3201,82 @@ msgstr ""
|
||||||
msgid "Edit circles"
|
msgid "Edit circles"
|
||||||
msgstr ""
|
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:132
|
||||||
#: src/Module/Notifications/Introductions.php:204
|
#: src/Module/Notifications/Introductions.php:204
|
||||||
msgid "Approve"
|
msgid "Approve"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:1709
|
#: src/Model/Contact.php:1714
|
||||||
msgid "Organisation"
|
msgid "Organisation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:1717
|
#: src/Model/Contact.php:1722
|
||||||
msgid "Group"
|
msgid "Group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3020
|
#: src/Model/Contact.php:3025
|
||||||
msgid "Disallowed profile URL."
|
msgid "Disallowed profile URL."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3025 src/Module/Friendica.php:101
|
#: src/Model/Contact.php:3030 src/Module/Friendica.php:101
|
||||||
msgid "Blocked domain"
|
msgid "Blocked domain"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3030
|
#: src/Model/Contact.php:3035
|
||||||
msgid "Connect URL missing."
|
msgid "Connect URL missing."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3039
|
#: src/Model/Contact.php:3044
|
||||||
msgid ""
|
msgid ""
|
||||||
"The contact could not be added. Please check the relevant network "
|
"The contact could not be added. Please check the relevant network "
|
||||||
"credentials in your Settings -> Social Networks page."
|
"credentials in your Settings -> Social Networks page."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3057
|
#: src/Model/Contact.php:3062
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Expected network %s does not match actual network %s"
|
msgid "Expected network %s does not match actual network %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3074
|
#: src/Model/Contact.php:3079
|
||||||
msgid "The profile address specified does not provide adequate information."
|
msgid "The profile address specified does not provide adequate information."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3076
|
#: src/Model/Contact.php:3081
|
||||||
msgid "No compatible communication protocols or feeds were discovered."
|
msgid "No compatible communication protocols or feeds were discovered."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3079
|
#: src/Model/Contact.php:3084
|
||||||
msgid "An author or name was not found."
|
msgid "An author or name was not found."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3082
|
#: src/Model/Contact.php:3087
|
||||||
msgid "No browser URL could be matched to this address."
|
msgid "No browser URL could be matched to this address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3085
|
#: src/Model/Contact.php:3090
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to match @-style Identity Address with a known protocol or email "
|
"Unable to match @-style Identity Address with a known protocol or email "
|
||||||
"contact."
|
"contact."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3086
|
#: src/Model/Contact.php:3091
|
||||||
msgid "Use mailto: in front of address to force email check."
|
msgid "Use mailto: in front of address to force email check."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3092
|
#: src/Model/Contact.php:3097
|
||||||
msgid ""
|
msgid ""
|
||||||
"The profile address specified belongs to a network which has been disabled "
|
"The profile address specified belongs to a network which has been disabled "
|
||||||
"on this site."
|
"on this site."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3097
|
#: src/Model/Contact.php:3102
|
||||||
msgid ""
|
msgid ""
|
||||||
"Limited profile. This person will be unable to receive direct/personal "
|
"Limited profile. This person will be unable to receive direct/personal "
|
||||||
"notifications from you."
|
"notifications from you."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3163
|
#: src/Model/Contact.php:3168
|
||||||
msgid "Unable to retrieve contact information."
|
msgid "Unable to retrieve contact information."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="hover-card-actions-connection">
|
<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.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.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}}
|
{{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}}
|
||||||
|
|
Loading…
Reference in a new issue