252 lines
7.0 KiB
C#
252 lines
7.0 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.17929
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Areas.Config.Views.Plugins
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Helpers;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.WebPages;
|
|
using Disco.BI.Extensions;
|
|
using Disco.Models.Repository;
|
|
|
|
#line 2 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
using Disco.Services.Plugins;
|
|
|
|
#line default
|
|
#line hidden
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/Plugins/Index.cshtml")]
|
|
public class Index : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.Plugins.IndexViewModel>
|
|
{
|
|
public Index()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 3 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Plugins");
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
|
|
#line 6 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
if (Model.PluginManifests.Count == 0)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 450px\"");
|
|
|
|
WriteLiteral(">\r\n <span");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">No Plugins Installed</span>\r\n </div> \r\n");
|
|
|
|
|
|
#line 12 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
}
|
|
else
|
|
{
|
|
var pluginGroups = Model.PluginManifestsByType;
|
|
|
|
|
|
int itemsPerColumn = pluginGroups.Count / 3;
|
|
var itemNextId = 0;
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <table");
|
|
|
|
WriteLiteral(" id=\"pageMenu\"");
|
|
|
|
WriteLiteral(">\r\n <tr>\r\n");
|
|
|
|
|
|
#line 23 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 23 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
for (int i = 0; i < 3; i++)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <td>\r\n");
|
|
|
|
|
|
#line 26 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 26 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
int itemsForThisColumn = itemsPerColumn + (pluginGroups.Count % 3 > i ? 1 : 0);
|
|
for (int i2 = 0; i2 < itemsForThisColumn && itemNextId < pluginGroups.Count; i2++)
|
|
{
|
|
var pluginGroup = pluginGroups[itemNextId];
|
|
itemNextId++;
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"pageMenuArea\"");
|
|
|
|
WriteLiteral(">\r\n <h2>");
|
|
|
|
|
|
#line 33 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
Write(Plugins.PluginFeatureCategoryDisplayName(pluginGroup.Item1));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</h2>\r\n");
|
|
|
|
|
|
#line 34 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 34 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
foreach (var pluginDefinition in pluginGroup.Item2)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 36 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
Write(Html.ActionLink(pluginDefinition.Name, MVC.Config.Plugins.Configure(pluginDefinition.Id)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 36 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"pageMenuBlurb\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 38 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
Write(pluginDefinition.Id);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" | v");
|
|
|
|
|
|
#line 38 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
Write(pluginDefinition.Version.ToString(3));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n");
|
|
|
|
|
|
#line 40 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </div>\r\n");
|
|
|
|
|
|
#line 42 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n");
|
|
|
|
|
|
#line 45 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" </tr>\r\n </table>\r\n");
|
|
|
|
|
|
#line 48 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 74 "..\..\Areas\Config\Views\Plugins\Index.cshtml"
|
|
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|