Skip to content

Commit

Permalink
Merge pull request #1 from kurtrwall/kurt-to-hillary/build-links
Browse files Browse the repository at this point in the history
Explanatory fixes
  • Loading branch information
hillaryj authored Aug 10, 2016
2 parents 6d57fbb + 7ea7515 commit 9309ae5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 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
38 changes: 33 additions & 5 deletions cfgov/templates/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,42 @@

{% 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 %}
{% for name, url in destinations %}
<li><a href="{{url}}"> {{name}}</a></li>
{% endfor %}
</ul>

{% 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 9309ae5

Please sign in to comment.