Skip to content

Commit

Permalink
chore: remove unused selected images
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 1, 2023
1 parent a2793b8 commit 1b9cea7
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions feedback/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,12 @@ def get_url(icon_type, i):
selected through CSS, rather than by using those icons.
'''
templates = {'inactive': 'public/default_icons/i{set}{i}.png',
'active': 'public/default_icons/a{set}{i}.png',
'selected': 'public/default_icons/s{set}{i}.png'}
'active': 'public/default_icons/a{set}{i}.png',}
template = templates[icon_type]
icon_file = template.format(i=i, set=prompt['icon_set'])
return self.runtime.local_resource_url(self, icon_file)
ina_urls = [get_url('inactive', i) for i in range(1, 6)]
act_urls = [get_url('active', i) for i in range(1, 6)]
sel_urls = [get_url('selected', i) for i in range(1, 6)]

# Prepare the Likert scale fragment to be embedded into the feedback form
scale = "".join(
Expand All @@ -217,7 +215,6 @@ def get_url(icon_type, i):
'vote_cnt': vote_cnt,
'ina_icon': ina_icon,
'act_icon': act_icon,
'sel_icon': sel_icon
},
i18n_service=self.runtime.service(self, 'i18n'),
) for
Expand All @@ -227,16 +224,14 @@ def get_url(icon_type, i):
active,
vote_cnt,
act_icon,
ina_icon,
sel_icon) in
ina_icon,) in
zip(prompt['scale_text'],
ICON_SETS[(prompt['icon_set'])],
indexes,
active_vote,
votes,
act_urls,
ina_urls,
sel_urls)
ina_urls)
)
if self.user_vote != -1:
_ = self.runtime.service(self, 'i18n').ugettext
Expand Down
Binary file removed feedback/public/default_icons/sface1.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sface2.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sface3.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sface4.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sface5.png
Binary file not shown.
Binary file removed feedback/public/default_icons/snum1.png
Binary file not shown.
Binary file removed feedback/public/default_icons/snum2.png
Binary file not shown.
Binary file removed feedback/public/default_icons/snum3.png
Binary file not shown.
Binary file removed feedback/public/default_icons/snum4.png
Binary file not shown.
Binary file removed feedback/public/default_icons/snum5.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sstar1.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sstart2.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sstart3.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sstart4.png
Binary file not shown.
Binary file removed feedback/public/default_icons/sstart5.png
Binary file not shown.

0 comments on commit 1b9cea7

Please sign in to comment.