mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Use built in uswds class
This commit is contained in:
parent
e92b0c5b79
commit
fc138b5f44
3 changed files with 5 additions and 6 deletions
|
@ -3019,7 +3019,7 @@ class PortfolioAdmin(ListHeaderAdmin):
|
|||
return format_html(seperator.join(links)) if links else "-"
|
||||
else:
|
||||
links = "".join(links)
|
||||
return format_html(f'<ul class="unstyled-list-elements">{links}</ul>') if links else "-"
|
||||
return format_html(f'<ul class="add-list-reset">{links}</ul>') if links else "-"
|
||||
|
||||
def value_of_attribute(self, obj, attribute_name: str):
|
||||
"""Returns the value of getattr if the attribute isn't callable.
|
||||
|
|
|
@ -848,8 +848,7 @@ div.dja__model-description{
|
|||
}
|
||||
}
|
||||
|
||||
ul.unstyled-list-elements {
|
||||
ul.add-list-reset {
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
list-style: none;
|
||||
}
|
||||
|
|
|
@ -2083,7 +2083,7 @@ class TestPortfolioAdmin(TestCase):
|
|||
suborganizations = self.admin.suborganizations(self.portfolio)
|
||||
self.assertIn("Sub1", suborganizations)
|
||||
self.assertIn("Sub2", suborganizations)
|
||||
self.assertIn('<ul class="unstyled-list-elements">', suborganizations)
|
||||
self.assertIn('<ul class="add-list-reset">', suborganizations)
|
||||
|
||||
@less_console_noise_decorator
|
||||
def test_domains_display(self):
|
||||
|
@ -2109,7 +2109,7 @@ class TestPortfolioAdmin(TestCase):
|
|||
domains = self.admin.domains(self.portfolio)
|
||||
self.assertIn("domain1.gov", domains)
|
||||
self.assertIn("domain2.gov", domains)
|
||||
self.assertIn('<ul class="unstyled-list-elements">', domains)
|
||||
self.assertIn('<ul class="add-list-reset">', domains)
|
||||
|
||||
@less_console_noise_decorator
|
||||
def test_domain_requests_display(self):
|
||||
|
@ -2120,4 +2120,4 @@ class TestPortfolioAdmin(TestCase):
|
|||
domain_requests = self.admin.domain_requests(self.portfolio)
|
||||
self.assertIn("request1.gov", domain_requests)
|
||||
self.assertIn("request2.gov", domain_requests)
|
||||
self.assertIn('<ul class="unstyled-list-elements">', domain_requests)
|
||||
self.assertIn('<ul class="add-list-reset">', domain_requests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue