prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  tiles on plans and container: blue corner missing for external projects
  for external projects the little blue corner is missing
  
  mac on chrome and firefox
  
  <img width="400" alt="bildschirmfoto 2019-02-11 um 16 45 01" src="https://user-images.githubusercontent.com/35491681/52574395-7d708980-2e1c-11e9-8cfd-b9f8be74ea16.png">
  
  
  </issue>
  <code>
  [start of meinberlin/apps/dashboard/__init__.py]
  1 from adhocracy4.dashboard import components
  2 from adhocracy4.dashboard import ProjectDashboard
  3 from meinberlin.apps.projects import get_project_type
  4 
  5 
  6 default_app_config = 'meinberlin.apps.dashboard.apps.Config'
  7 
  8 
  9 class TypedProjectDashboard(ProjectDashboard):
  10     def __init__(self, project):
  11         self.project_type = get_project_type(project)
  12         if self.project_type == 'bplan':
  13             project = project.externalproject.bplan
  14         elif self.project_type == 'external':
  15             project = project.externalproject
  16         elif self.project_type == 'container':
  17             project = project.projectcontainer
  18         super().__init__(project)
  19 
  20     def get_project_components(self):
  21         if self.project_type == 'bplan':
  22             return [components.projects.get('bplan'),
  23                     components.projects.get('adminlog')]
  24         elif self.project_type == 'external':
  25             return [components.projects.get('external'),
  26                     components.projects.get('adminlog')]
  27         elif self.project_type == 'container':
  28             return [components.projects.get('container-basic'),
  29                     components.projects.get('container-information'),
  30                     components.projects.get('topics'),
  31                     components.projects.get('point'),
  32                     components.projects.get('container-projects')]
  33 
  34         return [component for component in components.get_project_components()
  35                 if component.is_effective(self.project)]
  36 
  37     def get_module_components(self):
  38         if self.project_type == 'bplan':
  39             return []
  40         elif self.project_type == 'external':
  41             return []
  42         elif self.project_type == 'container':
  43             return []
  44 
  45         return components.get_module_components()
  46
  [end of meinberlin/apps/dashboard/__init__.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/meinberlin/apps/dashboard/__init__.py b/meinberlin/apps/dashboard/__init__.py
  --- a/meinberlin/apps/dashboard/__init__.py
  +++ b/meinberlin/apps/dashboard/__init__.py
  @@ -20,15 +20,20 @@
       def get_project_components(self):
           if self.project_type == 'bplan':
               return [components.projects.get('bplan'),
  +                    components.projects.get('plans'),
                       components.projects.get('adminlog')]
           elif self.project_type == 'external':
               return [components.projects.get('external'),
  +                    components.projects.get('topics'),
  +                    components.projects.get('point'),
  +                    components.projects.get('plans'),
                       components.projects.get('adminlog')]
           elif self.project_type == 'container':
               return [components.projects.get('container-basic'),
                       components.projects.get('container-information'),
                       components.projects.get('topics'),
                       components.projects.get('point'),
  +                    components.projects.get('plans'),
                       components.projects.get('container-projects')]
   
           return [component for component in components.get_project_components()
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/dashboard/__init__.py b/meinberlin/apps/dashboard/__init__.py\n--- a/meinberlin/apps/dashboard/__init__.py\n+++ b/meinberlin/apps/dashboard/__init__.py\n@@ -20,15 +20,20 @@\n     def get_project_components(self):\n         if self.project_type == 'bplan':\n             return [components.projects.get('bplan'),\n+                    components.projects.get('plans'),\n                     components.projects.get('adminlog')]\n         elif self.project_type == 'external':\n             return [components.projects.get('external'),\n+                    components.projects.get('topics'),\n+                    components.projects.get('point'),\n+                    components.projects.get('plans'),\n                     components.projects.get('adminlog')]\n         elif self.project_type == 'container':\n             return [components.projects.get('container-basic'),\n                     components.projects.get('container-information'),\n                     components.projects.get('topics'),\n                     components.projects.get('point'),\n+                    components.projects.get('plans'),\n                     components.projects.get('container-projects')]\n \n         return [component for component in components.get_project_components()\n", "issue": "tiles on plans and container: blue corner missing for external projects\nfor external projects the little blue corner is missing\r\n\r\nmac on chrome and firefox\r\n\r\n<img width=\"400\" alt=\"bildschirmfoto 2019-02-11 um 16 45 01\" src=\"https://user-images.githubusercontent.com/35491681/52574395-7d708980-2e1c-11e9-8cfd-b9f8be74ea16.png\">\r\n\n", "before_files": [{"content": "from adhocracy4.dashboard import components\nfrom adhocracy4.dashboard import ProjectDashboard\nfrom meinberlin.apps.projects import get_project_type\n\n\ndefault_app_config = 'meinberlin.apps.dashboard.apps.Config'\n\n\nclass TypedProjectDashboard(ProjectDashboard):\n    def __init__(self, project):\n        self.project_type = get_project_type(project)\n        if self.project_type == 'bplan':\n            project = project.externalproject.bplan\n        elif self.project_type == 'external':\n            project = project.externalproject\n        elif self.project_type == 'container':\n            project = project.projectcontainer\n        super().__init__(project)\n\n    def get_project_components(self):\n        if self.project_type == 'bplan':\n            return [components.projects.get('bplan'),\n                    components.projects.get('adminlog')]\n        elif self.project_type == 'external':\n            return [components.projects.get('external'),\n                    components.projects.get('adminlog')]\n        elif self.project_type == 'container':\n            return [components.projects.get('container-basic'),\n                    components.projects.get('container-information'),\n                    components.projects.get('topics'),\n                    components.projects.get('point'),\n                    components.projects.get('container-projects')]\n\n        return [component for component in components.get_project_components()\n                if component.is_effective(self.project)]\n\n    def get_module_components(self):\n        if self.project_type == 'bplan':\n            return []\n        elif self.project_type == 'external':\n            return []\n        elif self.project_type == 'container':\n            return []\n\n        return components.get_module_components()\n", "path": "meinberlin/apps/dashboard/__init__.py"}]}