We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f52607 commit 34c5d92Copy full SHA for 34c5d92
2 files changed
app/helpers/bookmark_helper.rb
@@ -2,9 +2,6 @@
2
module BookmarkHelper
3
def lang(bookmark)
4
detail = ""
5
- if bookmark.lang != 'fr'
6
- detail = "(en #{Lang[bookmark.lang].downcase})"
7
- end
8
- detail
+ detail += "(en #{Lang[bookmark.lang].downcase})" unless bookmark.lang == 'fr'
9
end
10
app/helpers/link_helper.rb
@@ -2,9 +2,7 @@
module LinkHelper
def lang_and_hit(link)
detail = "("
- if link.lang != 'fr'
- detail += "en #{Lang[link.lang].downcase}, "
+ detail += "en #{Lang[link.lang].downcase}, " unless link.lang == 'fr'
detail += "#{pluralize link.nb_clicks, 'clic'})"
0 commit comments