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,14 +129,20 @@ weapons.each do | data |
|
|||||||
begin
|
begin
|
||||||
name = data['name']
|
name = data['name']
|
||||||
temp_tags = []
|
temp_tags = []
|
||||||
data['tags'].each do |t|
|
begin
|
||||||
temp_tags.push "`#{t}`"
|
data['tags'].each do |t|
|
||||||
|
temp_tags.push "`#{t}`"
|
||||||
|
end
|
||||||
|
tags.concat temp_tags
|
||||||
|
rescue
|
||||||
end
|
end
|
||||||
tags.concat temp_tags
|
|
||||||
lang_badge = ""
|
lang_badge = ""
|
||||||
if data['lang'].length > 0 && data['lang'] != "null"
|
begin
|
||||||
langs.push "`#{data['lang']}`"
|
if data['lang'].length > 0 && data['lang'] != "null"
|
||||||
lang_badge = "![](./images/#{data['lang'].downcase}.png)"
|
langs.push "`#{data['lang']}`"
|
||||||
|
lang_badge = "![](./images/#{data['lang'].downcase}.png)"
|
||||||
|
end
|
||||||
|
rescue
|
||||||
end
|
end
|
||||||
|
|
||||||
popularity = ""
|
popularity = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user