parent
09d2796ca7
commit
b3e6f6acd5
app
config/locales/projects
|
@ -643,7 +643,7 @@ class Attachment < ActiveRecord::Base
|
||||||
|
|
||||||
def decrease_attchments_count
|
def decrease_attchments_count
|
||||||
if self.container_type == "Project" && !self.project.project_score.nil?
|
if self.container_type == "Project" && !self.project.project_score.nil?
|
||||||
aatach_count = self.container.project_score.attach_num - 1+
|
aatach_count = self.container.project_score.attach_num - 1
|
||||||
self.container.project_score.update_attribute(:attach_num, aatach_count)
|
self.container.project_score.update_attribute(:attach_num, aatach_count)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<!-- added by bai -->
|
|
||||||
<div><%= l(:label_topic_number) %> * 2 = <%= project.project_score.board_num %> * 2 = <%= project.project_score.board_num * 2 %></div>
|
<div><%= l(:label_topic_number) %> * 2 = <%= project.project_score.board_num %> * 2 = <%= project.project_score.board_num * 2 %></div>
|
||||||
<div><%= l(:label_topic_score) %> = <%= project.project_score.board_num * 2 %></div>
|
<div><%= l(:label_topic_reply_score) %> * 1 = <%= project.project_score.board_message_num %> * 1 = <%= project.project_score.board_message_num * 1 %></div>
|
||||||
<!-- end -->
|
<div><%= l(:label_topic_score) %> = <%= project.project_score.board_num * 2 %> + <%= project.project_score.board_message_num * 1 %>
|
||||||
|
= <%= project.project_score.board_num * 2 + project.project_score.board_message_num * 1 %></div>
|
|
@ -440,6 +440,7 @@ zh:
|
||||||
label_code_submit_number: 代码提交频率
|
label_code_submit_number: 代码提交频率
|
||||||
|
|
||||||
label_topic_score: 讨论区得分
|
label_topic_score: 讨论区得分
|
||||||
|
label_topic_reply_score: 讨论区回复数量
|
||||||
label_topic_number: 讨论区帖子数量
|
label_topic_number: 讨论区帖子数量
|
||||||
label_add_news: 添加了新闻
|
label_add_news: 添加了新闻
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue