-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module-tiles: add module tile insights
- Loading branch information
Showing
11 changed files
with
224 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Added | ||
- render_module_insights template tag for rendering insights/stats per module | ||
|
||
### Removed | ||
- get_num_entries template tag |
5 changes: 5 additions & 0 deletions
5
...lin/apps/projects/templates/meinberlin_projects/includes/module-tile/module_insights.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,5 @@ | ||
{% load i18n meinberlin_project_tags %} | ||
|
||
<i class="module-insight__icon {{ icon }}" aria-hidden="true"></i> | ||
<span class="module-insight__count">{{ count }}</span> | ||
<span class="module-insight__label">{{ label }}</span> |
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
12 changes: 12 additions & 0 deletions
12
meinberlin/apps/projects/templates/meinberlin_projects/includes/project_participation.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,12 @@ | ||
{% load i18n meinberlin_project_tags %} | ||
<section aria-labelledby="project-participation" class="block"> | ||
<h2 id="project-participation">{% translate "Online Participation" %}</h2> | ||
<ul class="list--clean flexgrid grid--3 grid--stretch"> | ||
{% get_sorted_modules as modules %} | ||
{% for module in modules %} | ||
<li> | ||
{% include "meinberlin_projects/includes/module-tile/module_tile.html" with project=project module=module %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</section> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"weight": 1, | ||
"project": 1, | ||
"is_draft": false, | ||
"blueprint_type": "" | ||
"blueprint_type": "BS" | ||
} | ||
}, | ||
{ | ||
|
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
Oops, something went wrong.