diff --git a/client/components/header/header.html b/client/components/header/header.html index 82f9f02..9005829 100644 --- a/client/components/header/header.html +++ b/client/components/header/header.html @@ -1,24 +1,33 @@ - - - Toggle navigation - - - - - Fusic Realtime Social Music Collaboration - - - - {{> loginButtons }} - - + + + Toggle navigation + + + + + Fusic Realtime Social Music Collaboration + - {{#if currentUser}} - + + {{#with user}} + + + + Profile + + + + {{/with}} + + {{> loginButtons }} + + + {{#if currentUser}} + Playlists Loved songs @@ -28,16 +37,8 @@ - - {{/if}} + + {{/if}} - - - {{#with user}} - - Edit profile - - {{/with}} - diff --git a/client/components/header/header.js b/client/components/header/header.js index 3b530aa..d0639c8 100644 --- a/client/components/header/header.js +++ b/client/components/header/header.js @@ -1,14 +1,3 @@ -Template.header.rendered = function() { - //apparantly still the easiest way to make slight adjustments to accounts-ui package - setTimeout(function(){ - var html = ''; - var current = $("#login a.dropdown-toggle").html(); - html = html + current; - $("#login a.dropdown-toggle").html(html); - }, 3000); - -} - -Template._loginButtonsAdditionalLoggedInDropdownActions.user = function(){ +Template.header.user = function (){ return Meteor.user(); }