-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proposition: show department and area as badges
Department and area are displayed as badges now, like special kinds of tags. Clicking on a department filters by department and clicking on the area filters by department and subject area (area is always bound to a department). Clicking on a tag now behaves differently: it also filters by department and subject area as this will be the most common use case: see other propositions about the same topic, in the same subject area. Searching for topics globally is generally less helpful but still possible by removing the department filter with another click.
- Loading branch information
Showing
9 changed files
with
100 additions
and
23 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
25 changes: 25 additions & 0 deletions
25
src/ekklesia_portal/concepts/proposition/templates/proposition_badges.j2.jade
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,25 @@ | ||
ul | ||
li | ||
a.department( | ||
href = propositions_badge_url(department_name) | ||
title = _("department") | ||
)= department_name | ||
|
||
li | ||
a.area( | ||
href = propositions_badge_url(department_name, subject_area_name) | ||
title = _("subject_area") | ||
)= subject_area_name | ||
|
||
for tag in tags | ||
li | ||
a.tag( | ||
href = propositions_badge_url( | ||
department_name, subject_area_name, tag.name | ||
) | ||
title = _("tag") | ||
)= tag.name | ||
|
||
|
||
// generated from jade | ||
//- vim: set filetype=jade sw=2 ts=2 sts=2 expandtab: |
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
8 changes: 0 additions & 8 deletions
8
src/ekklesia_portal/concepts/proposition/templates/proposition_tag_list.j2.jade
This file was deleted.
Oops, something went wrong.
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