Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wishlist
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
Container 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
MIRANDA RODRIGUEZ Anamaria
wishlist
Commits
d040c39c
Commit
d040c39c
authored
3 weeks ago
by
PEREZ-RAMIREZ Julian
Browse files
Options
Downloads
Patches
Plain Diff
max
parent
ff212db7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/web_app/public/js/insights.js
+1
-1
1 addition, 1 deletion
server/web_app/public/js/insights.js
server/web_app/templates/insights.html.twig
+4
-1
4 additions, 1 deletion
server/web_app/templates/insights.html.twig
with
5 additions
and
2 deletions
server/web_app/public/js/insights.js
+
1
−
1
View file @
d040c39c
...
@@ -24,7 +24,7 @@ function initFromUrl() {
...
@@ -24,7 +24,7 @@ function initFromUrl() {
async
function
fetchData
()
{
async
function
fetchData
()
{
let
url
=
''
;
let
url
=
''
;
if
(
currentTarget
===
'
items
'
)
{
if
(
currentTarget
===
'
items
'
)
{
url
=
`
${
ROUTE
}
:
${
PORT
}
/items?sortBy=price&sort=
${
currentSort
}
&onlyBought=true`
;
url
=
`
${
ROUTE
}
:
${
PORT
}
/items?sortBy=price&sort=
${
currentSort
}
&onlyBought=true
&max=3
`
;
}
else
{
}
else
{
url
=
`
${
ROUTE
}
:
${
PORT
}
/wishLists/sortedByTotalBought?sort=
${
currentSort
}
`
;
url
=
`
${
ROUTE
}
:
${
PORT
}
/wishLists/sortedByTotalBought?sort=
${
currentSort
}
`
;
}
}
...
...
This diff is collapsed.
Click to expand it.
server/web_app/templates/insights.html.twig
+
4
−
1
View file @
d040c39c
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
{%
endblock
%}
{%
endblock
%}
{%
block
body
%}
{%
block
body
%}
{%
if
target
==
'items'
%}
<div
class=
"container"
>
{%
if
target
==
'items'
%}
<h3
id=
"pageTitle"
>
Top 3 most expensive purchased items
</h3>
<h3
id=
"pageTitle"
>
Top 3 most expensive purchased items
</h3>
{%
else
%}
{%
else
%}
<h3
id=
"pageTitle"
>
Top 3 wishlists with the highest total purchase amount
</h3>
<h3
id=
"pageTitle"
>
Top 3 wishlists with the highest total purchase amount
</h3>
...
@@ -71,5 +72,7 @@
...
@@ -71,5 +72,7 @@
</table>
</table>
</section>
</section>
</div>
<script
src=
"
{{
asset
(
'js/insights.js'
)
}}
"
></script>
<script
src=
"
{{
asset
(
'js/insights.js'
)
}}
"
></script>
{%
endblock
%}
{%
endblock
%}
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