Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Hide attention getter when already dealing with validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Dietrich committed Mar 4, 2014
1 parent 3115d71 commit c440fe7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/adhocracy/controllers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,13 @@ def activate(self, id):
def ask_activate(self, id):
c.page_user = get_entity_or_abort(model.User, id,
instance_filter=False)
c.hide_activate_attention_getter = True
return render('/user/ask_activate.html')

def pending_activate(self, id):
c.page_user = get_entity_or_abort(model.User, id,
instance_filter=False)
c.hide_activate_attention_getter = True
return render('/user/pending_activate.html')

@RequireInternalRequest()
Expand Down
3 changes: 2 additions & 1 deletion src/adhocracy/templates/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@
or can.instance.join(c.instance)
or (c.instance.requires_valid_email()
and c.user
and not c.user.is_email_activated())
and not c.user.is_email_activated()
and not c.hide_activate_attention_getter)
or (h.config.get('adhocracy.propose_optional_attributes')
and c.user.optional_attributes is None))) %>

Expand Down

0 comments on commit c440fe7

Please sign in to comment.