activation_complete.html 1.01 KB
Newer Older
1
<%! from django.utils.translation import ugettext as _ %>
2 3 4 5 6 7 8 9 10
<%! from django.core.urlresolvers import reverse %>
<%inherit file="../main.html" />

<%namespace name='static' file='../static_content.html'/>

<section class="container activation">

  <section class="message">
    %if not already_active:
11
      <h1 class="valid">${_("Activation Complete!")}</h1>
12
    %else:
13
      <h1>${_("Account already active!")}</h1>
14 15
    %endif
    <hr class="horizontal-divider">
16

17 18
    <p>
      %if not already_active:
19
        ${_("Thanks for activating your account.")}
20
      %else:
21
        ${_("This account has already been activated.")}
22
      %endif
23

24
      %if user_logged_in:
25
        ${_("Visit your {link_start}dashboard{link_end} to see your courses.").format(link_start='<a href="{url}">'.format(url=reverse('dashboard')), link_end='</a>')}
26
      %else:
27
        ${_("You can now {link_start}log in{link_end}.").format(link_start='<a href="{url}">'.format(url=reverse('signin_user')), link_end='</a>')}
28 29 30 31
      %endif
    </p>
  </section>
</section>