Skip to content

Commit 27b41e4

Browse files
committed
Minor licensing changes
1 parent d7c849a commit 27b41e4

2 files changed

Lines changed: 20 additions & 22 deletions

File tree

src/Presentation/SmartStore.Web/Administration/Views/Plugin/List.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@
100100
}
101101
@if (plugin.LicenseUrl.HasValue())
102102
{
103-
<a class="btn btn-small plugin-licence" href="javascript:void(0)" data-url="@plugin.LicenseUrl">
103+
<button class="btn btn-small plugin-licence" type="button" data-url="@plugin.LicenseUrl">
104104
<i class="fa fa-key"></i>
105105
@T("Admin.Common.License")
106-
</a>
106+
</button>
107107
}
108108
</div>
109109
</div>
@@ -432,7 +432,7 @@
432432
});
433433
434434
// licence plugin
435-
$(document).on('click', 'a.plugin-licence', function (e) {
435+
$(document).on('click', 'button.plugin-licence', function (e) {
436436
var dialog = $('#plugin-licence-modal'),
437437
url = $(this).attr('data-url');
438438

src/Presentation/SmartStore.Web/Views/Shared/LicenseRequired.cshtml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@
88
Html.AddTitleParts(T("Admin.Plugins.AddOnLicensing").Text);
99
}
1010
}
11-
<div class="page">
12-
<div class="page-title">
13-
<h2>@T("Admin.Plugins.AddOnLicensing")</h2>
14-
</div>
15-
16-
<div class="clear"></div>
17-
18-
<div class="page-body">
19-
<div class="alert alert-error fade in">
20-
<p>
21-
<strong>Systemname:</strong> @Model["SystemName"]
22-
<br />
23-
<strong>Controller:</strong> @Model["ControllerName"],
24-
<strong>Action:</strong> @Model["ActionName"]
25-
</p>
26-
<p>
27-
<span>@Html.Raw(Model["Message"])</span>
28-
</p>
11+
@if (Model["Message"] != null && ((string)Model["Message"]).HasValue())
12+
{
13+
<div class="page">
14+
<div class="page-body">
15+
<div class="alert alert-error fade in">
16+
<h4>@T("Admin.Plugins.AddOnLicensing")</h4>
17+
<p>
18+
<strong>Systemname:</strong> @Model["SystemName"]
19+
<br />
20+
<strong>Controller:</strong> @Model["ControllerName"],
21+
<strong>Action:</strong> @Model["ActionName"]
22+
</p>
23+
<p>
24+
<span>@Html.Raw(Model["Message"])</span>
25+
</p>
26+
</div>
2927
</div>
3028
</div>
31-
</div>
29+
}

0 commit comments

Comments
 (0)