Skip to content

Commit

Permalink
Change up the page markup
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtrwall committed Aug 10, 2016
1 parent 6edd33b commit 7ea7515
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 15 deletions.
6 changes: 5 additions & 1 deletion cfgov/templates/wagtailadmin/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
</div>
{% endif %}

<h1>Log in to consumerfinance.gov</h1>
{% if 'build' in request.site.hostname %}
<h1>Log in to demo Wagtail</h1>
{% else %}
<h1>Log in to consumerfinance.gov</h1>
{% endif %}
<form action="{% url 'cfpb_login' %}" method="post" autocomplete="off">
{% csrf_token %}

Expand Down
45 changes: 31 additions & 14 deletions cfgov/templates/welcome.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,44 @@
{% overextends "wagtailadmin/login.html" %}
{% load i18n admin_static %}

<!-- Build server-specific links -->
{% buildlinks = {"Design Manual - Global Elements": "https://cfpb.github.io/design-manual/global-elements/global-elements.html",
"Design Manual - Page Components": "https://cfpb.github.io/design-manual/page-components/page-components.html",
"Wagtail How-to": "https://github.cfpb.gov/pages/flapjack/wagtail-documentation/"} %}

{% block furniture %}
<div class="content-wrapper">

<h1>{% trans 'Welcome' %} <br/>
You've logged in to the consumerfinance.gov editorial tools.
{% if 'build' in request.site.hostname %}
You've logged in to the demo Wagtail.
{% else %}
You've logged in to the consumerfinance.gov editorial tools.
{% endif %}
</h1>
<h2>Continue on to...</h2>

<h2>Choose which admin interface you'd like to go to</h2>
<ul>
{% for name, url in destinations %}
<li><a href="{{url}}"> {{name}}</a></li>
{% endfor %}
{% if 'build' in request.site.hostname %}
{% for name, url in linkdict %}
{% for name, url in destinations %}
<li><a href="{{url}}"> {{name}}</a></li>
{% endfor %}
{% endif %}
</ul>
{% endfor %}

{% if 'build' in request.site.hostname %}
<h2>Helpful links</h2>
<ul>
<li>
<a href="https://github.cfpb.gov/pages/flapjack/wagtail-documentation/">
Wagtail How-to
</a>
</li>
<li>
<a href="https://cfpb.github.io/design-manual/global-elements/global-elements.html">
Design Manual - Global Elements
</a>
</li>
<li>
<a href="https://cfpb.github.io/design-manual/page-components/page-components.html">
Design Manual - Page Components
</a>
</li>
</ul>
{% endif %}

</div>
{% endblock %}

0 comments on commit 7ea7515

Please sign in to comment.