-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1143 from TOMToolkit/1105-add-integration-points-…
…for-apps-to-include-partials-on-the-users-profile-page 1105 add integration points for apps to include partials on the users profile page
- Loading branch information
Showing
7 changed files
with
111 additions
and
11 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
23 changes: 23 additions & 0 deletions
23
tom_common/templates/tom_common/partials/app_profiles.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,23 @@ | ||
{% load user_extras tom_common_extras %} | ||
{% load bootstrap4 %} | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-6"> | ||
{% for profile in profiles_to_display %} | ||
{% show_individual_app_profile profile %} | ||
|
||
{% comment %} | ||
Start new column halfway through the list of profiles. | ||
{% endcomment %} | ||
{% if forloop.counter == profile_list|length|add:"1"|multiplyby:"0.5"|add:"0" %} | ||
</div> | ||
<div class="col-6"> | ||
{% endif %} | ||
|
||
{% empty %} | ||
This user has no profile. | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> |
7 changes: 7 additions & 0 deletions
7
tom_common/templates/tom_common/partials/include_profile_card.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,7 @@ | ||
{% comment %} | ||
This partial template includes another partial from the context specific to a specific App's profile. | ||
This allows the partial to be rendered with only the context specified by the app, without interference from | ||
other app profile contexts. | ||
{% endcomment %} | ||
|
||
{% include profile_partial %} |
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