mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Analytics and fixes
This commit is contained in:
parent
0d4573e723
commit
f0fb065237
5 changed files with 25 additions and 7 deletions
|
@ -43,7 +43,7 @@
|
|||
@Html.GetNavbarUrl(Context, "/issues", UI.Layout_Issues, "exclamation", "<span id=\"issueCount\"></span>")
|
||||
@if (Context.CurrentUser.IsAuthenticated()) // TODO replace with IsAdmin
|
||||
{
|
||||
<li><a href="https://www.paypal.me/PlexRequestsNet" target="_blank"><i class="fa fa-heart" style="color: red"></i> @UI.Layout_Donate</a></li>
|
||||
<li><a id="donate" onclick="donateClick('https://www.paypal.me/PlexRequestsNet');"><i class="fa fa-heart" style="color: red"></i> @UI.Layout_Donate</a></li>
|
||||
}
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
|
@ -102,6 +102,12 @@
|
|||
</body>
|
||||
</html>
|
||||
<script>
|
||||
|
||||
function donateClick(url) {
|
||||
ga('send', 'event', 'Navbar', 'Donate', 'Donate Clicked');
|
||||
var redirectWindow = window.open(url, '_blank');
|
||||
redirectWindow.location;
|
||||
}
|
||||
|
||||
$(function () {
|
||||
|
||||
|
@ -142,6 +148,8 @@
|
|||
// End Scroller
|
||||
|
||||
|
||||
|
||||
|
||||
// Get Issue count
|
||||
var issueUrl = createBaseUrl(urlBase, '/issues/issuecount');
|
||||
$.ajax({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue