From 23a5edbe721348f7e570ead73e73bb7b312bfcb0 Mon Sep 17 00:00:00 2001 From: Ramon Wijnands Date: Fri, 7 Nov 2014 21:15:01 +0100 Subject: [PATCH] move the profile link out of the login buttons --- client/components/header/header.html | 53 ++++++++++++++-------------- client/components/header/header.js | 13 +------ 2 files changed, 28 insertions(+), 38 deletions(-) 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 @@ - - 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(); }