--HG--
branch : dev
This commit is contained in:
Jonathan Wall
2010-10-15 17:59:17 -07:00
4 changed files with 145 additions and 101 deletions

View File

@@ -217,6 +217,10 @@
<Content Include="TheAdmin\Theme.png" /> <Content Include="TheAdmin\Theme.png" />
<Content Include="TheAdmin\Views\User.cshtml" /> <Content Include="TheAdmin\Views\User.cshtml" />
<Content Include="TheAdmin\Views\Header.cshtml" /> <Content Include="TheAdmin\Views\Header.cshtml" />
<Content Include="TheThemeMachine\Views\Items\BlogPost.Summary.cshtml" />
<Content Include="TheThemeMachine\Views\Items\BlogPost.cshtml">
<SubType>Designer</SubType>
</Content>
<None Include="TheThemeMachine\Views\Layout.cshtml" /> <None Include="TheThemeMachine\Views\Layout.cshtml" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

View File

@@ -188,6 +188,11 @@ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height:
border-top: 1px solid #dbdbdb; border-top: 1px solid #dbdbdb;
} }
#layout-before-main
{
border-bottom: 1px solid #dbdbdb;
}
#layout-main #layout-main
{ {
border-top: 1px solid #fff; border-top: 1px solid #fff;
@@ -195,7 +200,7 @@ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height:
#layout-after-main #layout-after-main
{ {
border-top: 1px solid #dbdbdb;
} }
@@ -241,6 +246,10 @@ nav ul
{ {
border-top: 1px solid #dbdbdb; border-top: 1px solid #dbdbdb;
} }
#footer-sig
{
}
/* Zones */ /* Zones */
/*.zone { /*.zone {
@@ -294,6 +303,11 @@ nav ul
float:left; float:left;
} }
/* Blogs */
.blog-post {}
.blog-post-title {}
.meta {}
/* Secondary /* Secondary

View File

@@ -0,0 +1,15 @@
@using Orchard.Blogs.Extensions;
@using Orchard.Blogs.Models;
@using Orchard.Core.Common.Extensions;
@using Orchard.Core.Common.Models;
@using Orchard.Core.Common.ViewModels;
<h2>@Html.Link((string)Model.Title, Url.BlogPost((BlogPostPart)Model.ContentItem.Get(typeof(BlogPostPart))))</h2>
<!-- TODO: Meta should be it's own shape and not part of the blog summary view. Theme authors will need access to it. -->
<div class="meta">
@Html.PublishedState(new CommonMetadataViewModel((CommonPart)Model.ContentItem.Get(typeof(CommonPart))), T)
@Display(Model.meta)
</div>
<div class="content">@Display(Model.Content)</div>

View File

@@ -0,0 +1,11 @@
<div class="blog-post @Display(Model.Slug)">
<h1 class="blog-post-title">@Html.TitleForPage((string)Model.Title)</h1>
@if (Model.Meta != null) {
<div class="meta">
@Display(Model.Meta)
</div>
}
<div class="content">
@Display(Model.Content)
</div>
</div>