a tag panel
This commit is contained in:
parent
bb5e34a61d
commit
352a950755
14 changed files with 53 additions and 28 deletions
|
|
@ -1,9 +0,0 @@
|
|||
<%@ Page Title="Comptes utilisateur - Erreur" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.Encode(ViewData["Message"]) %></div>
|
||||
Your UID :
|
||||
<%= Html.Encode(ViewData ["UID"]) %> </br>
|
||||
<a class="actionlink" href="<%=ViewData["returnUrl"]%>">Retour</a>
|
||||
</asp:Content>
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
|
||||
<%= (int) ViewData["ResultCount"] %>
|
||||
rp1.PageSize = (int) ViewData ["PageSize"];
|
||||
rp1.PageIndex = (int) ViewData["PageIndex"];
|
||||
rp1.None = Html.Translate("no content");
|
||||
|
||||
|
||||
|
|
@ -36,8 +36,6 @@
|
|||
<% 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)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,12 @@
|
|||
<%@ Page Title="Home" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master"%>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<%= Html.Partial("TagPanel",ViewData["Accueil"]) %>
|
||||
<%= Html.Partial("TagPanel",ViewData["Actualités"]) %>
|
||||
<%= Html.Partial("TagPanel",ViewData["Artistes"]) %>
|
||||
<%= Html.Partial("TagPanel",ViewData["Mentions légales"]) %>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MASContent" ID="MASContentContent" runat="server">
|
||||
<div>
|
||||
<%= Html.ActionLink("Les articles", "Index", "Blogs", null, new { @class="actionlink" }) %>
|
||||
<%= Html.ActionLink("Contact", "Contact", "Home", null, new { @class="actionlink" }) %>
|
||||
|
|
|
|||
10
web/Views/Home/TagPanel.ascx
Normal file
10
web/Views/Home/TagPanel.ascx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<%@ 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>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue