Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Commit

Permalink
Merge b6290bf into 9e82ac9
Browse files Browse the repository at this point in the history
  • Loading branch information
willbarton committed Nov 8, 2017
2 parents 9e82ac9 + b6290bf commit a6e0500
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ccdb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'wagtail.wagtailcore',
'flags',
'complaint_common',
'complaint',
'complaintdatabase',
Expand Down
14 changes: 14 additions & 0 deletions complaintdatabase/templates/landing-page.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{% extends 'base_responsive.html' %}
{% load staticfiles %}
{% load humanize %}
{% load feature_flags %}

{% block title %}Consumer Complaint Database{% endblock %}

{% block content %}
{% flag_enabled 'CCDB5_RELEASE' as CCDB5_RELEASE %}
<div id="ccdb-landing">
<!--
If the data has not been updated, add class 'show-data-notification' to cf-notification
Expand Down Expand Up @@ -42,14 +44,22 @@ <h1 class="hero_heading">Consumer Complaint Database</h1>
<img class="isocon" src="{% static 'complaint_common/img/read.png' %}">
<p>Consumers have let us know they want to share their complaint descriptions so others can learn from their experience.</p>
<div class="btn-holder">
{% if CCDB5_RELEASE %}
<p><a href="/data-research/consumer-complaints/search/?has_narrative=true" target="_blank" class="btn">Read consumer narratives</a></p>
{% else %}
<p><a href="https://data.consumerfinance.gov/d/nsyy-je5y" target="_blank" class="btn">Read consumer narratives</a></p>
{% endif %}
</div>
</div>
<div class="content-l_col content-l_col-1-3">
<img class="isocon" src="{% static 'complaint_common/img/view.png' %}">
<p>View, sort, and filter data right in your browser.</p>
<div class="btn-holder">
{% if CCDB5_RELEASE %}
<p><a href="/data-research/consumer-complaints/search/" target="_blank" class="btn">View complaint data</a></p>
{% else %}
<p><a href="https://data.consumerfinance.gov/d/s6ew-h6mp" target="_blank" class="btn">View complaint data</a></p>
{% endif %}
</div>
</div>
<div class="content-l_col content-l_col-1-3">
Expand Down Expand Up @@ -149,7 +159,11 @@ <h2 id="download-the-data">Download the data</h2>
</a>
</li>
<li class="list_item">
{% if CCDB5_RELEASE %}
<a class="list_link" href="/data-research/consumer-complaints/search/">
{% else %}
<a class="list_link" href="https://data.consumerfinance.gov/d/s6ew-h6mp">
{% endif %}
Filter the full data set
</a>
</li>
Expand Down
3 changes: 1 addition & 2 deletions complaintdatabase/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ def test_get_context_data_exist(self):
self.assertTrue('narratives' in response.context_data.keys())
self.assertTrue('stats' in response.context_data.keys())

@skipIf(not getattr(settings, 'STANDALONE', 'False'),
"not running standlone")
@skipIf(True, "not running with feature flags")
def test_demo_json(self):
"""Test demo version of landing page"""
response = client.get(reverse("ccdb-demo",
Expand Down

0 comments on commit a6e0500

Please sign in to comment.