* Web.config: * ListItem.cs: * styles.json: * globalize.js: * event.js: * Auth.aspx: * Book.aspx: * Login.aspx: * jquery-2.1.4.js: * map-load.gif: * Book.aspx: * Circle.cs: * Auth.aspx: * mapstyle.css: * date.js: * Login.aspx: * mdd_help.htm: * BlogHelper.cs: * fit-bounds.png: * unresolved.js: * jquery-2.1.4.min.js: * mapstyle-ie.css: * FreeDate.cs: * BookEdit.cs: * number.js: * BlogManager.cs: * plural.js: * jquery-2.1.4.min.map: * jquery.googlemaps.js: * supplemental.js: * BlogProvider.cs: * mapstyle.min.css: * pin-pink.png: * message.js: * ChooseADate.aspx: * pin-azure.png: * currency.js: * jquery-2.1.4-vsdoc.js: * pin-green.png: * MarkdownDeepLib.min.js: * flag-azure.png: * flag-green.png: * needle-pink.png: * ChooseADate.aspx: * niddle-green.png: * ChooseCalendar.aspx: * current-location.png: * jquery.googlemaps.min.js: * ErrorMessage.aspx: * ChooseCalendar.aspx: * relative-time.js: * GoogleErrorMessage.aspx: * popup-template-marker.html: * popup-template-circle.html: * popup-template-polygon.html: * popup-template-polyline.html: * popup-template-rectangle.html: * Web.csproj: * YavscModel.csproj: * YavscClient.csproj: * fortune.csproj: * WebControls.csproj: * SalesCatalog.csproj: * ITContentProvider.csproj: * NpgsqlMRPProviders.csproj: * NpgsqlBlogProvider.csproj: * NpgsqlContentProvider.csproj: Moves to Mono framework * NpgsqlCircleProvider.cs: Makes Circles private, or not * OAuth2.cs: * CircleController.cs: * AccountController.cs: * NpgsqlContentProvider.cs: Impacts htmldoc * NpgsqlMembershipProvider.cs: Makes possible to change the UserName * NpgsqlRoleProvider.cs: Drops this SQL code, which is actually maintained in Web/instdbws.sql * PeopleApi.cs: * GoogleController.cs: * PaypalController.cs: Refactoring * Global.asax.cs: Dropped an useless url mapping * MarkdownHelper.cs: Package update * App.master: * NoLogin.master: Site's favicon update * Circles.aspx: TO BE FIXED :-D * UserPost.aspx: Comment only when logged in * instdbws.sql: Circle public * packages.config: package update
60 lines
2.3 KiB
Text
60 lines
2.3 KiB
Text
<%@ Page Title="Billet" Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEntry>" MasterPageFile="~/Models/App.master"%>
|
|
<asp:Content ContentPlaceHolderID="init" ID="init1" runat="server">
|
|
<% Title = Model.Title+" - "+((string) ((Profile)ViewData["BlogUserProfile"]).BlogTitle) ; %>
|
|
</asp:Content>
|
|
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="header1" runat="server">
|
|
<h1 class="blogtitle">
|
|
<%= Html.ActionLink(Model.Title,"UserPost",new{user=Model.UserName,title=Model.Title}) %> -
|
|
<a href="/Blog/<%=Model.UserName%>">
|
|
<% if (ViewData["Avatar"]!=null) { %>
|
|
<img class="avatar" src="<%=ViewData["Avatar"]%>" alt="" id="logo"/>
|
|
<% } %>
|
|
<%=Html.Encode(ViewData["BlogTitle"])%>
|
|
</a> -
|
|
<a href="<%=Request.Url.Scheme + "://" + Request.Url.Authority%>"><%= YavscHelpers.SiteName %></a>
|
|
</h1>
|
|
</asp:Content>
|
|
|
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
|
|
|
<div class="blogpost">
|
|
<%= Html.Markdown(Model.Content) %>
|
|
</div>
|
|
<%
|
|
string username = "";
|
|
if (Membership.GetUser()!=null)
|
|
username = Membership.GetUser().UserName; %>
|
|
|
|
<% foreach (var c in (Comment[])ViewData["Comments"]) { %>
|
|
|
|
<div class="comment" style="min-height:32px;"> <img style="clear:left;float:left;max-width:32px;max-height:32px;margin:.3em;" src="/Blogs/Avatar/<%=c.From%>" alt="<%=c.From%>"/>
|
|
<%= Html.Markdown(c.CommentText) %>
|
|
<% if ( username == Model.UserName || c.From == username ) { %>
|
|
<%= Html.ActionLink("Supprimer","RemoveComment", new { cmtid = c.Id } , new { @class="actionlink" })%>
|
|
<% } %>
|
|
</div>
|
|
<% } %>
|
|
|
|
</asp:Content>
|
|
<asp:Content ContentPlaceHolderID="MASContent" ID="mas1" runat="server">
|
|
<% if (Membership.GetUser()!=null) {
|
|
%>
|
|
<div class="postcomment">
|
|
<% using (Html.BeginForm("Comment","Blogs")) { %>
|
|
<%=Html.Hidden("UserName")%>
|
|
<%=Html.Hidden("Title")%>
|
|
<%=Html.TextArea("CommentText","")%>
|
|
<%=Html.Hidden("PostId",Model.Id)%>
|
|
<input type="submit" value="Poster un commentaire"/>
|
|
<% } %>
|
|
</div>
|
|
<%
|
|
|
|
if (Membership.GetUser().UserName==Model.UserName)
|
|
{ %>
|
|
<aside>
|
|
<%= Html.ActionLink("Editer","Edit", new { user = Model.UserName, title = Model.Title }, new { @class="actionlink" }) %>
|
|
<%= Html.ActionLink("Supprimer","RemovePost", new { user = Model.UserName, title = Model.Title }, new { @class="actionlink" } ) %>
|
|
<% } } %>
|
|
</aside>
|
|
</asp:Content>
|