Skip to content

Commit

Permalink
feat: addresses #6 & #7 by surfacing more survey data in profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Mar 24, 2020
1 parent ba12233 commit 7d119e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
18 changes: 9 additions & 9 deletions maps/templates/maps/individual_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ <h1>{{ user.last_name }}, {{ user.first_name }}</h1>
</span>

<div class="tags">
<span class="badge">Role: Data not collected</span><br />
<span class="badge">Role: {{ user.role }}</span><br />
</div>

{% if user.bio %}
<h2>Bio:</h2>
<p>
{{ user.bio }}
</p>
{% if user.bio %}
<p>{{ user.bio }}</p>
{% else %}
<p>Nam ligula ligula, accumsan eget libero nec, laoreet aliquam ante. Integer ac laoreet dui, eu tincidunt ante. Aenean vel augue eros. Duis sollicitudin velit sed tortor mollis, a vulputate urna facilisis. Morbi eu nisl et urna venenatis vehicula sed non nunc. Vestibulum id ornare diam. In sodales rhoncus lorem, vitae pulvinar sem molestie at. Sed cursus purus ac lacus auctor, vel ornare lorem feugiat.</p>
{% endif %}

<h2>Looking for:</h2>
Expand Down Expand Up @@ -67,11 +67,11 @@ <h2>Follow:</h2>
</ul>
{% endif %}

{% if user.notes %}
<h2>Notes:</h2>
<p>
{{ user.notes }}
</p>
{% if user.notes %}
<p>{{ user.notes }}</p>
{% else %}
<p>In hac habitasse platea dictumst. Praesent non odio consequat, malesuada leo a, accumsan mi. Fusce iaculis eleifend luctus. Sed libero sem, convallis id ornare sit amet, tincidunt a est. Aliquam sagittis eleifend vulputate. Aenean volutpat nulla sit amet ligula rhoncus, nec interdum mi dignissim. </p>
{% endif %}

<div class="spacer"></div>
Expand Down
16 changes: 9 additions & 7 deletions maps/templates/maps/organization_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ <h1>{{ organization.name }}</h1>
</div>

<h2>Description:</h2>
{% if organization.description %}
<p>{{ organization.description }}</p>
{% else %}
<p>In hac habitasse platea dictumst. Praesent non odio consequat, malesuada leo a, accumsan mi. Fusce iaculis eleifend luctus. Sed libero sem, convallis id ornare sit amet, tincidunt a est. Aliquam sagittis eleifend vulputate. Aenean volutpat nulla sit amet ligula rhoncus, nec interdum mi dignissim. </p>
{% endif %}

<h2>Challenges:</h2>
<p>Data not collected</p>
Expand Down Expand Up @@ -58,13 +62,11 @@ <h2>Follow:</h2>
{% endif %}

<h2>Notes:</h2>
<p>{# organization.description #}</p>
{# {% if organization.notes %}#}
{# <h2>Notes:</h2>#}
{# <p>#}
{# {{ user.notes }}#}
{# </p>#}
{# {% endif %}#}
{% if organization.notes %}
<p>{{ organization.notes }}</p>
{% else %}
<p>Curabitur rhoncus felis eget orci aliquam efficitur. Aenean sit amet pellentesque massa, eu scelerisque arcu. Donec convallis gravida cursus. Praesent blandit est ante, sit amet blandit dui sodales sed. Vivamus efficitur at tortor in aliquet.</p>
{% endif %}

<div class="spacer"></div>
<small>Last updated: {{ organization.updated_at }}</small>
Expand Down

0 comments on commit 7d119e6

Please sign in to comment.