i18n for contributions#index
This commit is contained in:
parent
70c626ae10
commit
dd4c650a43
7 changed files with 59 additions and 43 deletions
|
@ -30,9 +30,8 @@ body.contributions-index
|
||||||
top: 0
|
top: 0
|
||||||
width: 80px
|
width: 80px
|
||||||
z-index: 2
|
z-index: 2
|
||||||
span
|
.username, .contributed-name
|
||||||
&.username, &.contributed-name
|
font-weight: bold
|
||||||
font-weight: bold
|
.time-ago
|
||||||
&.time-ago
|
display: block
|
||||||
display: block
|
font-size: 75%
|
||||||
font-size: 75%
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
- contributed = contribution.contributed
|
- contributed = contribution.contributed
|
||||||
= content_tag_for :li, contribution do
|
= content_tag_for :li, contribution do
|
||||||
%span.point-value= contribution.point_value
|
%span.point-value= contribution.point_value
|
||||||
%span.username
|
= t 'contributions.contribution.description_html',
|
||||||
= link_to contribution.user.name, user_contributions_path(contribution.user)
|
:user_link => link_to(contribution.user.name,
|
||||||
showed us
|
user_contributions_path(contribution.user),
|
||||||
= contributed_description contributed
|
:class => 'username'),
|
||||||
%span.time-ago{:title => contribution.created_at.to_s}
|
:contributed_description => contributed_description(contributed)
|
||||||
= time_ago_in_words(contribution.created_at)
|
.time-ago
|
||||||
ago
|
= t 'contributions.contribution.created_at_html',
|
||||||
|
:created_at_ago => labeled_time_ago_in_words(contribution.created_at)
|
||||||
|
|
|
@ -1,19 +1,17 @@
|
||||||
- title 'Recent Contributions'
|
- title t('.title')
|
||||||
- if @user
|
- if @user
|
||||||
- canonical_path user_contributions_path(@user)
|
- canonical_path user_contributions_path(@user)
|
||||||
|
|
||||||
%ul.buttons
|
%ul.buttons
|
||||||
- if @user
|
- if @user
|
||||||
%li= link_to 'Recent Contributions', contributions_path, :class => 'button'
|
%li= link_to t('.title'), contributions_path, :class => 'button'
|
||||||
%li= link_to 'Top Contributors', top_contributors_path, :class => 'button'
|
%li
|
||||||
|
= link_to t('users.top_contributors.title'), top_contributors_path,
|
||||||
|
:class => 'button'
|
||||||
- if @user
|
- if @user
|
||||||
%p
|
%p= t('.user_summary', :user_name => @user.name, :user_points => @user.points)
|
||||||
= @user.name
|
|
||||||
currently has
|
|
||||||
= @user.points
|
|
||||||
points
|
|
||||||
- if @contributions.empty?
|
- if @contributions.empty?
|
||||||
%p No contributions to see here!
|
%p= t('.no_contributions')
|
||||||
- else
|
- else
|
||||||
= will_paginate @contributions
|
= will_paginate @contributions
|
||||||
%ul.contributions= render @contributions
|
%ul.contributions= render @contributions
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
- title t('.header')
|
- title t('.title')
|
||||||
= will_paginate @users
|
= will_paginate @users
|
||||||
%table#top-contributors
|
%table#top-contributors
|
||||||
%thead
|
%thead
|
||||||
|
|
|
@ -48,6 +48,22 @@ en-meep:
|
||||||
converted_at_html: Conveeped %{converted_at_ago} ago
|
converted_at_html: Conveeped %{converted_at_ago} ago
|
||||||
reported_at_html: Repeeped %{reported_at_ago} ago
|
reported_at_html: Repeeped %{reported_at_ago} ago
|
||||||
|
|
||||||
|
contributions:
|
||||||
|
contributed_description:
|
||||||
|
item_suffix: for the first meep
|
||||||
|
swf_asset_suffix: on a new body meep
|
||||||
|
pet_type_suffix: for the first meep
|
||||||
|
pet_state_prefix: a new meep for
|
||||||
|
|
||||||
|
contribution:
|
||||||
|
description_html: "%{user_link} meeped us %{contributed_description}"
|
||||||
|
created_at_html: "%{created_at_ago} ameep"
|
||||||
|
|
||||||
|
index:
|
||||||
|
title: Recent Contribeeptions
|
||||||
|
user_summary: "%{user_name} currently has %{user_points} meeps"
|
||||||
|
no_contributions: There are no contribeeptions here.
|
||||||
|
|
||||||
items:
|
items:
|
||||||
index:
|
index:
|
||||||
title_with_query: Searching Infinite Meepit for "%{query}"
|
title_with_query: Searching Infinite Meepit for "%{query}"
|
||||||
|
@ -116,16 +132,9 @@ en-meep:
|
||||||
clone: Meep a copy
|
clone: Meep a copy
|
||||||
creation_summary_html: Meeped by %{user_link}, %{created_at_ago} ago
|
creation_summary_html: Meeped by %{user_link}, %{created_at_ago} ago
|
||||||
|
|
||||||
contributions:
|
|
||||||
contributed_description:
|
|
||||||
item_suffix: "for the first meep"
|
|
||||||
swf_asset_suffix: "on a new body meep"
|
|
||||||
pet_type_suffix: "for the first meep"
|
|
||||||
pet_state_prefix: "a new meep for"
|
|
||||||
|
|
||||||
users:
|
users:
|
||||||
top_contributors:
|
top_contributors:
|
||||||
header: Top Conmeeputors
|
title: Top Conmeeputors
|
||||||
rank: Reep
|
rank: Reep
|
||||||
user: Meepit
|
user: Meepit
|
||||||
points: Peeps
|
points: Peeps
|
||||||
|
|
|
@ -49,6 +49,22 @@ en:
|
||||||
converted_at_html: Converted %{converted_at_ago} ago
|
converted_at_html: Converted %{converted_at_ago} ago
|
||||||
reported_at_html: Reported %{reported_at_ago} ago
|
reported_at_html: Reported %{reported_at_ago} ago
|
||||||
|
|
||||||
|
contributions:
|
||||||
|
contributed_description:
|
||||||
|
item_suffix: for the first time
|
||||||
|
swf_asset_suffix: on a new body type
|
||||||
|
pet_type_suffix: for the first time
|
||||||
|
pet_state_prefix: a new pose for
|
||||||
|
|
||||||
|
contribution:
|
||||||
|
description_html: "%{user_link} showed us %{contributed_description}"
|
||||||
|
created_at_html: "%{created_at_ago} ago"
|
||||||
|
|
||||||
|
index:
|
||||||
|
title: Recent Contributions
|
||||||
|
user_summary: "%{user_name} currently has %{user_points} points"
|
||||||
|
no_contributions: There are no contributions here.
|
||||||
|
|
||||||
items:
|
items:
|
||||||
index:
|
index:
|
||||||
title_with_query: Searching Infinite Closet for "%{query}"
|
title_with_query: Searching Infinite Closet for "%{query}"
|
||||||
|
@ -118,16 +134,9 @@ en:
|
||||||
clone: Edit a copy
|
clone: Edit a copy
|
||||||
creation_summary_html: Created by %{user_link}, %{created_at_ago} ago
|
creation_summary_html: Created by %{user_link}, %{created_at_ago} ago
|
||||||
|
|
||||||
contributions:
|
|
||||||
contributed_description:
|
|
||||||
item_suffix: "for the first time"
|
|
||||||
swf_asset_suffix: "on a new body type"
|
|
||||||
pet_type_suffix: "for the first time"
|
|
||||||
pet_state_prefix: "a new pose for"
|
|
||||||
|
|
||||||
users:
|
users:
|
||||||
top_contributors:
|
top_contributors:
|
||||||
header: Top Contributors
|
title: Top Contributors
|
||||||
rank: Rank
|
rank: Rank
|
||||||
user: User
|
user: User
|
||||||
points: Points
|
points: Points
|
||||||
|
|
|
@ -1639,12 +1639,12 @@ body.contributions-index .contributions img {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
/* line 34, ../../../app/stylesheets/contributions/_index.sass */
|
/* line 33, ../../../app/stylesheets/contributions/_index.sass */
|
||||||
body.contributions-index .contributions span.username, body.contributions-index .contributions span.contributed-name {
|
body.contributions-index .contributions .username, body.contributions-index .contributions .contributed-name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
/* line 36, ../../../app/stylesheets/contributions/_index.sass */
|
/* line 35, ../../../app/stylesheets/contributions/_index.sass */
|
||||||
body.contributions-index .contributions span.time-ago {
|
body.contributions-index .contributions .time-ago {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue