diff --git a/pagure/templates/settings_milestones.html b/pagure/templates/settings_milestones.html index 3c995bb..6ee133b 100644 --- a/pagure/templates/settings_milestones.html +++ b/pagure/templates/settings_milestones.html @@ -7,76 +7,76 @@ possible to create a roadmap for your project. Below you can create the milestones and optionally set dates for them.

-
- {{ tag_form.csrf_token }} -
-
- Milestone -
-
- Date (optional) -
-
- Reorder -
-
- Active -
-
-
- {% for milestone in (repo.milestones_keys or repo.milestones or [""]) %} -
-
- -
-
- -
-
- - -
-
- -
-
- {% endfor %} -
-
- - -
-
-
- -
-
-
+
+ {{ tag_form.csrf_token }} +
+
+ Milestone +
+
+ Date (optional) +
+
+ Reorder +
+
+ Active +
+
+
+ {% for milestone in (repo.milestones_keys or repo.milestones or [""]) %} +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ {% endfor %} +
+
+ + +
+
+
+ +
+
+
diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index f60746a..7c31536 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -1433,25 +1433,25 @@ class PagureFlaskRepotests(tests.Modeltests): # Check that the milestones have their empty fields self.assertIn( '''
-
-
- -
-
- -
-
- - -
-
- -
-
''', output_text) +
+
+ +
+
+ +
+
+ + +
+
+ +
+
''', output_text) # Check that the close_status have its empty field self.assertIn( @@ -4318,7 +4318,6 @@ index 0000000..fb7093d output_text = output.get_data(as_text=True) self.assertIn('0.0.1', output_text) self.assertIn('
', output_text) - print(output_text) self.assertEqual( output_text.count(''), 1) @@ -5051,9 +5050,9 @@ index 0000000..fb7093d self.assertIn('
Project Settings
', output_text) self.assertIn(' Test token', output_text) self.assertIn( - '\n ' - 'Active until', - output_text) + '' + '\n ' + 'Active until', output_text) @patch('pagure.decorators.admin_session_timedout') def test_revoke_api_token(self, ast): diff --git a/tests/test_pagure_flask_ui_repo_milestones.py b/tests/test_pagure_flask_ui_repo_milestones.py index 26b7714..b57dd7d 100644 --- a/tests/test_pagure_flask_ui_repo_milestones.py +++ b/tests/test_pagure_flask_ui_repo_milestones.py @@ -67,25 +67,25 @@ class PagureFlaskRepoMilestonestests(tests.Modeltests): # Check that the milestones have their empty fields self.assertIn( '''
-
-
- -
-
- -
-
- - -
-
- -
-
''', output.get_data(as_text=True)) +
+
+ +
+
+ +
+
+ + +
+
+ +
+
''', output.get_data(as_text=True)) @patch('pagure.decorators.admin_session_timedout', MagicMock(return_value=False))