-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
188 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,3 +71,7 @@ | |
.fa-eye { | ||
font-size: 1.05rem; | ||
} | ||
|
||
.font--lg { | ||
font-size: 2rem !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
apps/projects/templates/a4_candy_projects/includes/project_tile_userprofile.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% load i18n project_tags a4_candy_project_tags contrib_tags thumbnail rules %} | ||
{% project_tile_image project as project_image %} | ||
{% project_tile_image_copyright project as project_image_copyright %} | ||
|
||
<li class="tile organisation__tile"> | ||
<div class="tile__head"> | ||
<div class="tile__image tile__image--sm" | ||
{% if project_image %} | ||
style="background-image: url({{ project_image|thumbnail_url:'project_thumbnail' }})" | ||
{% endif %}> | ||
{% if project_image_copyright %} | ||
<div class="tile__image__copyright copyright">© {{ project_image_copyright }}</div> | ||
{% endif %} | ||
{% if project.is_semipublic %} | ||
<div class="tile__private-badge"> | ||
<div class="tile__private-badge--top"></div> | ||
<i class="fas fa-eye" title="{% trans 'Project is semi-public.' %}" aria-label="{% trans 'Project is semi-public.' %}"></i> | ||
<div class="tile__private-badge--left"></div> | ||
</div> | ||
|
||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="tile__body"> | ||
<span class="text-muted">{% trans 'By ' %}{{ project.organisation.name }}</span> | ||
<h3 class="tile__title mb-4" id="project-title-{{ project.pk }}"> | ||
<a href="{{ project|project_url }}">{{ project.name }}</a> | ||
</h3> | ||
|
||
{% if project.running_modules %} | ||
<div class="status__active"> | ||
<span class="status-bar__status"><i class="fas fa-clock" aria-hidden="true"></i> | ||
{% if project.module_running_days_left < 365 %} | ||
{% blocktrans with time_left=project.module_running_time_left %} {{ time_left }} remaining {% endblocktrans %} | ||
{% else %} | ||
<span>{% trans 'more than 1 year remaining' %}</span> | ||
{% endif %} | ||
</span> | ||
</div> | ||
{% elif project.future_modules %} | ||
<div class="status__future"> | ||
<span class="status-bar__status"><i class="fas fa-clock" aria-hidden="true"></i>{% blocktrans with date=project.future_modules.first.module_start.date|date:"d.m.Y" %} Participation: from {{ date }}{% endblocktrans %}</span> | ||
</div> | ||
{% elif project.past_modules %} | ||
<div class="status-bar__past"> | ||
{% blocktrans %}Participation ended. Read result.{% endblocktrans %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
<a class="tile__link" aria-labelledby="project-title-{{ project.pk }}" href="{{ project|project_url }}"> | ||
</a> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
apps/userdashboard/templates/a4_candy_userdashboard/userdashboard_overview.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
{% extends "a4_candy_userdashboard/base_userdashboard.html" %} | ||
{% load i18n thumbnail %} | ||
|
||
{% block dashboard_content %}{% endblock %} | ||
{% block dashboard_content %} | ||
|
||
<h3 class="mt-0">{% trans 'Following' %}</h3> | ||
<div class="row"> | ||
{% for project in view.projects %} | ||
<div class="col-sm-6 col-lg-4"> | ||
{% include 'a4_candy_projects/includes/project_tile_userprofile.html' with project=project orientation='vertical' %} | ||
</div> | ||
{% empty %} | ||
{% trans 'This user is not active in any projects yet.' %} | ||
{% endfor %} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters