Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: groups placeholder #581

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/SitesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ public function getSitesToDisplay() {
}

$site['url'] = str_replace(
['{email}', '{uid}', '{displayname}', '{jwt}'],
array_map('rawurlencode', [$email, $uid, $displayName, $jwt]),
['{email}', '{uid}', '{displayname}', '{jwt}', '{groups}'],
array_map('rawurlencode', [$email, $uid, $displayName, $jwt, implode(",", $groups)]),
provokateurin marked this conversation as resolved.
Show resolved Hide resolved
$site['url']
);

Expand Down
2 changes: 1 addition & 1 deletion templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<div class="section">
<h2><?php p($l->t('External sites'));?></h2>
<p class="settings-hint"><?php p($l->t('Add a website directly to the app list in the top bar. This will be visible for all users and is useful to quickly reach other internally used web apps or important sites.')); ?></p>
<p class="settings-hint"><?php p($l->t('The placeholders {email}, {uid} and {displayname} can be used and are filled with the user´s values to customize the links.')); ?></p>
<p class="settings-hint"><?php p($l->t('The placeholders {email}, {uid}, {displayname} and {groups} can be used and are filled with the user´s values to customize the links.')); ?></p>
<p class="settings-hint"><?php p($l->t("When accessing the external site through the Nextcloud link, path parameters will be forwarded to the external site. So you can also create deep links (e.g. 'mycloud.com/external/1/pageA' will lead to Nextcloud with the iframe pointed at 'externalsite.com/pageA').")); ?></p>
<p class="settings-hint"><?php print_unescaped(str_replace(
['{linkstart}', '{linkend}'],
Expand Down