We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc881a0 commit 065e666Copy full SHA for 065e666
_plugins/translation_status.rb
@@ -60,7 +60,7 @@ def completed?
60
61
def short_name
62
if name.size > POST_DISPLAY_LENGTH
63
- name[0...POST_DISPLAY_LENGTH - 3] + "..."
+ "#{name[0...POST_DISPLAY_LENGTH - 3]}..."
64
else
65
name
66
end
@@ -115,7 +115,7 @@ def render(context)
115
categories[lang].each do |post|
116
next if too_old(post.date)
117
118
- name = post.url.gsub(%r(\A/#{lang}/news/), "")
+ name = post.url.gsub(%r{\A/#{lang}/news/}, "")
119
@posts[name].translations << lang
120
@posts[name].security = true if post.data["tags"].include?("security")
121
0 commit comments