Skip to content

Commit 25f2ffc

Browse files
MAGETWO-65216: Update analytics dashboard button position
1 parent cc9a6ce commit 25f2ffc

File tree

11 files changed

+212
-90
lines changed

11 files changed

+212
-90
lines changed

app/code/Magento/Analytics/view/adminhtml/layout/adminhtml_dashboard_index.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
<referenceContainer name="content">
1212
<uiComponent name="analytics_subscription_form" acl="Magento_Analytics::analytics_settings"
1313
condition="analytics::can-view-notification"/>
14-
</referenceContainer>
15-
<referenceContainer name="refresh_statistics">
16-
<block template="Magento_Analytics::dashboard/link.phtml"
14+
<block template="Magento_Analytics::dashboard/section.phtml"
1715
class="Magento\Backend\Block\Template"
18-
name="analytics_service_external_link"/>
16+
name="analytics_service_external_link"
17+
before="-"/>
1918
</referenceContainer>
2019
</body>
2120
</page>

app/code/Magento/Analytics/view/adminhtml/templates/dashboard/link.phtml

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/**
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
?>
7+
8+
<section class="dashboard-advanced-reports">
9+
<div class="dashboard-advanced-reports-description">
10+
<header class="dashboard-advanced-reports-title">
11+
<?php echo $block->escapeHtml(__('Advanced Reporting')) ?>
12+
</header>
13+
<div class="dashboard-advanced-reports-content">
14+
<?php echo $block->escapeHtml(__('Gain new insights and take command of your business\' performance,' .
15+
' using our dynamic product, order, and customer reports tailored to your customer data.')) ?>
16+
<a href="<?php echo $block->escapeUrl($block->getUrl('analytics/reports/show')); ?>"
17+
target="_blank"
18+
data-index="analytics-service-info-link">
19+
<?php echo $block->escapeHtml(__('View details')) ?>
20+
</a>
21+
</div>
22+
</div>
23+
<div class="dashboard-advanced-reports-actions">
24+
<a href="<?php echo $block->escapeUrl($block->getUrl('analytics/reports/show')); ?>"
25+
target="_blank"
26+
class="action action-advanced-reports"
27+
data-index="analytics-service-link"
28+
title="<?php echo $block->escapeHtmlAttr(__('Go to Advanced Reporting')) ?>">
29+
<span><?php echo $block->escapeHtml(__('Go to Advanced Reporting')) ?></span>
30+
</a>
31+
</div>
32+
</section>
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// /**
2+
// * Copyright © 2013-2017 Magento, Inc. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// Variables
8+
// _____________________________________________
9+
10+
@button-advanced-reports__background-color: #007dbd;
11+
@button-advanced-reports__color: @color-white;
12+
13+
@button-advanced-reports__hover__background-color: darken(@button-advanced-reports__background-color, 3%);
14+
@button-advanced-reports__hover__border-color: @button-advanced-reports__background-color;
15+
16+
//
17+
// Dashboard Section
18+
// _____________________________________________
19+
20+
.dashboard-advanced-reports {
21+
.lib-vendor-prefix-display(flex);
22+
border-color: @color-gray89;
23+
border-style: solid;
24+
border-width: 1px 0;
25+
margin-bottom: @indent__l;
26+
padding: @indent__m 0;
27+
}
28+
29+
.dashboard-advanced-reports-title {
30+
&:extend(.dashboard-item-title all);
31+
margin-bottom: @indent__s;
32+
}
33+
34+
.dashboard-advanced-reports-content {
35+
line-height: @line-height__xl;
36+
}
37+
38+
.dashboard-advanced-reports-actions {
39+
align-self: center;
40+
margin-left: @indent__m;
41+
}
42+
43+
.action-advanced-reports {
44+
&:extend(.abs-action-l all);
45+
&:extend(.abs-action-pattern all);
46+
background-color: @button-advanced-reports__background-color;
47+
border-color: @button-advanced-reports__background-color;
48+
color: @button-advanced-reports__color;
49+
text-shadow: 1px 1px 0 rgba(0, 0, 0, .25);
50+
white-space: nowrap;
51+
52+
&:after {
53+
&:extend(.abs-icon all);
54+
content: @icon-external-link__content;
55+
font-size: @font-size__xs;
56+
vertical-align: super;
57+
}
58+
59+
&:hover,
60+
&:active,
61+
&:focus {
62+
background-color: @button-advanced-reports__hover__background-color;
63+
border-color: @button-advanced-reports__hover__border-color;
64+
box-shadow: @button__hover__box-shadow;
65+
color: @button-advanced-reports__color;
66+
text-decoration: none;
67+
}
68+
69+
&.disabled,
70+
&[disabled] {
71+
cursor: default;
72+
opacity: @disabled__opacity;
73+
pointer-events: none;
74+
}
75+
}

app/design/adminhtml/Magento/backend/web/css/source/variables/_icons.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
@icon-video__content: '\e641';
7979
@icon-reset__content: '\e642';
8080
@icon-clip__content: '\e643';
81+
@icon-external-link__content: '\e644';
8182
@icon-module__content: '\e647';
8283
@icon-alert-round__content: '\e648';
8384
@icon-document__content: '\e649';
Binary file not shown.

app/design/adminhtml/Magento/backend/web/fonts/admin-icons/admin-icons.svg

Lines changed: 1 addition & 1 deletion
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)