add more compliments and remove image validation from the profile image field

This commit is contained in:
Michael Q Larson
2015-02-05 13:56:44 -08:00
parent 0d854de438
commit bccc37f55d
2 changed files with 25 additions and 7 deletions

View File

@ -162,7 +162,7 @@
"compliments": [ "compliments": [
"Over the top!", "Over the top!",
"Down the rabbit hole we go!", "Down the rabbit hole we go!",
"Somewhere over the rainbow!", "Follow the white rabbit!",
"Eye of the tiger!", "Eye of the tiger!",
"Run, Forest, run!", "Run, Forest, run!",
"Welcome to the Rock!", "Welcome to the Rock!",
@ -213,6 +213,7 @@
"It's alive. It's alive!", "It's alive. It's alive!",
"Sonic Boom!", "Sonic Boom!",
"Here's looking at you, Code!", "Here's looking at you, Code!",
"Ride like the wind!",
"The more you code!", "The more you code!",
"Legen - wait for it - dary!", "Legen - wait for it - dary!",
"Ludicrous Speed! Go!", "Ludicrous Speed! Go!",
@ -223,7 +224,28 @@
"By the power of Grayskull!", "By the power of Grayskull!",
"You did it!", "You did it!",
"Storm that castle!", "Storm that castle!",
"Face-melting guitar Solo!" "Face-melting guitar Solo!",
"Checkmate!",
"Remember the Alamo!",
"Bodacious!",
"You're the man now, dog!",
"Tubular!",
"You're outta sight!",
"Keep calm and code on!",
"Even sad panda smiles!",
"Even grumpy cat approves!",
"Koolaid Man says oh yeah!",
"Bullseye!",
"You stay classy, San Diego!",
"Loud noises!",
"Me want cookie!",
"Far out!",
"You're heating up!",
"Crash override!",
"This is Sparta!",
"You ARE the law!",
"Hasta la vista, challenge!",
"Huh? It's just a box...",
], ],
"phrases": [ "phrases": [
"Shout it from on top of a mountain", "Shout it from on top of a mountain",

View File

@ -77,15 +77,11 @@ block content
.form-group .form-group
label.col-sm-3.col-sm-offset-2.control-label(for='email') Link to Profile Photo (1:1 ratio) label.col-sm-3.col-sm-offset-2.control-label(for='email') Link to Profile Photo (1:1 ratio)
.col-sm-4 .col-sm-4
input.form-control(type='url', name='picture', id='picture', ng-model='user.profile.picture', placeholder='http://www.example.com/image.jpg', ng-pattern="/[\.](jpg|png|jpeg|gif)\s?$/") input.form-control(type='url', name='picture', id='picture', ng-model='user.profile.picture', placeholder='http://www.example.com/image.jpg')
.col-sm-4.col-sm-offset-5(ng-show="profileForm.picture.$error.url && !profileForm.picture.$pristine") .col-sm-4.col-sm-offset-5(ng-show="profileForm.picture.$error.url && !profileForm.picture.$pristine")
alert(type='danger') alert(type='danger')
span.ion-close-circled span.ion-close-circled
| Please enter a valid URL format (http://www.example.com/image.jpg). | Please enter a valid URL format (http://www.example.com/image.jpg).
.col-sm-4.col-sm-offset-5(ng-show="profileForm.picture.$error.pattern")
alert(type='danger')
span.ion-close-circled
| The image URL must end in .jpg, .png, .jpeg or .gif.
.form-group .form-group
label.col-sm-3.col-sm-offset-2.control-label(for='bio') Bio (140 characters) label.col-sm-3.col-sm-offset-2.control-label(for='bio') Bio (140 characters)
.col-sm-4 .col-sm-4