
    {% for framework in frameworks.open %}
      {% if framework.registered_interest %}
        {% with
          headingId = "closed-notice",
          grid = "column-one-third",
          main = true,
          messages = [framework.deadline],
          link = { "label": "Continue your application", "url": url_for(".framework_dashboard", framework_slug=framework.slug) },
          heading = "Your {} application".format(framework.name)
        %}
          {% include "toolkit/temporary-message.html" %}
        {% endwith %}
      {% else %}
        <form action="{{ url_for('.framework_dashboard', framework_slug=framework.slug) }}" method="POST">
          <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
          {% with
            headingId = "closed-notice",
            grid = "column-one-third",
            main = true,
            messages = [
              "Starting your application means you’ll receive {} email updates.".format(framework.name)
            ],
            button = {"label": "Apply", "type": "save"},
            heading = "{} is open for applications".format(framework.name)
          %}
            {% include "toolkit/temporary-message.html" %}
          {% endwith %}
        </form>
      {% endif %}
    {% endfor %}


    {% for framework in frameworks.open %}
      {% if framework.registered_interest %}
        {% with
          main = true,
          messages = [framework.deadline],
          link = { "label": "Continue your application", "url": url_for(".framework_dashboard", framework_slug=framework.slug) },
          heading = "Your {} application".format(framework.name)
        %}
          {% include "toolkit/temporary-message.html" %}
        {% endwith %}
      {% else %}
        <form action="{{ url_for('.framework_dashboard', framework_slug=framework.slug) }}" method="POST">
          <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
          {% with
            main = true,
            messages = [
              "Starting your application means you’ll receive {} email updates.".format(framework.name)
            ],
            button = {"label": "Apply", "type": "save"},
            heading = "{} is open for applications".format(framework.name)
          %}
            {% include "toolkit/temporary-message.html" %}
          {% endwith %}
        </form>
      {% endif %}
    {% endfor %}

Delete redundant lines from framework application banners
Delete redundant lines from framework application banners
