Browse Source

Blogging module: member page links have been updated

pull/16412/head
Onur Pıçakcı 3 years ago
parent
commit
0928d2eebf
  1. 13
      modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml
  2. 29
      modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Index.cshtml

13
modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml

@ -73,13 +73,14 @@
<div class="col ps-1"> <div class="col ps-1">
@if (Model.Post.Writer != null) @if (Model.Post.Writer != null)
{ {
<a href="/Members/@Model.Post.Writer.UserName"> <h5 class="mt-2 mb-1">
<h5 class="mt-2 mb-1"> <a href="/Members/@Model.Post.Writer.UserName">
@(Model.Post.Writer.UserName) <span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(Model.Post.CreationTime)</span> @(Model.Post.Writer.UserName)
</h5> </a>
</a> <span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(Model.Post.CreationTime)</span>
</h5>
} }
<i class="fa fa-eye"></i> @L["WiewsWithCount", @Model.Post.ReadCount] <i class="fa fa-eye"></i> @L["WiewsWithCount", @Model.Post.ReadCount]
<span class="vs-seperator">|</span> <span class="vs-seperator">|</span>
<i class="fa fa-comment"></i> @L["CommentWithCount", @Model.CommentCount] <i class="fa fa-comment"></i> @L["CommentWithCount", @Model.CommentCount]

29
modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Index.cshtml

@ -65,11 +65,12 @@
</a> </a>
</div> </div>
<div class="col ps-1"> <div class="col ps-1">
<a href="/Members/@post.Writer.UserName"> <h5 class="mt-2 mb-1">
<h5 class="mt-2 mb-1"> <a href="/Members/@post.Writer.UserName">
@post.Writer.UserName <span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(post.CreationTime)</span> @post.Writer.UserName
</h5> </a>
</a> <span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(post.CreationTime)</span>
</h5>
<i class="fa fa-eye"></i> @L["WiewsWithCount", post.ReadCount] <i class="fa fa-eye"></i> @L["WiewsWithCount", post.ReadCount]
@*<span class="vs-seperator">|</span> @*<span class="vs-seperator">|</span>
<i class="fa fa-comment"></i> @L["CommentWithCount", post.CommentCount]*@ <i class="fa fa-comment"></i> @L["CommentWithCount", post.CommentCount]*@
@ -125,7 +126,12 @@
<div class="user-card"> <div class="user-card">
@if (post.Writer != null) @if (post.Writer != null)
{ {
<h5 class="mt-2 mb-1">@post.Writer.UserName <span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(post.CreationTime)</span></h5> <h5 class="mt-2 mb-1">
<a href="/Members/@post.Writer.UserName">
@post.Writer.UserName
</a>
<span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(post.CreationTime)</span>
</h5>
} }
<i class="fa fa-eye"></i> @L["WiewsWithCount", post.ReadCount] <i class="fa fa-eye"></i> @L["WiewsWithCount", post.ReadCount]
@*<span class="vs-seperator">|</span> @*<span class="vs-seperator">|</span>
@ -184,10 +190,17 @@
<div class="user-card"> <div class="user-card">
<div class="row"> <div class="row">
<div class="col-auto pe-1"> <div class="col-auto pe-1">
<img gravatar-email="@post.Writer.Email" default-image="Identicon" class="article-avatar" /> <a href="/Members/@post.Writer.UserName">
<img gravatar-email="@post.Writer.Email" default-image="Identicon" class="article-avatar"/>
</a>
</div> </div>
<div class="col ps-1"> <div class="col ps-1">
<h5 class="mt-2 mb-1">@post.Writer.UserName <span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(post.CreationTime)</span></h5> <h5 class="mt-2 mb-1">
<a href="/Members/@post.Writer.UserName">
@post.Writer.UserName
</a>
<span>@BloggingPageHelper.ConvertDatetimeToTimeAgo(post.CreationTime)</span>
</h5>
<i class="fa fa-eye"></i> @L["WiewsWithCount", post.ReadCount] <i class="fa fa-eye"></i> @L["WiewsWithCount", post.ReadCount]
@*<span class="vs-seperator">|</span> @*<span class="vs-seperator">|</span>
<i class="fa fa-comment"></i> @L["CommentWithCount", post.CommentCount]*@ <i class="fa fa-comment"></i> @L["CommentWithCount", post.CommentCount]*@

Loading…
Cancel
Save