diff --git a/pagure/default_config.py b/pagure/default_config.py index 8701134..e828816 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -341,11 +341,11 @@ EXCLUDE_GROUP_INDEX = [] TRIGGER_CI = ['pretty please pagure-ci rebuild'] FLAG_STATUSES_LABELS = { - 'success': 'label-success', - 'failure': 'label-danger', - 'error': 'label-danger', - 'pending': 'label-info', - 'canceled': 'label-warning', + 'success': 'badge-success', + 'failure': 'badge-danger', + 'error': 'badge-danger', + 'pending': 'badge-info', + 'canceled': 'badge-warning', } FLAG_SUCCESS = 'success' FLAG_FAILURE = 'failure' diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 91638fe..f2a026c 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -181,10 +181,8 @@ white-space: nowrap; #preview { - min-height: 16rem; - background:#efefef; + min-height: 12rem; padding:1em; - border:1px solid #aaa; } .form-control#initial_comment @@ -598,10 +596,6 @@ th[data-sort] { cursor: pointer; } -.pr-changes-description -{ - font-size: 0.8em; -} .readme dd{ margin-left:2em; @@ -808,3 +802,17 @@ a.nav-link.btn{ .progress-bar{ height: inherit; } + +.text-semimuted{ + color:#555!important; +} + +.font-size-09{ + font-size:0.9em; +} + +.autogenerated-comment p{ + margin-bottom:0; +} + + diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index 86f08a7..2e35fe3 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -108,21 +108,74 @@ {% macro show_comment(comment, id, repo, username, issueid, form) %} -
PR#{{requestid}} - {% if pull_request.status != 'Open' and pull_request.status != 'Closed' %} - {{pull_request.status}} - {% endif %} - {{ pull_request.title | noJS(ignore="img") | safe}} - {% if g.authenticated and (g.fas_user.username == pull_request.user.username - or g.repo_committer) and pull_request.status == 'Open'%} - - {% if pull_request.status == 'Open' and g.authenticated and - (g.repo_committer or g.fas_user.username == pull_request.user.username) %} - {% if mergeform and pull_request.remote %} -