Skip to content

Commit

Permalink
Adjust tool card content meta size on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
destos committed Mar 12, 2019
1 parent b308df7 commit 2404402
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions toolhub/templates/home.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<h2>{{ _("Borrowed Tools") }}</h2>
{% for tool in borrowed_tools[:SHORT_PAGINATE_BY] %}
{% call tool_details_card(tool, user, ['mb-4']) %}
<p class="card-text"><small class="text-uppercase">owner:</small> {{ object_link(tool.user, "profile-link") }}</p>
<p class="card-text">
<small>owner: {{ object_link(tool.user, "profile-link") }}</small>
</p>
{{ return_button(tool) }}
{% endcall %}
{% else %}
Expand All @@ -40,7 +42,11 @@
<h2>{{ _("Recently Added Tools") }}</h2>
{% for tool in new_tools[:SHORT_PAGINATE_BY] %}
{% call tool_details_card(tool, user, ['mb-4']) %}
<p class="card-text"><small class="text-uppercase">owner:</small> {{ object_link(tool.user, "profile-link") }}</p>
<p class="card-text">
<small>owner: {{ object_link(tool.user, "profile-link") }}</small>
<br>
<small>added: {{ tool.created|date("SHORT_DATETIME_FORMAT") }}</small>
</p>
{% endcall %}
{% else %}
<div class="card text-white bg-warning">
Expand Down

0 comments on commit 2404402

Please sign in to comment.