# HG changeset patch # User Mads Kiilerich # Date 1477576917 -7200 # Node ID 7bbe7dfaa48bfe4a71cb264ad03a531595f39caa # Parent d1923cd0521c0dc780eca02ed3ff8658d96695d5 style: replace some disabled btn with Bootstrap compatible label markup Based on work by Dominik Ruf. diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/public/css/style.css --- a/kallithea/public/css/style.css Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/public/css/style.css Thu Oct 27 16:01:57 2016 +0200 @@ -3084,6 +3084,7 @@ border: 1px solid #576622; } +.label, .btn { color: #515151; background-color: #DADADA; @@ -3097,11 +3098,16 @@ outline: none; margin: 0px 3px 3px 0px; border-radius: 4px 4px 4px 4px !important; - cursor: pointer !important; padding: 3px 3px 3px 3px; display: inline-block; white-space: nowrap; } +.btn { + cursor: pointer !important; +} +.label { + cursor: default !important; +} ul.nav-stacked { margin: 20px; @@ -3139,6 +3145,7 @@ color: #999; } +.label, .btn.btn-sm { padding: 3px 8px; } @@ -3165,6 +3172,7 @@ box-shadow: none !important; } +.label.label-danger, .btn.btn-danger { color: #fff; background-color: #c43c35; @@ -3174,6 +3182,7 @@ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); } +.label.label-primary, .btn.btn-primary { color: #fff; background-color: #339bb9; @@ -3183,6 +3192,7 @@ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); } +.label.label-success, .btn.btn-success { color: #fff; background-color: #57a957; @@ -3192,6 +3202,7 @@ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); } +.label.label-warning, .btn.btn-warning { color: #fff; background-color: #faa732; @@ -4203,7 +4214,7 @@ } #perms .perm_tag { - padding: 1px 3px 1px 3px; + padding: 3px 3px 1px 3px; font-size: 10px; font-weight: bold; text-transform: uppercase; diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/templates/admin/gists/show.html --- a/kallithea/templates/admin/gists/show.html Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/templates/admin/gists/show.html Thu Oct 27 16:01:57 2016 +0200 @@ -34,9 +34,9 @@
%if c.gist.gist_type == 'public': -
${_('Public Gist')}
+
${_('Public Gist')}
%else: -
${_('Private Gist')}
+
${_('Private Gist')}
%endif
diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/templates/admin/my_account/my_account_api_keys.html --- a/kallithea/templates/admin/my_account/my_account_api_keys.html Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/templates/admin/my_account/my_account_api_keys.html Thu Oct 27 16:01:57 2016 +0200 @@ -3,7 +3,7 @@
${c.user.api_key}
- ${_('Built-in')} + ${_('Built-in')} ${_('Expires')}: ${_('Never')} diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/templates/admin/my_account/my_account_emails.html --- a/kallithea/templates/admin/my_account/my_account_emails.html Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/templates/admin/my_account/my_account_emails.html Thu Oct 27 16:01:57 2016 +0200 @@ -6,7 +6,7 @@ %endif - ${_('Primary')} + ${_('Primary')} %if c.user_email_map: diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/templates/admin/users/user_edit_api_keys.html --- a/kallithea/templates/admin/users/user_edit_api_keys.html Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/templates/admin/users/user_edit_api_keys.html Thu Oct 27 16:01:57 2016 +0200 @@ -3,7 +3,7 @@
${c.user.api_key}
- ${_('Built-in')} + ${_('Built-in')} ${_('Expires')}: ${_('Never')} diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/templates/admin/users/user_edit_emails.html --- a/kallithea/templates/admin/users/user_edit_emails.html Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/templates/admin/users/user_edit_emails.html Thu Oct 27 16:01:57 2016 +0200 @@ -6,7 +6,7 @@ %endif - ${_('Primary')} + ${_('Primary')} %if c.user_email_map: diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/templates/data_table/_dt_elements.html --- a/kallithea/templates/data_table/_dt_elements.html Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/templates/data_table/_dt_elements.html Thu Oct 27 16:01:57 2016 +0200 @@ -136,11 +136,11 @@ <%def name="repo_state(repo_state)">
%if repo_state == u'repo_state_pending': -
${_('Creating')}
+
${_('Creating')}
%elif repo_state == u'repo_state_created': -
${_('Created')}
+
${_('Created')}
%else: -
invalid
+
invalid
%endif
diff -r d1923cd0521c -r 7bbe7dfaa48b kallithea/tests/functional/test_admin_gists.py --- a/kallithea/tests/functional/test_admin_gists.py Thu Oct 27 16:01:57 2016 +0200 +++ b/kallithea/tests/functional/test_admin_gists.py Thu Oct 27 16:01:57 2016 +0200 @@ -73,7 +73,7 @@ response = response.follow() response.mustcontain('added file: foo') response.mustcontain('gist test') - response.mustcontain('
Public Gist
') + response.mustcontain('
Public Gist
') def test_create_with_path_with_dirs(self): self.log_user() @@ -106,7 +106,7 @@ response = response.follow() response.mustcontain('added file: private-foo<') response.mustcontain('private gist test') - response.mustcontain('
Private Gist
') + response.mustcontain('
Private Gist
') def test_create_with_description(self): self.log_user() @@ -122,7 +122,7 @@ response.mustcontain('added file: foo-desc') response.mustcontain('gist test') response.mustcontain('gist-desc') - response.mustcontain('
Public Gist
') + response.mustcontain('
Public Gist
') def test_new(self): self.log_user() @@ -152,7 +152,7 @@ response.mustcontain('added file: gist-show-me<') response.mustcontain('%s - created' % TEST_USER_ADMIN_LOGIN) response.mustcontain('gist-desc') - response.mustcontain('
Public Gist
') + response.mustcontain('
Public Gist
') def test_show_as_raw(self): gist = _create_gist('gist-show-me', content='GIST CONTENT')