diff --git a/Teknik/Areas/Privacy/Views/Privacy/Index.cshtml b/Teknik/Areas/Privacy/Views/Privacy/Index.cshtml index c1018b8..7798089 100644 --- a/Teknik/Areas/Privacy/Views/Privacy/Index.cshtml +++ b/Teknik/Areas/Privacy/Views/Privacy/Index.cshtml @@ -47,7 +47,7 @@

Analytics

- We use Piwik to track user interaction with the site. This will store the first 2 bytes of your IP Address (e.g. 192.168.xxx.xxx) as an identifier. + We use Piwik to track user interaction with the site. This will store the first 2 bytes of your IP Address (e.g. 192.168.xxx.xxx) as an identifier. If you do not want to be tracked, enable Do Not Track in your browser (Recommended), or by unchecking below.

diff --git a/Teknik/Areas/Transparency/Controllers/TransparencyController.cs b/Teknik/Areas/Transparency/Controllers/TransparencyController.cs index 0a5746b..d13874c 100644 --- a/Teknik/Areas/Transparency/Controllers/TransparencyController.cs +++ b/Teknik/Areas/Transparency/Controllers/TransparencyController.cs @@ -29,6 +29,9 @@ namespace Teknik.Areas.Transparency.Controllers Profile.Models.User user = db.Users.OrderByDescending(u => u.UserId).FirstOrDefault(); model.UserCount = (user != null) ? user.UserId : 0; + Shortener.Models.ShortenedUrl url = db.ShortenedUrls.OrderByDescending(s => s.ShortenedUrlId).FirstOrDefault(); + model.ShortenedUrlCount = (url != null) ? url.ShortenedUrlId : 0; + model.TotalNet = new Dictionary(); var billSums = db.Transactions.OfType().GroupBy(b => b.Currency).Select(b => new { currency = b.Key, total = b.Sum(c => c.Amount) }).ToList(); diff --git a/Teknik/Areas/Transparency/ViewModels/TransparencyViewModel.cs b/Teknik/Areas/Transparency/ViewModels/TransparencyViewModel.cs index 642b1cb..a605352 100644 --- a/Teknik/Areas/Transparency/ViewModels/TransparencyViewModel.cs +++ b/Teknik/Areas/Transparency/ViewModels/TransparencyViewModel.cs @@ -18,6 +18,8 @@ namespace Teknik.Areas.Transparency.ViewModels public int UserCount { get; set; } + public int ShortenedUrlCount { get; set; } + public Dictionary TotalBills { get; set; } public Dictionary TotalOneTimes { get; set; } diff --git a/Teknik/Areas/Transparency/Views/Transparency/Index.cshtml b/Teknik/Areas/Transparency/Views/Transparency/Index.cshtml index f9883e5..356413c 100644 --- a/Teknik/Areas/Transparency/Views/Transparency/Index.cshtml +++ b/Teknik/Areas/Transparency/Views/Transparency/Index.cshtml @@ -36,6 +36,10 @@

Users

Number of Users: @Model.UserCount

+
+

Shortened Urls

+

Number of Shortened Urls: @Model.ShortenedUrlCount

+

Transactions