prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  DomainApplication list on logged in user homepage
  Outcome: A list (limited to one now) of domain applications on the homepage of a logged in user. 
  
  A/C: As a user I want to see my in progress applications for a domain. As a user I want to be able to select an application that is `In Progress` and continue my progress. As a user I want to be able to view submitted applications. 
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `src/registrar/views/index.py`
  Content:
  ```
  1 from django.shortcuts import render
  2 
  3 
  4 def index(request):
  5     """This page is available to anyone without logging in."""
  6     return render(request, "home.html")
  7
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
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
  @@ -1,6 +1,12 @@
   from django.shortcuts import render
   
  +from registrar.models import DomainApplication
  +
   
   def index(request):
       """This page is available to anyone without logging in."""
  -    return render(request, "home.html")
  +    context = {}
  +    if request.user.is_authenticated:
  +        applications = DomainApplication.objects.filter(creator=request.user)
  +        context["domain_applications"] = applications
  +    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@@ -1,6 +1,12 @@\n from django.shortcuts import render\n \n+from registrar.models import DomainApplication\n+\n \n def index(request):\n     \"\"\"This page is available to anyone without logging in.\"\"\"\n-    return render(request, \"home.html\")\n+    context = {}\n+    if request.user.is_authenticated:\n+        applications = DomainApplication.objects.filter(creator=request.user)\n+        context[\"domain_applications\"] = applications\n+    return render(request, \"home.html\", context)\n", "issue": "DomainApplication list on logged in user homepage\nOutcome: A list (limited to one now) of domain applications on the homepage of a logged in user. \n\nA/C: As a user I want to see my in progress applications for a domain. As a user I want to be able to select an application that is `In Progress` and continue my progress. As a user I want to be able to view submitted applications. \n", "before_files": [{"content": "from django.shortcuts import render\n\n\ndef index(request):\n    \"\"\"This page is available to anyone without logging in.\"\"\"\n    return render(request, \"home.html\")\n", "path": "src/registrar/views/index.py"}], "after_files": [{"content": "from 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        context[\"domain_applications\"] = applications\n    return render(request, \"home.html\", context)\n", "path": "src/registrar/views/index.py"}]}