Commit 681539ee by Clinton Blackburn

Merge pull request #82 from edx/toggle-forum-activity

Added Feature Gate around Forum Activity
parents 2c3335fc e253aac4
...@@ -50,6 +50,8 @@ demo: ...@@ -50,6 +50,8 @@ demo:
cd analytics_dashboard && ./manage.py switch navbar_display_engagement on --create cd analytics_dashboard && ./manage.py switch navbar_display_engagement on --create
cd analytics_dashboard && ./manage.py switch navbar_display_engagement_content on --create cd analytics_dashboard && ./manage.py switch navbar_display_engagement_content on --create
cd analytics_dashboard && ./manage.py switch navbar_display_overview on --create cd analytics_dashboard && ./manage.py switch navbar_display_overview on --create
cd analytics_dashboard && ./manage.py switch show_engagement_forum_activity on --create
generate_fake_translations: generate_fake_translations:
cd analytics_dashboard && i18n_tool extract cd analytics_dashboard && i18n_tool extract
......
...@@ -45,6 +45,7 @@ The following switches are available: ...@@ -45,6 +45,7 @@ The following switches are available:
| navbar_display_engagement | Show the engagement item in the lens drop down | | navbar_display_engagement | Show the engagement item in the lens drop down |
| navbar_display_engagement_content | Show the "Content" sub-section in the engagement nav bar | | navbar_display_engagement_content | Show the "Content" sub-section in the engagement nav bar |
| navbar_display_overview | Show the overview item in the lens drop down | | navbar_display_overview | Show the overview item in the lens drop down |
| show_engagement_forum_activity | Show the forum activity on the course engagement page |
Authentication & Authorization Authentication & Authorization
------------------------------ ------------------------------
......
...@@ -37,9 +37,11 @@ Individual course-centric engagement content view. ...@@ -37,9 +37,11 @@ Individual course-centric engagement content view.
{% include "summary_point.html" with count=summary.any|intcomma label="Active Students" subheading="last week" tooltip=tooltips.all_activity_summary only %} {% include "summary_point.html" with count=summary.any|intcomma label="Active Students" subheading="last week" tooltip=tooltips.all_activity_summary only %}
</div> </div>
{% switch show_engagement_forum_activity %}
<div class="col-xs-12 col-sm-3" data-activity-type="posted_forum"> <div class="col-xs-12 col-sm-3" data-activity-type="posted_forum">
{% include "summary_point.html" with count=summary.posted_forum|intcomma label="Posted in Forum" subheading="last week" tooltip=tooltips.posted_forum_summary only %} {% include "summary_point.html" with count=summary.posted_forum|intcomma label="Posted in Forum" subheading="last week" tooltip=tooltips.posted_forum_summary only %}
</div> </div>
{% endswitch %}
<div class="col-xs-12 col-sm-3" data-activity-type="attempted_problem"> <div class="col-xs-12 col-sm-3" data-activity-type="attempted_problem">
{% include "summary_point.html" with count=summary.attempted_problem|intcomma label="Tried a Problem" subheading="last week" tooltip=tooltips.attempted_problem_summary only %} {% include "summary_point.html" with count=summary.attempted_problem|intcomma label="Tried a Problem" subheading="last week" tooltip=tooltips.attempted_problem_summary only %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment