Insert links and content for ticket #387: content for verification in user.html,...
authorJef van Schendel <jefvanschendel@gmail.com>
Tue, 26 Jul 2011 21:40:17 +0000 (23:40 +0200)
committerJef van Schendel <jefvanschendel@gmail.com>
Tue, 26 Jul 2011 21:40:17 +0000 (23:40 +0200)
mediagoblin/static/css/base.css
mediagoblin/templates/mediagoblin/base.html
mediagoblin/templates/mediagoblin/user_pages/user.html

index 2d099526d4aeecfdb5847aee077ed8fb2874232b..2073ecb875695dfc715250dd2cc09251d3667858 100644 (file)
@@ -47,6 +47,10 @@ a {
   color: #999;
 }
 
+a.highlight {
+  color: #fff;
+}
+
 label {
   font-weight: normal;
 }
index b38ad6746fc6dc80401bc3d170cdbd0a19f4e5ca..22a691b5a9e481c5bdb6a8a2311948c6376c0e72 100644 (file)
                 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
                                             user= request.user['username']) }}">
                   {{ request.user['username'] }}</a>'s account 
+                <!-- the following link should only appear when verification is needed -->
+                <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
+                                            user= request.user['username']) }}" class="highlight">
+                  needs verification!</a>
                 (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">logout</a>)
               {% else %}
                  <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
index 7ab2031e88edf19ce11f8a7936402a34334fa7a1..b0c1027c58c125b34293a28aa140fd08deb057f3 100644 (file)
 
 {% block mediagoblin_content -%}
   {% if user %}
+    <!-- this is the "Need verification!" box -->
+    <div class="grid_6 prefix_1 suffix_1 form_box">
+      <h1>Verification needed</h1>
+      <!-- this should only be visible when you are this user -->
+      <p>Almost done! Your account still needs to be verified.</p>
+      <p>An email should arrive in a few moments with instructions on how to do so.</p>
+      <p>In case it doesn't:</p>
+      <!-- I don't know whether the following should be a link or an input button, but it should resend the email -->
+      <a href="somewhere" class="button">Resend verification email</a>
+      <!-- this should be visible if you're somebody else or not logged in -->
+      <p>Someone has registered an account with this username, but it still has to be verified.</p>
+      <p>If you are that person but you've lost your verification email, you can <a href="{{ request.urlgen('mediagoblin.auth.login') }}">log in</a> and resend it.</p>
+    </div>
+    {#
     <h1>{{ user.username }}'s profile</h1>
     <div class="grid_6 alpha">
       {% include "mediagoblin/utils/profile.html" %}
@@ -43,6 +57,7 @@
                      user=user.username) }}>atom feed</a>
     </div>
     <div class="clear"></div>
+    #}
   {% else %}
     {# This *should* not occur as the view makes sure we pass in a user. #}
     <p>Sorry, no such user found.<p/>