File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
LinkDotNet.Blog.Web/Shared/Admin/Dashboard Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1- <div class =" col-1 " >
1+ <div class =" col-lg-1 col-md-2 col-sm-3 col-4 " >
22 <p >Since: </p >
33</div >
4- <div class =" col-2 " >
4+ <div class =" col-lg-2 col-md-4 col-sm-6 col-8 " >
55 <select @onchange =" RaiseDateTimeSpanChanged" >
66 @foreach ( var (title , time ) in options )
77 {
Original file line number Diff line number Diff line change 5151 private async Task LoadBlogPostInformationAsync ()
5252 {
5353 visitData = await (from ur in blogDbContext .UserRecords
54- where ur .DateTimeUtcClicked >= startDate
55- join bp in blogDbContext .BlogPosts
56- on ur .UrlClicked .Replace (" blogPost/" , string .Empty ) equals bp .Id
57- group new { ur , bp } by new { ur .UrlClicked }
54+ where ur .DateTimeUtcClicked >= startDate
55+ join bp in blogDbContext .BlogPosts
56+ on ur .UrlClicked .Replace (" blogPost/" , string .Empty ) equals bp .Id
57+ group new { ur , bp } by new { ur .UrlClicked }
5858 into gp
59- orderby gp .Count () descending
60- select new VisitCountPageData
59+ orderby gp .Count () descending
60+ select new VisitCountPageData
6161 {
6262 Id = gp .FirstOrDefault ().bp .Id ,
6363 Title = gp .FirstOrDefault ().bp .Title ,
6969 private async Task RefreshVisitCount (DateTime newBeginning )
7070 {
7171 startDate = newBeginning ;
72+ visitData = null ;
7273 await LoadBlogPostInformationAsync ();
7374 }
7475}
You can’t perform that action at this time.
0 commit comments