Incremental work on Dashboards.

This commit is contained in:
Sipke Schoorstra
2015-05-08 00:38:03 +02:00
parent 74a71321de
commit 55edf7ccfd
7 changed files with 1224 additions and 13 deletions

View File

@@ -69,9 +69,7 @@
<ItemGroup>
<None Include="Placement.info" />
<Content Include="Styles\bootstrap.css" />
<Content Include="Styles\bootstrap.min.css">
<DependentUpon>bootstrap.css</DependentUpon>
</Content>
<Content Include="Styles\bootstrap.min.css" />
<Content Include="Styles\dashboard.css" />
<Content Include="Web.config" />
<Content Include="Scripts\Web.config" />
@@ -83,7 +81,7 @@
<Content Include="Views\Content.Dashboard.cshtml" />
<Content Include="Views\Elements\Grid.Dashboard.cshtml" />
<Content Include="Views\Elements\Column.Dashboard.cshtml" />
<Content Include="Views\Parts\Layout.cshtml" />
<Content Include="Views\Parts\Layout.Dashboard.cshtml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">
@@ -108,6 +106,7 @@
<Compile Include="Handlers\DashboardSiteSettingsPartHandler.cs" />
<Compile Include="Migrations.cs" />
<Compile Include="Services\IDashboardService.cs" />
<Compile Include="Shapes\LayoutPartShape.cs" />
<Compile Include="ViewModels\DashboardSiteSettingsViewModel.cs" />
<Compile Include="Models\DashboardSiteSettingsPart.cs" />
<Compile Include="Routes.cs" />

View File

@@ -0,0 +1,14 @@
using Orchard.DisplayManagement.Descriptors;
namespace Orchard.Dashboards.Shapes {
public class LayoutPartShape : IShapeTableProvider {
public void Discover(ShapeTableBuilder builder) {
builder.Describe("Parts_Layout").OnDisplaying(context => {
if (context.ShapeMetadata.DisplayType != "Dashboard")
return;
context.ShapeMetadata.Alternates.Add("Parts_Layout_Dashboard");
});
}
}
}

View File

@@ -2,5 +2,17 @@
font-size: 16px;
background: #f1f1f2;
line-height: 2em;
padding: 0 20px;
padding: 0 20px 0 8px;
}
.dashboard h2 i.fa {
font-size: 28px;
position: relative;
top: 4px;
color: #545454;
margin-right: 5px;
}
.dashboard img {
max-width: 100%;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,7 @@
@using Orchard.ContentManagement
@{
Style.Include("bootstrap.css", "bootstrap.min.css");
Style.Include("~/Modules/Orchard.Layouts/Styles/Lib/font-awesome.css", "~/Modules/Orchard.Layouts/Styles/Lib/font-awesome.min.css");
Style.Include("dashboard.css");
}
@{