-
@item.Title - @T("Version: {0}", item.Version)
+ @{
+ string iconUrl = @item.IconUrl;
+ if (string.IsNullOrWhiteSpace(iconUrl)) {
+ iconUrl = Href("../../Content/Images/ModuleDefaultIcon.png");
+ }
+ }
+

+
+
+
+
@item.Title - @T("Version: {0}", item.Version)
+
+
+
+
+
+
@(item.Description == null ? T("(No description").Text : item.Description)
+
+ - @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
+ - | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
+ - | @T("Rating: {0}", item.Rating)
+ - | @T("Ratings Count: {0}", item.RatingsCount)
+ - | @T("Website: ")
+ @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl }
+ else { @T("Unknown").ToString() }
+
+
+
-
-
-
-
-
@(item.Description == null ? T("(No description").Text : item.Description)
-
- - @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
- - | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
- - | @T("Website: ")
- @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl }
- else { @T("Unknown").ToString() }
-
-
-
}
}
\ No newline at end of file
diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml
index 0ff88c9bc..a29171c47 100644
--- a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml
@@ -22,26 +22,41 @@
@foreach (var item in Model.Extensions) {
-
-
-
@item.Title - @T("Version: {0}", item.Version)
+ @{
+ string iconUrl = @item.IconUrl;
+ if (!string.IsNullOrWhiteSpace(@item.FirstScreenshot)) {
+ iconUrl = Href(@item.FirstScreenshot);
+ }
+ else if (string.IsNullOrWhiteSpace(iconUrl)) {
+ iconUrl = Href("../../Content/Images/imagePlaceholder.png");
+ }
+ }
+

+
+
+
+
@item.Title - @T("Version: {0}", item.Version)
+
+
+
+
+
+
@(item.Description == null ? T("(No description").Text : item.Description)
+
+ - @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
+ - | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
+ - | @T("Rating: {0}", item.Rating)
+ - | @T("Ratings Count: {0}", item.RatingsCount)
+ - | @T("Website: ")
+ @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl }
+ else { @T("Unknown").ToString() }
+
+
+
-
-
-
-
-
@(item.Description == null ? T("(No description").Text : item.Description)
-
- - @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
- - | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
- - | @T("Website: ")
- @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl }
- else { @T("Unknown").ToString() }
-
-
-
}
}
\ No newline at end of file