Fixes the latest merge
This commit is contained in:
parent
2963e2c4a0
commit
d8a5ebd526
11 changed files with 72 additions and 64 deletions
|
|
@ -45,11 +45,6 @@ Yavsc.notice('<%=note%>');
|
|||
</script>
|
||||
<% } %>
|
||||
</header>
|
||||
<nav data-type="background" data-speed="2">
|
||||
<a href="<%= Url.RouteUrl("Default", new { controller = "Account", action = "Logout", returnUrl=Request.Url.PathAndQuery}) %>" accesskey = "C" class="menuitem">
|
||||
<i class="fa fa-sign-out">Deconnexion</i></a>
|
||||
</nav>
|
||||
|
||||
<main data-type="background" data-speed="10" data-emheight="10" data-posx="0" data-posy="22" >
|
||||
<asp:ContentPlaceHolder ID="MainContent" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
|
|
|
|||
|
|
@ -62,8 +62,7 @@ self.onAjaxError = function (xhr, ajaxOptions, thrownError) {
|
|||
return self;
|
||||
})();
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$body = $("body");
|
||||
|
|
@ -87,4 +86,4 @@ $(document).on({
|
|||
}}
|
||||
});
|
||||
});
|
||||
>>>>>>> 5cb90afe2ce804d06034b0e0aa52e73c33baff83
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,18 @@
|
|||
<% if (Membership.GetUser()!=null) {
|
||||
if (Membership.GetUser().UserName==Model.Author || Roles.IsUserInRole("Admin"))
|
||||
{ %>
|
||||
<% if (Model is BlogEntry) { %><%= Html.Partial("TagControl",Model)%><% } %>
|
||||
<% if (Model is BlogEntry) { %><%= Html.Partial("TagControl",Model)%>
|
||||
<i class="fa fa-pencil"><%=Html.Translate("DoComment")%></i>
|
||||
<aside class="control" class="hidden">
|
||||
<% using (Html.BeginForm("Comment","Blogs")) { %>
|
||||
<%=Html.Hidden("Author")%>
|
||||
<%=Html.Hidden("Title")%>
|
||||
<%=Html.TextArea("CommentText","")%>
|
||||
<%=Html.Hidden("PostId",Model.Id)%>
|
||||
<input type="submit" value="Poster un commentaire"/>
|
||||
<% } %>
|
||||
</aside>
|
||||
<% } %>
|
||||
<a href="<%= Url.RouteUrl("Default", new { action = "Edit", postid = Model.Id })%>" class="actionlink">
|
||||
<i class="fa fa-pencil"><%=Html.Translate("Edit")%></i>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TagInfo>" %>
|
||||
<div class="panel">
|
||||
<i class="fa fa-tag"><%=Model.Name%></i>
|
||||
<ul>
|
||||
<% foreach (BasePostInfo be in Model.Titles) { %>
|
||||
<li><%= be.Title %>
|
||||
<span><%= be.Intro %></span>
|
||||
</li>
|
||||
<% } %></ul>
|
||||
<i class="fa fa-tag"><%=Html.Encode(Model.Name)%></i>
|
||||
<% foreach (var t in Model.Titles) { %>
|
||||
<a href="<%= Url.RouteUrl("Titles", new { title = t.Title }) %>">
|
||||
<img src="<%=Url.Encode(t.Photo)%>" alt="placard" class="photo">
|
||||
<%= Html.Markdown(t.Title,"/bfiles/"+t.Id+"/")%></a>
|
||||
<div class="postpreview">
|
||||
<p><%= Html.Markdown(t.Intro,"/bfiles/"+t.Id+"/") %></p>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
|
@ -27,32 +27,15 @@
|
|||
<% } %>
|
||||
|
||||
<%= Html.Markdown(be.Content,"/bfiles/"+be.Id+"/") %>
|
||||
|
||||
<%= Html.Partial("PostActions",be)%>
|
||||
<% string username = Membership.GetUser()==null ? null : Membership.GetUser().UserName; %>
|
||||
<% foreach (var c in (Comment[]) BlogManager.GetComments(be.Id)) { %>
|
||||
<div class="comment" style="min-height:32px;">
|
||||
<img style="clear:left;float:left;max-width:32px;max-height:32px;margin:.3em;" src="<%= Url.RouteUrl("Blogs", new { user = c.From } ) %>" alt="<%=c.From%>"/>
|
||||
<img class="avatar" src="<%= Url.RouteUrl("Default", new { action="Avatar", controller="Account", user = c.From } ) %>" alt="<%=c.From%>"/>
|
||||
<%= Html.Markdown(c.CommentText) %>
|
||||
<% if (Model.Author == username || c.From == username ) { %>
|
||||
<%= Html.ActionLink("Supprimer","RemoveComment", new { cmtid = c.Id } , new { @class="actionlink" })%>
|
||||
<% } %>
|
||||
</div><% } %>
|
||||
<% if (Membership.GetUser()!=null) {
|
||||
if (Membership.GetUser().UserName==be.Author)
|
||||
{ %> <div class="control">
|
||||
<%= Html.ActionLink("Editer","Edit", new { id = be.Id }, new { @class="actionlink" }) %>
|
||||
<%= Html.ActionLink("Supprimer","RemovePost", new { id = be.Id }, new { @class="actionlink" } ) %>
|
||||
<i class="fa fa-tag">Tagger</i>
|
||||
</div> <% } %>
|
||||
|
||||
<aside class="control">
|
||||
<% using (Html.BeginForm("Comment","Blogs")) { %>
|
||||
<%=Html.Hidden("Author")%>
|
||||
<%=Html.Hidden("Title")%>
|
||||
<%=Html.TextArea("CommentText","")%>
|
||||
<%=Html.Hidden("PostId",be.Id)%>
|
||||
<input type="submit" value="Poster un commentaire"/>
|
||||
<% } %>
|
||||
</aside>
|
||||
<% } %></div><% } %>
|
||||
</div><% } %>
|
||||
</asp:Content>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
<%= Html.MarkdownToHtmlIntro(out truncated, e.Content,"/bfiles/"+e.Id+"/") %>
|
||||
<% if (truncated) { %>
|
||||
<a href="<%= Url.RouteUrl( "BlogByTitle", new { user=e.Author , title=e.Title, postid = e.Id}) %>">
|
||||
<i>Html.Translate("ReadMore")</i></a>
|
||||
<i><%=Html.Translate("ReadMore")%></i></a>
|
||||
<% } %>
|
||||
<%= Html.Partial("PostActions",e)%>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -251,16 +251,16 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
|
|||
</root>
|
||||
</log4net>
|
||||
<connectionStrings>
|
||||
<add name="yavsc" connectionString="Server=127.0.0.1;Port=5432;Database=totem;User Id=totemweb;Password=cZeoft2k5_d4;" providerName="Npgsql" />
|
||||
<add name="yavsc" connectionString="Server=127.0.0.1;Port=5432;Database=YavscDev;User Id=yavscdev;Password=admin;" providerName="Npgsql" />
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="MonoServerDefaultIndexFiles" value="index.html,Index.aspx" />
|
||||
<add key="WorkflowContentProviderClass" value="yavsc.NpgsqlContentProvider" />
|
||||
<add key="SmtpServer" value="smtp.free.fr" />
|
||||
<add key="AdminEMail" value="paulschneider@free.fr" />
|
||||
<add key="OwnerEMail" value="" />
|
||||
<add key="Name" value="TOTEM PRODUCTION" />
|
||||
<add key="DefaultController" value="Home" />
|
||||
<add key="OwnerEMail" value="paulschneider@free.fr" />
|
||||
<add key="Name" value="PSc" />
|
||||
<add key="DefaultController" value="Blogs" />
|
||||
<add key="DefaultAvatar" value="/images/noavatar.png;image/png" />
|
||||
<add key="RegistrationMessage" value="/RegistrationMail.txt" />
|
||||
<!-- <add key="ClientValidationEnabled" value="true" /> -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue