Skip to content

Analytics: view counts on the question detail page. - #971

Merged
evgenyfadeev merged 2 commits into
masterfrom
question-detail-analytics-views
Aug 10, 2026
Merged

Analytics: view counts on the question detail page.#971
evgenyfadeev merged 2 commits into
masterfrom
question-detail-analytics-views

Conversation

@evgenyfadeev

Copy link
Copy Markdown
Member

Allowed users see analytics views counts to users that belong to named analytics segment groups. In addition, admins see links to the analytics pages.

  • askbot/jinja2/question/sidebar.html:
    • use focused template variables to gate display of basic, analytics-based status and links to the analytics pages
  • askbot/models/post.py:
    • added method Post.get_context_for_sidebar(self, user) that returns the context for the above template
  • askbot/views/readers.py:
    • factored out the above context gathering to Post.get_context_for_sidebar method and use it to update the template context
  • .gitignore - wildcard-ignored virtual environments

to named analytics segment groups. In addition, admins see links to the analytics pages.

* askbot/jinja2/question/sidebar.html:
  - use focused template variables to gate display of basic, analytics-based status
    and links to the analytics pages
* askbot/models/post.py:
  - added method Post.get_context_for_sidebar(self, user)
    that returns the context for the above template
* askbot/views/readers.py:
  - factored out the above context gathering to Post.get_context_for_sidebar method
    and use it to update the template context
* .gitignore - wildcard-ignored virtual environments
@evgenyfadeev
evgenyfadeev merged commit d407324 into master Aug 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant