
* Index.aspx: * Title.aspx: * YavscModel.csproj: * BlogEntry.cs: * yavsc.scrollnotif.js: * AccountController.cs: * BlogEntryCollection.cs: refactoring * yavsc.tags.js: Implements a js call to the tag & untag methods * PostActions.ascx: a better html structure * BasePost.cs: refactoring: allows the "PostActions" user control to use a common base object as post reference * NpgsqlBlogProvider.cs: implements the tag methods on db * ResultPages.cs: A multi-pages result meta info when one page only * yavsc.circles.js: * AccountController.cs: code formatting * BlogsController.cs: Untag a post * style.css: yastyle, yet a better one. * BlogsController.cs: View the Title after edition * App.master: * UserPosts.aspx: a nicer html structure * yavsc.js: Fixes notice & dimiss js * Login.aspx: refactoring * Edit.aspx: better html * UserPost.aspx: A promess to be allowed to tag. * Web.csproj: Adds yavsc.tags.js and yavsc.scrollnotifs.js to the project decription. * BlogManager.cs: Makes the blog manager expose of the new `UnTag` method * BlogProvider.cs: introduces a method to `untag` * FindBlogEntryFlags.cs: Find post entry by tag * LocalizedText.resx: * LocalizedText.Designer.cs: new translations: - "Tag" - "Edit" * LocalizedText.fr.resx: * LocalizedText.fr.Designer.cs: nouvelles traductions: - "Tag" - "Edit" * Profile.cs: a nicer stack trace at buggy usage
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
<%@ Page Title="Blog" Language="C#" Inherits="System.Web.Mvc.ViewPage<UUBlogEntryCollection>" MasterPageFile="~/Models/App.master"%>
|
|
<%@ Register Assembly="Yavsc.WebControls" TagPrefix="yavsc" Namespace="Yavsc.WebControls" %>
|
|
<asp:Content ContentPlaceHolderID="init" ID="init1" runat="server">
|
|
<% Title = (string) ViewData ["BlogTitle"] ; %>
|
|
</asp:Content>
|
|
|
|
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="header1" runat="server">
|
|
|
|
<% if (!string.IsNullOrEmpty((string)ViewData["Avatar"])) { %>
|
|
<a href="<%=Url.Content("~/Blog/"+Model.Author)%>" id="avatar">
|
|
<img src="<%=ViewData["Avatar"]%>" />
|
|
</a>
|
|
<% } %>
|
|
<h1 class="blogtitle">
|
|
<a href="<%=Url.Content("~/Blog/"+Model.Author)%>">
|
|
<%=Html.Encode(ViewData["BlogTitle"])%></a>
|
|
- <a href="<%= Url.Content("~/") %>"><%= YavscHelpers.SiteName %></a>
|
|
</h1>
|
|
</asp:Content>
|
|
|
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
|
<% foreach (BlogEntry e in this.Model) { %>
|
|
<div class="postpreview<% if (!e.Visible) { %> hiddenpost<% } %>" >
|
|
<h2><%= Html.ActionLink(e.Title,"UserPost", new { user=e.Author, title=e.Title, id = e.Id }, new { @class = "usertitleref" }) %></h2>
|
|
<% bool truncated = false; %>
|
|
<%= Html.MarkdownToHtmlIntro(out truncated, e.Content,"/bfiles/"+e.Id+"/") %>
|
|
<% if (truncated) { %>
|
|
<a href="<%= Url.RouteUrl( "View", new { action="Title", title=e.Title}) %>">
|
|
<i>Html.Translate("ReadMore")</i></a>
|
|
<% } %>
|
|
<%= Html.Partial("PostActions",e)%>
|
|
</div>
|
|
<% } %>
|
|
<aside>
|
|
<form runat="server" id="form1" method="GET">
|
|
<%
|
|
rp1.ResultCount = (int) ViewData["RecordCount"];
|
|
rp1.PageIndex = (int) ViewData["PageIndex"];
|
|
%>
|
|
<yavsc:ResultPages id="rp1" Action = "?pageIndex={0}" runat="server">
|
|
<None><i>Pas de contenu</i></None>
|
|
</yavsc:ResultPages>
|
|
</form>
|
|
</aside>
|
|
|
|
|
|
</asp:Content>
|