();
+ var model = RunningTasksToPackageListViewModelConverter.Convert(cache, runningTasks, installCache);
return this.ViewOrJson("packages.cshtml", model);
};
diff --git a/DeployD/Deployd.Agent/WebUi/Views/index.cshtml b/DeployD/Deployd.Agent/WebUi/Views/index.cshtml
index 412b7ac..3c7dc83 100644
--- a/DeployD/Deployd.Agent/WebUi/Views/index.cshtml
+++ b/DeployD/Deployd.Agent/WebUi/Views/index.cshtml
@@ -1,12 +1,3 @@
-
-
-
- Deployd.Agent
-
-
- Deployd.Agent
-
- Packages
-
-
-
\ No newline at end of file
+@{
+ Layout = "layout.cshtml";
+}
\ No newline at end of file
diff --git a/DeployD/Deployd.Agent/WebUi/Views/installations.cshtml b/DeployD/Deployd.Agent/WebUi/Views/installations.cshtml
index 9eb4036..19abfd7 100644
--- a/DeployD/Deployd.Agent/WebUi/Views/installations.cshtml
+++ b/DeployD/Deployd.Agent/WebUi/Views/installations.cshtml
@@ -1,29 +1,17 @@
-
-
-
- Deployd.Agent
-
-
-
- Deployd.Agent - @Environment.MachineName
-
-
+@{
+ Layout = "layout.cshtml";
+}
- Task Queue
-
- @foreach (var task in Model.TaskQueue)
- {
- @task.PackageId @task.Version
- }
-
- Running Tasks
+Task Queue
- @foreach (var task in Model.RunningTasks)
- {
- @task.PackageId @task.Version @task.LastMessage
- }
-
-
\ No newline at end of file
+@foreach (var task in Model.TaskQueue)
+{
+ @task.PackageId @task.Version
+}
+
+Running Tasks
+
+@foreach (var task in Model.RunningTasks)
+{
+ @task.PackageId @task.Version @task.LastMessage
+}
\ No newline at end of file
diff --git a/DeployD/Deployd.Agent/WebUi/Views/layout.cshtml b/DeployD/Deployd.Agent/WebUi/Views/layout.cshtml
index bdb7d03..3045f3b 100644
--- a/DeployD/Deployd.Agent/WebUi/Views/layout.cshtml
+++ b/DeployD/Deployd.Agent/WebUi/Views/layout.cshtml
@@ -4,7 +4,7 @@
Deployd.Agent
- Deployd.Agent
+ Deployd.Agent - @Environment.MachineName
- Packages
diff --git a/DeployD/Deployd.Agent/WebUi/Views/package-details.cshtml b/DeployD/Deployd.Agent/WebUi/Views/package-details.cshtml
index 1d0239e..5a79410 100644
--- a/DeployD/Deployd.Agent/WebUi/Views/package-details.cshtml
+++ b/DeployD/Deployd.Agent/WebUi/Views/package-details.cshtml
@@ -1,24 +1,17 @@
-
-
-
- Deployd.Agent
-
-
- Deployd.Agent
-
-
+@{
+ Layout = "layout.cshtml";
+}
- Available Package Versions for @Model.PackageName
-
+
-
-
\ No newline at end of file
+Available Package Versions for @Model.PackageName
+
\ No newline at end of file
diff --git a/DeployD/Deployd.Agent/WebUi/Views/packages.cshtml b/DeployD/Deployd.Agent/WebUi/Views/packages.cshtml
index 94bd47a..95df169 100644
--- a/DeployD/Deployd.Agent/WebUi/Views/packages.cshtml
+++ b/DeployD/Deployd.Agent/WebUi/Views/packages.cshtml
@@ -1,60 +1,46 @@
@using Deployd.Agent.WebUi.Models
@{
+ Layout = "layout.cshtml";
+}
+Available Packages
-
-
-
- Deployd.Agent
-
-
- Deployd.Agent - @Environment.MachineName
-
-
+
- Available Packages
-
-
+@foreach(LocalPackageInformation package in Model.Packages)
+{
+
+
@package.PackageId
+ @if (package.CurrentTask != null)
+ {
+
@package.CurrentTask.Status: @package.CurrentTask.LastMessage
+ }
- @foreach(LocalPackageInformation package in Model.Packages)
- {
-
-
@package.PackageId
- @if (package.CurrentTask != null)
- {
-
@package.CurrentTask.Status: @package.CurrentTask.LastMessage
- }
+ @if(!string.IsNullOrWhiteSpace(package.LatestAvailableVersion))
+ {
+
Latest: @package.LatestAvailableVersion
+ }
+ @if (!string.IsNullOrWhiteSpace(package.InstalledVersion))
+ {
+
Installed: @package.InstalledVersion
+ }
+ else
+ {
+
Not installed
+ }
+
+
+
+}
- @if(!string.IsNullOrWhiteSpace(package.LatestAvailableVersion))
- {
-
Latest: @package.LatestAvailableVersion
- }
- @if (!string.IsNullOrWhiteSpace(package.InstalledVersion))
- {
-
Installed: @package.InstalledVersion
- }
- else
- {
-
Not installed
- }
-
-
-
- }
-
- @foreach (InstallTaskViewModel task in Model.CurrentTasks)
- {
- @task.PackageId @task.Version @task.Status @task.LastMessage
- }
-
-
\ No newline at end of file
+@foreach (InstallTaskViewModel task in Model.CurrentTasks)
+{
+ @task.PackageId @task.Version @task.Status @task.LastMessage
+}
\ No newline at end of file