custo totem
* App.master: * Title.aspx: Reset the Home page link * TagPanel.ascx: implements html links from tag related titles
This commit is contained in:
parent
352a950755
commit
ab95a3edda
4 changed files with 16 additions and 9 deletions
|
|
@ -5,9 +5,9 @@
|
|||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="header1" runat="server">
|
||||
<h1 class="post">
|
||||
<h1>
|
||||
<%=Html.ActionLink(Model.Title, "Title", new{title=Model.Title}, null)%>
|
||||
- <a href="<%= Url.RouteUrl("Default") %>"><%= YavscHelpers.SiteName %></a>
|
||||
- <a href="<%= Url.RouteUrl("Default",new {controller="Home" }) %>"><%= YavscHelpers.SiteName %></a>
|
||||
</h1>
|
||||
</asp:Content>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +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>
|
||||
<% foreach (var t in Model.Titles) { %>
|
||||
<a href="<%= Url.RouteUrl("Titles", new { title = t.Title }) %>"><%= Html.Markdown(t.Title,"/bfiles/"+t.Id+"/")%></a>
|
||||
<div class="postpreview">
|
||||
<p><%= Html.Markdown(t.Intro,"/bfiles/"+t.Id+"/") %></p>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue