Skip to content

Commit

Permalink
apps/a4_candy_userdashboard: clean up some bits
Browse files Browse the repository at this point in the history
  • Loading branch information
philli-m committed Jan 19, 2021
1 parent 64c756a commit 658c4c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>

<div class="container">
<div class="row py-4">
<div class="row py-4 mb-5">

<div class="col-md-3">
<div
Expand Down Expand Up @@ -91,7 +91,7 @@ <h3>{% trans 'Organisations' %}</h3>
{% if organisation.logo %}
<img src="{% thumbnail organisation.logo '0x40' %}" alt="{{ orgnaisation.name }}" />
{% else %}
<i class="fas fa-home fa--lg pt-1" aria-label="{{ orgnaisation.name }} {% trans 'Home' %}"></i>
<i class="fas fa-home font--lg pt-1" aria-label="{{ orgnaisation.name }} {% trans 'Home' %}"></i>
{% endif %}
&nbsp {{ organisation.name }}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@ <h3 class="mt-0">{% trans 'Following' %}</h3>
{% include 'a4_candy_projects/includes/project_tile_userprofile.html' with project=project orientation='vertical' %}
</div>
{% empty %}
<div class="col-sm-6 col-lg-4">
{% trans 'This user is not active in any projects yet.' %}
</div>
{% endfor %}
{% if view.projects.count > 9 %}
<a class="btn btn--light" href="{% url 'userdashboard-following' %}">{% trans 'View more' %}</a>
{% endif %}
</div>

<h3>{% trans 'Activities' %}</h3>
{% for action in view.actions|slice:":5" %}
{% include 'a4_candy_actions/includes/action.html' with action=action %}
{% empty %}
{% trans 'No activity yet. '%}
{% endfor %}
{% if view.actions.count > 5 %}
<a class="btn btn--light" href="{% url 'userdashboard-activities' %}">{% trans 'View more' %}</a>
<a class="btn btn--light mt-4" href="{% url 'userdashboard-activities' %}">{% trans 'View more' %}</a>
{% endif %}
{% endblock %}

0 comments on commit 658c4c3

Please sign in to comment.