Skip to content

Commit

Permalink
feat: make polls public (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-arb committed Oct 30, 2023
1 parent a534ae7 commit c20f882
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions poll/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,13 @@ def student_view(self, context=None):
js="public/js/poll.js",
js_init="PollBlock"
)

@XBlock.supports("multi_device") # Mark as mobile-friendly
def public_view(self, context=None):
"""
Returns "student_view" content for public view too.
"""
return self.student_view(context)

def student_view_data(self, context=None):
"""
Expand Down

0 comments on commit c20f882

Please sign in to comment.