prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Show simplified domain statuses to the registrant
  ### Story
  
  As a domain manager
  I want to know the status of my domain in simple language
  so that I know if any action is needed or if any functions are limited
  
  
  ### Acceptance Criteria
  
  - [x] Domains table on the dashboard shows a user-friendly domain status
  - [ ] Show the domain status on the "Domain Overview" page
  - [ ] For Domain statuses Deleted and Hold, change manage link to View with eye icon [(Figma)](https://www.figma.com/file/aJbuDLJNNikqQObTuCNKQa/GetGov_Designs_ECS-Truss?type=design&node-id=428%3A11621&mode=design&t=eottghQ6NoX98F6q-1)
  
  
  ### Additional Context
  **BACKGROUND**
  In general, EPP / domain statuses are not easily understandable to most users; therefore, we need to ensure we're showing "user-friendly" versions of the domain status. 
  
  User-friendly statuses include: 
  - _Note:_ "Unknown" _Domain status shows as_ "DNS needed"
  - DNS needed 
  - Ready
  - On hold
  - Deleted
  
  Refer to[ status diagram Miro](https://miro.com/app/board/uXjVMuqbLOk=/?moveToWidget=3458764561795634398&cot=14)
  
  **DOMAINS TABLE**
  Currently, the approved Domains table displays the application status. But, because the application process is complete, we should update this to show the _domain_ status. 
  
  Reference [Figma mock up](https://www.figma.com/file/aJbuDLJNNikqQObTuCNKQa/GetGov_Designs_ECS-Truss?type=design&node-id=428-25637&mode=design&t=VBfj3tkkg2p3f8UT-0)
  
  **DOMAIN OVERVIEW**
  Currently, we do not show the  domain status when viewing the "Manage Domains" pages. The "Manage Domains" pages can be accessed by clicking the "Manage" button next to an approved domain. 
  
  The first page is the "Domain Overview." Add stylized message to the top of that page to indicate the user-friendly domain status.
  
  Reference [Figma mock up](https://www.figma.com/file/aJbuDLJNNikqQObTuCNKQa/GetGov_Designs_ECS-Truss?type=design&node-id=4829-39693&mode=design&t=VBfj3tkkg2p3f8UT-0)
  
  ### Issue Links
  
  Depends on: Domain Status presence for testing
  
  </issue>
  <code>
  [start of src/registrar/views/index.py]
  1 from django.db.models import F
  2 from django.shortcuts import render
  3 
  4 from registrar.models import DomainApplication
  5 
  6 
  7 def index(request):
  8     """This page is available to anyone without logging in."""
  9     context = {}
  10     if request.user.is_authenticated:
  11         applications = DomainApplication.objects.filter(creator=request.user)
  12         # Let's exclude the approved applications since our
  13         # domain_applications context will be used to populate
  14         # the active applications table
  15         context["domain_applications"] = applications.exclude(status="approved")
  16 
  17         domains = request.user.permissions.values(
  18             "role",
  19             pk=F("domain__id"),
  20             name=F("domain__name"),
  21             created_time=F("domain__created_at"),
  22             application_status=F("domain__domain_application__status"),
  23         )
  24         context["domains"] = domains
  25     return render(request, "home.html", context)
  26
  [end of src/registrar/views/index.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py
  --- a/src/registrar/views/index.py
  +++ b/src/registrar/views/index.py
  @@ -19,7 +19,7 @@
               pk=F("domain__id"),
               name=F("domain__name"),
               created_time=F("domain__created_at"),
  -            application_status=F("domain__domain_application__status"),
  +            state=F("domain__state"),
           )
           context["domains"] = domains
       return render(request, "home.html", context)
  
verification_info: {"golden_diff": "diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py\n--- a/src/registrar/views/index.py\n+++ b/src/registrar/views/index.py\n@@ -19,7 +19,7 @@\n             pk=F(\"domain__id\"),\n             name=F(\"domain__name\"),\n             created_time=F(\"domain__created_at\"),\n-            application_status=F(\"domain__domain_application__status\"),\n+            state=F(\"domain__state\"),\n         )\n         context[\"domains\"] = domains\n     return render(request, \"home.html\", context)\n", "issue": "Show simplified domain statuses to the registrant\n### Story\r\n\r\nAs a domain manager\r\nI want to know the status of my domain in simple language\r\nso that I know if any action is needed or if any functions are limited\r\n\r\n\r\n### Acceptance Criteria\r\n\r\n- [x] Domains table on the dashboard shows a user-friendly domain status\r\n- [ ] Show the domain status on the \"Domain Overview\" page\r\n- [ ] For Domain statuses Deleted and Hold, change manage link to View with eye icon [(Figma)](https://www.figma.com/file/aJbuDLJNNikqQObTuCNKQa/GetGov_Designs_ECS-Truss?type=design&node-id=428%3A11621&mode=design&t=eottghQ6NoX98F6q-1)\r\n\r\n\r\n### Additional Context\r\n**BACKGROUND**\r\nIn general, EPP / domain statuses are not easily understandable to most users; therefore, we need to ensure we're showing \"user-friendly\" versions of the domain status. \r\n\r\nUser-friendly statuses include: \r\n- _Note:_ \"Unknown\" _Domain status shows as_ \"DNS needed\"\r\n- DNS needed \r\n- Ready\r\n- On hold\r\n- Deleted\r\n\r\nRefer to[ status diagram Miro](https://miro.com/app/board/uXjVMuqbLOk=/?moveToWidget=3458764561795634398&cot=14)\r\n\r\n**DOMAINS TABLE**\r\nCurrently, the approved Domains table displays the application status. But, because the application process is complete, we should update this to show the _domain_ status. \r\n\r\nReference [Figma mock up](https://www.figma.com/file/aJbuDLJNNikqQObTuCNKQa/GetGov_Designs_ECS-Truss?type=design&node-id=428-25637&mode=design&t=VBfj3tkkg2p3f8UT-0)\r\n\r\n**DOMAIN OVERVIEW**\r\nCurrently, we do not show the  domain status when viewing the \"Manage Domains\" pages. The \"Manage Domains\" pages can be accessed by clicking the \"Manage\" button next to an approved domain. \r\n\r\nThe first page is the \"Domain Overview.\" Add stylized message to the top of that page to indicate the user-friendly domain status.\r\n\r\nReference [Figma mock up](https://www.figma.com/file/aJbuDLJNNikqQObTuCNKQa/GetGov_Designs_ECS-Truss?type=design&node-id=4829-39693&mode=design&t=VBfj3tkkg2p3f8UT-0)\r\n\r\n### Issue Links\r\n\r\nDepends on: Domain Status presence for testing\n", "before_files": [{"content": "from django.db.models import F\nfrom django.shortcuts import render\n\nfrom registrar.models import DomainApplication\n\n\ndef index(request):\n    \"\"\"This page is available to anyone without logging in.\"\"\"\n    context = {}\n    if request.user.is_authenticated:\n        applications = DomainApplication.objects.filter(creator=request.user)\n        # Let's exclude the approved applications since our\n        # domain_applications context will be used to populate\n        # the active applications table\n        context[\"domain_applications\"] = applications.exclude(status=\"approved\")\n\n        domains = request.user.permissions.values(\n            \"role\",\n            pk=F(\"domain__id\"),\n            name=F(\"domain__name\"),\n            created_time=F(\"domain__created_at\"),\n            application_status=F(\"domain__domain_application__status\"),\n        )\n        context[\"domains\"] = domains\n    return render(request, \"home.html\", context)\n", "path": "src/registrar/views/index.py"}]}