#19168: Fixing Razor compilation in package update views

Work Item: 19168

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2012-10-22 14:59:48 -07:00
parent b85ac2ec9d
commit 977fa88ef3
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@
@foreach (var module in Model.Entries) {
<li>
@{
string iconUrl = @module.NewVersionToInstall.IconUrl;
string iconUrl = module.NewVersionToInstall.IconUrl;
if (string.IsNullOrWhiteSpace(iconUrl)) {
iconUrl = Href("../../Content/Images/ModuleDefaultIcon.png");
}

View File

@ -37,9 +37,9 @@
<li>
@{
string extensionClass = "iconThumbnail";
string iconUrl = @theme.NewVersionToInstall.IconUrl;
string iconUrl = theme.NewVersionToInstall.IconUrl;
if (!string.IsNullOrWhiteSpace(@theme.NewVersionToInstall.FirstScreenshot)) {
iconUrl = @theme.NewVersionToInstall.FirstScreenshot;
iconUrl = theme.NewVersionToInstall.FirstScreenshot;
extensionClass = "screenshotThumbnail";
} else if (string.IsNullOrWhiteSpace(iconUrl)) {
iconUrl = Href("../../Content/Images/imagePlaceholder.png");