Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spotify
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web
spotify
Commits
bae7328e
Commit
bae7328e
authored
2 years ago
by
Benoît Harrault
Browse files
Options
Downloads
Patches
Plain Diff
Fix/improve show playlist after generation
parent
c7627cdd
No related branches found
No related tags found
1 merge request
!33
Resolve "Fix show freshly created playlist"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spotify/lib.php
+2
-2
2 additions, 2 deletions
spotify/lib.php
template.php
+2
-1
2 additions, 1 deletion
template.php
with
4 additions
and
3 deletions
spotify/lib.php
+
2
−
2
View file @
bae7328e
...
...
@@ -87,7 +87,7 @@ function createPlaylistWithRandomTracks($api, $trackIds, $count = 50)
function
getCreatedPlaylistInformationMessage
(
$api
,
$playlist
)
{
$link
=
'<a href="'
.
generateShowPlaylistUrl
(
$playlist
->
id
)
.
'">'
.
$playlist
->
name
.
'</a>'
;
$message
=
'Ok created new playlist with '
.
count
(
$playlist
->
tracks
->
items
)
.
' tracks:
'
.
$link
;
$message
=
'Ok created new playlist with '
.
count
(
$playlist
->
tracks
->
items
)
.
' tracks:
<br/>
'
.
$link
;
return
$message
;
}
...
...
@@ -95,7 +95,7 @@ function getCreatedPlaylistInformationMessage($api, $playlist)
function
getPlaylistInformationMessage
(
$api
,
$playlist
)
{
$link
=
'<a href="'
.
$playlist
->
external_urls
->
spotify
.
'">'
.
$playlist
->
name
.
'</a>'
;
$message
=
'Playlist with '
.
count
(
$playlist
->
tracks
->
items
)
.
' tracks:
'
.
$link
;
$message
=
'Playlist with '
.
count
(
$playlist
->
tracks
->
items
)
.
' tracks:
<br/>
'
.
$link
;
return
$message
;
}
...
...
This diff is collapsed.
Click to expand it.
template.php
+
2
−
1
View file @
bae7328e
...
...
@@ -20,7 +20,8 @@
<?php
if
(
$templateData
[
'user'
][
'image_url'
])
{
?>
<img
src=
"
<?php
echo
$templateData
[
'user'
][
'image_url'
];
?>
"
class=
"rounded border"
alt=
"
<?php
echo
$templateData
[
'user'
][
'display_name'
];
?>
"
style=
"max-height: 2rem;"
>
<?php
}
?>
<?php
echo
$templateData
[
'user'
][
'display_name'
];
?>
Home
(
<?php
echo
$templateData
[
'user'
][
'display_name'
];
?>
)
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarNav"
aria-controls=
"navbarNav"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
<span
class=
"navbar-toggler-icon"
></span>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment