Skip to content

Commit ffe1ec8

Browse files
authored
change color of msg to green by default and only to red if msg starts with ERROR (qiita-spots#3413)
1 parent 1ffd9a0 commit ffe1ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiita_pet/templates/user_profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h3>User Information</h3>
1919
{% raw form_item(class_='form-control') %}
2020
</div>
2121
{% end %}
22-
<div style="color:red;">{{msg}}</div>
22+
<div style="color:{% if msg.startswith('ERROR:') %}red{% else %}darkgreen{% end %};">{{msg}}</div>
2323
<button type="submit" class="btn btn-success">Save Edits</button>
2424
</form>
2525
</div>

0 commit comments

Comments
 (0)