# HG changeset patch # User Mads Kiilerich # Date 1478644152 -3600 # Node ID 8a50208651c1e905b63bf322c054db57498eda06 # Parent 0d4dfe2122fe267c38b9396711b131aeab1e7eb3 style: use Bootstrap compatible markup for alert Based on work by Dominik Ruf. diff -r 0d4dfe2122fe -r 8a50208651c1 kallithea/controllers/admin/settings.py --- a/kallithea/controllers/admin/settings.py Tue Nov 08 23:29:12 2016 +0100 +++ b/kallithea/controllers/admin/settings.py Tue Nov 08 23:29:12 2016 +0100 @@ -431,7 +431,7 @@ _update_url = defaults.get('update_url', '') _update_url = "" # FIXME: disabled - _err = lambda s: '
%s
' % (s) + _err = lambda s: '
%s
' % (s) try: import kallithea ver = kallithea.__version__ diff -r 0d4dfe2122fe -r 8a50208651c1 kallithea/public/css/style.css --- a/kallithea/public/css/style.css Tue Nov 08 23:29:12 2016 +0100 +++ b/kallithea/public/css/style.css Tue Nov 08 23:29:12 2016 +0100 @@ -3153,6 +3153,37 @@ font-weight: bold; } +.alert { + padding: 15px; + margin: 20px 0; + border: 1px solid transparent; + border-radius: 4px; +} + +.alert-success { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} + +.alert-info { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} + +.alert-warning { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} + +.alert-danger { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} + ins, div.options a:hover { text-decoration: none; } diff -r 0d4dfe2122fe -r 8a50208651c1 kallithea/templates/admin/repos/repo_creating.html --- a/kallithea/templates/admin/repos/repo_creating.html Tue Nov 08 23:29:12 2016 +0100 +++ b/kallithea/templates/admin/repos/repo_creating.html Tue Nov 08 23:29:12 2016 +0100 @@ -35,7 +35,7 @@ diff -r 0d4dfe2122fe -r 8a50208651c1 kallithea/templates/password_reset.html --- a/kallithea/templates/password_reset.html Tue Nov 08 23:29:12 2016 +0100 +++ b/kallithea/templates/password_reset.html Tue Nov 08 23:29:12 2016 +0100 @@ -40,9 +40,12 @@
${h.submit('send',_('Send Password Reset Email'),class_="btn btn-default")} -
${_('A password reset link will be sent to the specified email address if it is registered in the system.')}
+ +
+ ${_('A password reset link will be sent to the specified email address if it is registered in the system.')} +
${h.end_form()}