forked from OpenNeo/impress
refactor userbar contributions to use twl
This commit is contained in:
parent
3d8266951f
commit
7f2070e78e
3 changed files with 9 additions and 10 deletions
|
@ -195,12 +195,9 @@ module ApplicationHelper
|
||||||
alias_method :twl, :translate_with_links
|
alias_method :twl, :translate_with_links
|
||||||
|
|
||||||
def userbar_contributions_summary(user)
|
def userbar_contributions_summary(user)
|
||||||
contributions_link_content = translate('.userbar.contributions_link_content',
|
translate_with_links '.userbar.contributions_summary',
|
||||||
:user_points => user.points)
|
:contributions_link_url => user_contributions_path(user),
|
||||||
contributions_link = link_to(contributions_link_content,
|
:user_points => user.points
|
||||||
user_contributions_path(user))
|
|
||||||
translate '.userbar.contributions_summary_html',
|
|
||||||
:contributions_link => contributions_link
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,8 @@ en-meep:
|
||||||
|
|
||||||
userbar:
|
userbar:
|
||||||
greeting: Meep, %{user_name}!
|
greeting: Meep, %{user_name}!
|
||||||
contributions_summary_html: You have %{contributions_link}.
|
contributions_summary:
|
||||||
|
main_html: You have %{contributions_link}.
|
||||||
contributions_link_content: "%{user_points} meeps"
|
contributions_link_content: "%{user_points} meeps"
|
||||||
items: Iteeps
|
items: Iteeps
|
||||||
outfits: Outfeeps
|
outfits: Outfeeps
|
||||||
|
|
|
@ -20,7 +20,8 @@ en:
|
||||||
|
|
||||||
userbar:
|
userbar:
|
||||||
greeting: Hey, %{user_name}!
|
greeting: Hey, %{user_name}!
|
||||||
contributions_summary_html: You have %{contributions_link}.
|
contributions_summary:
|
||||||
|
main_html: You have %{contributions_link}.
|
||||||
contributions_link_content: "%{user_points} points"
|
contributions_link_content: "%{user_points} points"
|
||||||
items: Items
|
items: Items
|
||||||
outfits: Outfits
|
outfits: Outfits
|
||||||
|
|
Loading…
Reference in a new issue