mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2024-12-18 12:14:22 -05:00
Update ERB script
Signed-off-by: hahwul <hahwul@gmail.com>
This commit is contained in:
parent
3d354e3fa3
commit
6edc8f019f
@ -129,15 +129,21 @@ weapons.each do | data |
|
||||
begin
|
||||
name = data['name']
|
||||
temp_tags = []
|
||||
begin
|
||||
data['tags'].each do |t|
|
||||
temp_tags.push "`#{t}`"
|
||||
end
|
||||
tags.concat temp_tags
|
||||
rescue
|
||||
end
|
||||
lang_badge = ""
|
||||
begin
|
||||
if data['lang'].length > 0 && data['lang'] != "null"
|
||||
langs.push "`#{data['lang']}`"
|
||||
lang_badge = "![](./images/#{data['lang'].downcase}.png)"
|
||||
end
|
||||
rescue
|
||||
end
|
||||
|
||||
popularity = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user