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 " >
2
2
<p >Since: </p >
3
3
</div >
4
- <div class =" col-2 " >
4
+ <div class =" col-lg-2 col-md-4 col-sm-6 col-8 " >
5
5
<select @onchange =" RaiseDateTimeSpanChanged" >
6
6
@foreach ( var (title , time ) in options )
7
7
{
Original file line number Diff line number Diff line change 51
51
private async Task LoadBlogPostInformationAsync ()
52
52
{
53
53
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 }
58
58
into gp
59
- orderby gp .Count () descending
60
- select new VisitCountPageData
59
+ orderby gp .Count () descending
60
+ select new VisitCountPageData
61
61
{
62
62
Id = gp .FirstOrDefault ().bp .Id ,
63
63
Title = gp .FirstOrDefault ().bp .Title ,
69
69
private async Task RefreshVisitCount (DateTime newBeginning )
70
70
{
71
71
startDate = newBeginning ;
72
+ visitData = null ;
72
73
await LoadBlogPostInformationAsync ();
73
74
}
74
75
}
You can’t perform that action at this time.
0 commit comments