Skip to content

Commit

Permalink
Revert "Show yearly replies_count on user profile page."
Browse files Browse the repository at this point in the history
This reverts commit adc7a63.
  • Loading branch information
huacnlee committed Jan 13, 2022
1 parent 4e6ebc2 commit 26ef06b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions app/views/users/_sidebar.html.erb
Expand Up @@ -25,7 +25,6 @@
<div class="item number">
<%= t("users.number_of_user", no: @user.id)%> / <span title="<%= t("users.join_time") %>"><%= @user.created_at.to_date %></span>
</div>
</ul>
</div>
</div>
<hr>
Expand All @@ -43,10 +42,11 @@
<%= icon_tag("location") %> <%= location_name_tag(@user.location) %>
</div>
<% end %>
<hr>
<div class="item number"><%= t("users.topics_count_html", count: @user.topics_count) %></div>
<div class="item number"><%= t("users.replies_count_html", count: @user.replies_count, yearly_count: @user.yearly_replies_count) %></div>
<hr>
<div class="item counts">
<%= t("users.topics_count_html", count: @user.topics_count) %>
<span class="divider">/</span>
<%= t("users.replies_count_html", count: @user.replies_count) %>
</div>
<div class="item social">
<% if !@user.twitter.blank? %>
<%= link_to icon_bold_tag("twitter"), @user.twitter_url, class: "twitter", rel: "nofollow" %>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/views.en.yml
Expand Up @@ -287,7 +287,7 @@
join_time: "Joined at"
signature: "Status"
topics_count_html: <span>%{count}</span> Topics
replies_count_html: "<span>%{count}</span> Replies (Yearly: %{yearly_count})"
replies_count_html: <span>%{count}</span> Replies
personal_website: "Blog"
recent_publish_topic: "Recent Topics"
recent_reply_topic: "Recent Replies"
Expand Down
6 changes: 3 additions & 3 deletions config/locales/views.zh-CN.yml
Expand Up @@ -295,8 +295,8 @@
join_time: "Since"
signature: "签名"
personal_website: "博客"
topics_count_html: 累计 <span>%{count}</span> 篇帖子
replies_count_html: 累计 <span>%{count}</span> 条回帖 (最近一年 %{yearly_count} 条)
topics_count_html: <span>%{count}</span> 篇帖子
replies_count_html: <span>%{count}</span> 条回帖
recent_publish_topic: "最近发布的帖子"
recent_reply_topic: "最近回复过的帖子"
unbind_warning: "至少要保留一个关联账号,现在不能解绑。"
Expand All @@ -317,7 +317,7 @@
already_have_account: "已经有账号了?"
forget_password: "忘记了密码?"
find_password: "找回密码"
find_password_help_text: "此功能将会发送一个找回密码的特别链接到你的邮箱,通过该链接可以进入重置密码的页面。"
find_password_help_text: "此功能将会发送一个找回密码的特别链接到你的邮箱,通过该链接可以进入重置密码的页面。"
not_recieve_confirm_mail: "未收到确认邮件?"
not_recieve_unlock_mail: "未收到解锁邮件?"
resend_unlock_mail: "重新发送解锁邮件"
Expand Down

0 comments on commit 26ef06b

Please sign in to comment.