Skip to content

Commit

Permalink
change color of msg to green by default and only to red if msg starts…
Browse files Browse the repository at this point in the history
… with ERROR (#3413)
  • Loading branch information
sjanssen2 authored Jun 4, 2024
1 parent 1ffd9a0 commit ffe1ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiita_pet/templates/user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3>User Information</h3>
{% raw form_item(class_='form-control') %}
</div>
{% end %}
<div style="color:red;">{{msg}}</div>
<div style="color:{% if msg.startswith('ERROR:') %}red{% else %}darkgreen{% end %};">{{msg}}</div>
<button type="submit" class="btn btn-success">Save Edits</button>
</form>
</div>
Expand Down

0 comments on commit ffe1ec8

Please sign in to comment.