Skip to content

Commit

Permalink
- profile: show placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Nov 14, 2018
1 parent 032c25d commit 5a8bb90
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
1 change: 0 additions & 1 deletion app/grants/templates/grants/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
{% load i18n static humanize i18n %}
<link rel="stylesheet" href="{% static "v2/css/grants/card.css" %}">
<div class="grant-item">
<div class="grant-item__content py-4 px-3">
<h2 class="grant-item__title font-subheader"><a href="{% url 'grants:details' grant.id %}">{{ grant.title|truncatechars:60 }}</a></h2>
Expand Down
1 change: 1 addition & 0 deletions app/grants/templates/grants/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<link rel="stylesheet" href="{% static "v2/css/search_bar.css" %}">
{% include 'shared/head.html' %}
{% include 'shared/cards.html' %}
<link rel="stylesheet" href="{% static "v2/css/grants/card.css" %}">
</head>
<body class="interior {{ active }} grant g-font-muli">
{% include 'shared/tag_manager_2.html' %}
Expand Down
31 changes: 20 additions & 11 deletions app/grants/templates/grants/profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<link rel="stylesheet" href={% static "v2/css/tabs.css" %}>
<link rel="stylesheet" href={% static "v2/css/tag.css" %}>
<link rel="stylesheet" href="{% static "v2/css/grants/profile.css" %}">
<link rel="stylesheet" href="{% static "v2/css/grants/card.css" %}">
</head>
<body class="interior {{ active }} g-font-muli">
{% include 'shared/tag_manager_2.html' %}
Expand All @@ -32,7 +33,7 @@
{% include 'grants/nav.html' %}
</div>

{% if grants|length != 0 and sub_grants|length != 0 %}
{% if grants|length != 0 or sub_grants|length != 0 %}
<div class="container pt-5">
<div id="grant-profile-tabs" class="tab-container font-body mb-3">
<button type="button" id="supported" class="section-tab">{% trans "Supported" %} ({{ sub_grants|length }})</button>
Expand All @@ -41,22 +42,30 @@

<div id="grant-profile-tabs-sections" class="tab-sections section">
<div id="section-supported" class="tab-section active">
<div class="container px-0">
<div class="row mb-3 py-2 px-0 mx-sm-0">
<div class="col-12 px-0">
{% include 'grants/profile/body.html' with grants=sub_grants history=history %}
{% if sub_grants|length != 0 %}
<div class="container px-0">
<div class="row mb-3 py-2 px-0 mx-sm-0">
<div class="col-12 px-0">
{% include 'grants/profile/body.html' with grants=sub_grants history=history %}
</div>
</div>
</div>
</div>
{% else %}
{% include 'grants/profile/none.html' %}
{% endif %}
</div>
<div id="section-created" class="tab-section">
<div class="container px-0">
<div class="row mb-3 py-2 px-0 mx-sm-0">
<div class="col-12 px-0">
{% include 'grants/profile/body.html' with grants=grants history=history %}
{% if grants|length != 0 %}
<div class="container px-0">
<div class="row mb-3 py-2 px-0 mx-sm-0">
<div class="col-12 px-0">
{% include 'grants/profile/body.html' with grants=grants history=history %}
</div>
</div>
</div>
</div>
{% else %}
{% include 'grants/profile/none.html' %}
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit 5a8bb90

Please sign in to comment.