From d8e6e5945bce98895711a8c02b20c9e804dc0d37 Mon Sep 17 00:00:00 2001 From: Your Name Date: Feb 19 2017 04:27:27 +0000 Subject: [PATCH 1/3] Add Docstring in file_virus_validation --- diff --git a/pagure/forms.py b/pagure/forms.py index f175f8f..a3358f7 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -72,6 +72,9 @@ class MultipleEmail(wtforms.validators.Email): def file_virus_validator(form, field): + ''' Checks for virus in the file from flask request object, + raises wtf.ValidationError if virus is found else None. ''' + if not pagure.APP.config['VIRUS_SCAN_ATTACHMENTS']: return from pyclamd import ClamdUnixSocket From b1d54a201e63397161901087ae3c5ff96e9d12ad Mon Sep 17 00:00:00 2001 From: Arti Laddha Date: Feb 19 2017 08:18:57 +0000 Subject: [PATCH 2/3] Add cancel button --- diff --git a/pagure/templates/edit_file.html b/pagure/templates/edit_file.html index 62b67e0..7398812 100644 --- a/pagure/templates/edit_file.html +++ b/pagure/templates/edit_file.html @@ -100,6 +100,7 @@ + @@ -130,5 +131,11 @@ $("input[name=braction]:radio").change(function (e) { $('#branch').html(lbranch); } }); + +$("#cancel").click( + function(){ + history.back(); + } +); {% endblock %} From 7fd1d5287540eee9f2f6bcd882a7c99ade035de8 Mon Sep 17 00:00:00 2001 From: Arti Laddha Date: Feb 21 2017 12:47:50 +0000 Subject: [PATCH 3/3] Change UI for adding comment says update issue for PR to Add comment --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 1813175..aca76c7 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -599,7 +599,7 @@ target="_blank" rel="noopener noreferrer">Markdown Syntax
+ value="Add Comment" tabindex=2 />