Skip to content

Commit

Permalink
chore: Optimization as per test case
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Jan 22, 2025
1 parent e463948 commit 201dee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xblocks_contrib/word_cloud/templates/word_cloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div
id="word_cloud_{{ element_id }}"
class="word_cloud_block">
class="{{ element_class }}">
{% if display_name %}
<h3 class="hd hd-3" id="word_cloud_{{ element_id }}_heading">{{ display_name }}</h3>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions xblocks_contrib/word_cloud/word_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def student_view(self, context=None): # pylint: disable=W0613
"templates/word_cloud.html", {
'display_name': self.display_name,
'instructions': self.instructions,
'element_class': self.scope_ids.usage_id.block_type, #'word_cloud_block',
'element_id': self.scope_ids.usage_id.html_id(),
'num_inputs': self.num_inputs,
'range_num_inputs': range(self.num_inputs),
Expand Down

0 comments on commit 201dee6

Please sign in to comment.