warn users when they generate a download password
authorLunar <lunar@anargeek.net>
Mon, 9 Apr 2012 10:51:47 +0000 (12:51 +0200)
committerLunar <lunar@anargeek.net>
Thu, 14 Mar 2013 09:12:10 +0000 (10:12 +0100)
public/javascripts/coquelicot.js
views/layout.haml
views/style.sass

index 4f383b1..bfb5347 100644 (file)
@@ -67,7 +67,8 @@ function addLinkToPasswordGenerator() {
       file_key.val(pass);
       file_key.hide();
       var show = $('<div class="random-pass" />');
-      show.text(pass);
+      show.append($('<div>').append($('<code>').text(pass))).
+           append($('<div>').append($('<em>').text(i18n.writeItDown)));
       link.before(show);
       link.remove();
     });
index 5c2e48f..9db2fd8 100644 (file)
@@ -33,6 +33,7 @@
     :javascript
       var i18n = { generateRandomPassword: _('Generate random'),
                    generatingRandomPassword: _('Generating…'),
+                   writeItDown: _('Don\'t forget to write it down!'),
                    pleaseTryAgain: _('Please try again!'),
                    error: _('Error:'),
                    uploadStarting: _('Upload starting...'),
index f5c0f03..2b4f2ed 100644 (file)
@@ -103,10 +103,14 @@ fieldset
   width: 100%
 
 .random-pass
-  font-family: monospace
-  font-size: large
   color: black
-  line-height: 20px
+
+.random-pass code
+  font-size: large
+
+.random-pass em
+  font-size: 80%
+  color: #ccc
 
 #gen_pass
   font-size: small