2015-08-05 02:02:14 +02:00
|
|
|
<%@ Page Title="Blog" Language="C#" Inherits="System.Web.Mvc.ViewPage<UUBlogEntryCollection>" MasterPageFile="~/Models/App.master"%>
|
2014-07-16 20:35:03 +02:00
|
|
|
<%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>
|
2014-09-28 19:21:54 +02:00
|
|
|
<asp:Content ContentPlaceHolderID="init" ID="init1" runat="server">
|
2015-08-05 02:02:14 +02:00
|
|
|
<% Title = (string) ViewData ["BlogTitle"] ; %>
|
2014-09-28 19:21:54 +02:00
|
|
|
</asp:Content>
|
2015-01-27 12:14:36 +01:00
|
|
|
|
|
|
|
|
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="header1" runat="server">
|
2015-10-09 16:31:04 +02:00
|
|
|
|
|
|
|
|
<% if (!string.IsNullOrEmpty((string)ViewData["Avatar"])) { %>
|
2015-10-17 14:45:57 +02:00
|
|
|
<a href="<%=Url.RouteUrl( "Blogs", new { user = Model.Author } )%>" id="avatar">
|
2015-10-09 16:31:04 +02:00
|
|
|
<img src="<%=ViewData["Avatar"]%>" />
|
|
|
|
|
</a>
|
2015-01-27 12:14:36 +01:00
|
|
|
<% } %>
|
2015-10-09 16:31:04 +02:00
|
|
|
<h1 class="blogtitle">
|
2015-10-17 14:45:57 +02:00
|
|
|
<a href="<%=Url.RouteUrl( "Blogs", new { user = Model.Author } )%>">
|
2015-01-27 12:14:36 +01:00
|
|
|
<%=Html.Encode(ViewData["BlogTitle"])%></a>
|
2015-10-17 19:07:54 +02:00
|
|
|
- <a href="<%= Url.RouteUrl( "Default", new { controller = "Home" } ) %>"><%= YavscHelpers.SiteName %></a>
|
2015-01-27 12:14:36 +01:00
|
|
|
</h1>
|
|
|
|
|
</asp:Content>
|
|
|
|
|
|
2014-07-16 20:35:03 +02:00
|
|
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
|
|
|
|
|
2015-11-17 22:22:59 +01:00
|
|
|
<% foreach (var g in Model.GroupByTitle()) { %>
|
|
|
|
|
<div class="panel">
|
|
|
|
|
<h2><a href="<%= Url.RouteUrl("Titles", new { title = g.Key }) %>" class="usertitleref"><%=Html.Encode(g.Key)%></a></h2>
|
|
|
|
|
<% foreach (var p in g) { %>
|
|
|
|
|
<div class="postpreview">
|
|
|
|
|
<% if (p.Photo!=null) { %>
|
|
|
|
|
<img src="<%=p.Photo%>" alt="photo" class="photo"><% } %>
|
|
|
|
|
<%= Html.Markdown(p.Intro,"/bfiles/"+p.Id+"/") %>
|
|
|
|
|
<%= Html.Partial("PostActions",p)%>
|
|
|
|
|
</div> <% } %>
|
|
|
|
|
</div>
|
|
|
|
|
<% } %>
|
|
|
|
|
<%= Html.RenderPageLinks((int)ViewData["PageIndex"],(int)ViewData["PageSize"],(int)ViewData["ResultCount"])%>
|
2015-10-04 16:36:29 +02:00
|
|
|
</asp:Content>
|