mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix #329
This commit is contained in:
parent
fe3745e1e3
commit
fabdf09c7b
2 changed files with 9 additions and 6 deletions
|
@ -4,6 +4,7 @@ Some of the improvements planned for the next versions of Telescope. Email [hell
|
|||
|
||||
[Fixing issues](https://github.com/TelescopeJS/Telescope/issues) is also a great way to pitch in :)
|
||||
|
||||
- Get rid of default user account dropdown.
|
||||
- Better user profiles.
|
||||
- Better user dashboard (with search).
|
||||
- Implement real reactive joins.
|
||||
|
|
|
@ -31,13 +31,9 @@ Template[getTemplate('nav')].helpers({
|
|||
}
|
||||
});
|
||||
|
||||
Template[getTemplate('nav')].rendered=function(){
|
||||
|
||||
if(!Meteor.user()){
|
||||
Template[getTemplate('nav')].rendered = function(){
|
||||
if(!Meteor.loggingIn() && !Meteor.user()){
|
||||
$('.login-link-text').text("Sign Up/Sign In");
|
||||
}else{
|
||||
$('#login-buttons-logout').before('<a href="/users/'+Meteor.user().slug+'" class="account-link button">View Profile</a>');
|
||||
$('#login-buttons-logout').before('<a href="/account" class="account-link button">Edit Account</a>');
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -53,5 +49,11 @@ Template[getTemplate('nav')].events({
|
|||
'click .login-header': function(e){
|
||||
e.preventDefault();
|
||||
Router.go('/account');
|
||||
},
|
||||
'click #login-name-link': function(e){
|
||||
if(Meteor.user() && !$('account-link').exists()){
|
||||
$('#login-buttons-logout').before('<a href="/users/'+Meteor.user().slug+'" class="account-link button">View Profile</a>');
|
||||
$('#login-buttons-logout').before('<a href="/account" class="account-link button">Edit Account</a>');
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Add table
Reference in a new issue