评论显示

memcached_alan
whimlex 10 years ago
parent 23a6408c9f
commit 5936d8d8e9

@ -1,5 +1,5 @@
<div class="project_r_h"> <div class="project_r_h">
<h2 class="project_h2">问题跟踪</h2> <h2 class="project_h2"><%= l(:label_issue_tracking) %></h2>
</div> </div>
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %> <%= call_hook(:view_issues_new_top, {:issue => @issue}) %>

@ -36,7 +36,7 @@
&nbsp; <%= format_activity_day(day) %> <%= format_time(e.event_datetime, false) %></span> &nbsp; <%= format_activity_day(day) %> <%= format_time(e.event_datetime, false) %></span>
<% if e.event_type == "issue" %> <% if e.event_type == "issue" %>
<div class="" style="display:inline-block;position:absolute; right:2%;"> <div class="" style="display:inline-block;position:absolute; right:2%;">
<span> <%= link_to l(:label_find_all_comments), issue_path(e) %> </span><span class="font_lighter"><%= l(:label_comments_count, :count => e.journals.count) %></span> <span> <%= link_to l(:label_find_all_comments), issue_path(e) if e.journals.count!= 0%> </span><span class="font_lighter"><%= l(:label_comments_count, :count => e.journals.count) %></span>
</div> </div>
<% end %> <% end %>
</div> </div>

@ -76,7 +76,7 @@
<span class="font_lighter"> <%= l :label_activity_time %> <span class="font_lighter"> <%= l :label_activity_time %>
&nbsp; <%= format_activity_day(act.created_on) %> <%= format_time(act.created_on, false) %></span> &nbsp; <%= format_activity_day(act.created_on) %> <%= format_time(act.created_on, false) %></span>
<div class="" style="display:inline-block;position:absolute; right:2%;"> <div class="" style="display:inline-block;position:absolute; right:2%;">
<span> <%= link_to l(:label_find_all_comments), issue_path(act.id) %> </span><span class="font_lighter"><%= l(:label_comments_count, :count => act.journals.count) %></span> <span> <%= link_to l(:label_find_all_comments), issue_path(act.id) if act.journals.count!= 0%> </span><span class="font_lighter"><%= l(:label_comments_count, :count => act.journals.count) %></span>
</div> </div>
</div> </div>
</div> </div>
@ -151,7 +151,7 @@
&nbsp; <%= format_activity_day(act.created_on) %> <%= format_time(act.created_on, false) %></span> &nbsp; <%= format_activity_day(act.created_on) %> <%= format_time(act.created_on, false) %></span>
<div class="" style="display:inline-block;position:absolute; right:2%;"> <div class="" style="display:inline-block;position:absolute; right:2%;">
<span> <span>
<%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} %> <%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} if act.comments_count!= 0%>
</span> </span>
<span class="font_lighter"> <span class="font_lighter">
<%= l(:label_comments_count, :count => act.comments_count) %> <%= l(:label_comments_count, :count => act.comments_count) %>

@ -302,7 +302,7 @@
:action => 'revision', :action => 'revision',
:id => act.repository.project, :id => act.repository.project,
:repository_id => act.repository.identifier_param, :repository_id => act.repository.identifier_param,
:rev => act.identifier} %> :rev => act.identifier} if e.act.count!= 0%>
</span> </span>
<a class="font_lighter"> <a class="font_lighter">
<%= l(:label_comments_count, :count => e.act.count) %> <%= l(:label_comments_count, :count => e.act.count) %>
@ -444,7 +444,7 @@
</div> </div>
<div style="display: inline-block; float: right; margin-top: 0px"> <div style="display: inline-block; float: right; margin-top: 0px">
<span> <span>
<%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} %> <%= link_to l(:label_find_all_comments), {:controller => 'news', :action => 'show', :id => act.id} if e.act.comments_count!= 0%>
</span> </span>
<a class="font_lighter"> <a class="font_lighter">
<%= l(:label_comments_count, :count => e.act.comments_count) %> <%= l(:label_comments_count, :count => e.act.comments_count) %>
@ -484,7 +484,7 @@
</div> </div>
<div style="display: inline-block; float: right; margin-top: 0px"> <div style="display: inline-block; float: right; margin-top: 0px">
<span> <span>
<%= link_to l(:label_find_all_comments), {:controller => 'issues', :action => 'show', :id => act.id} %> <%= link_to l(:label_find_all_comments), {:controller => 'issues', :action => 'show', :id => act.id} if e.act.journals.count!= 0 %>
</span> </span>
<a class="font_lighter"> <a class="font_lighter">
<%= l(:label_comments_count, :count => e.act.journals.count) %> <%= l(:label_comments_count, :count => e.act.journals.count) %>
@ -520,7 +520,7 @@
</div> </div>
<div style="display: inline-block; float: right; margin-top: 0px"> <div style="display: inline-block; float: right; margin-top: 0px">
<span> <span>
<%= link_to l(:label_find_all_comments), {:controller => 'issues', :action => 'show', :id => act.id} %> <%= link_to l(:label_find_all_comments), {:controller => 'issues', :action => 'show', :id => act.id} if e.act.journals.count!= 0 %>
</span> </span>
<a class="font_lighter"> <a class="font_lighter">
<%= l(:label_comments_count, :count => e.act.journals.count) %> <%= l(:label_comments_count, :count => e.act.journals.count) %>

@ -190,10 +190,10 @@ en:
label_anonymous: Anonymous #作业和留言 模块 label_anonymous: Anonymous #作业和留言 模块
text_are_you_sure: Are you sure? #js 提示 text_are_you_sure: "Are you sure?" #js 提示
text_are_you_sure_out: Are you sure to quit from this course? text_are_you_sure_out: "Are you sure to quit from this course?"
text_are_you_sure_out_group: Are you sure to quit from this group? text_are_you_sure_out_group: "Are you sure to quit from this group?"
text_are_you_sure_all: "Are you sure to delete all files?"

@ -189,6 +189,8 @@ zh:
text_are_you_sure: 您确定要删除吗? #js 提示 text_are_you_sure: 您确定要删除吗? #js 提示
text_are_you_sure_out: 你确定要退出该课程吗? text_are_you_sure_out: 你确定要退出该课程吗?
text_are_you_sure_out_group: 你确定要退出该分班吗? text_are_you_sure_out_group: 你确定要退出该分班吗?
text_are_you_sure_all: 您确定要删除所有文件吗
label_field_correct: 填写正确 label_field_correct: 填写正确
label_title_blank: 标题不能为空 label_title_blank: 标题不能为空

@ -133,7 +133,7 @@ en:
label_max_size: Maximum size label_max_size: Maximum size
label_optional_description: Description label_optional_description: Description
label_file_count: "Uploaded successfully" label_file_count: "files uploaded successfully"
# #
# 项目托管平台 # 项目托管平台

@ -139,8 +139,6 @@ zh:
label_optional_description: 可选的描述 label_optional_description: 可选的描述
label_file_count: "个文件已上传" label_file_count: "个文件已上传"
text_are_you_sure_all: 您确定要删除所有文件吗
# #
# 项目托管平台 # 项目托管平台
@ -261,6 +259,8 @@ zh:
label_post_by: label_post_by:
label_post_by_time: 添加于 label_post_by_time: 添加于
label_short_reply: "回复" label_short_reply: "回复"
# #
# 项目托管平台 # 项目托管平台
# #

@ -26,7 +26,7 @@ function reload(fileSpan) {
function addFile(inputEl, file, eagerUpload) { function addFile(inputEl, file, eagerUpload) {
if ($('#attachments_fields').children().length < 10) { if ($('#attachments_fields').children().length < 10) {
deleteallfiles = $(inputEl).data('deleteAllFiles');
var attachmentId = addFile.nextAttachmentId++; var attachmentId = addFile.nextAttachmentId++;
var fileSpan = $('<span>', { 'id': 'attachments_' + attachmentId, 'class':'attachment' }); var fileSpan = $('<span>', { 'id': 'attachments_' + attachmentId, 'class':'attachment' });
@ -141,7 +141,7 @@ function removeFile() {
//gcm delete all file //gcm delete all file
function removeAll(){ function removeAll(){
if(confirm($(inputEl).data('deleteAllFiles'))){ if(confirm(deleteallfiles)){
$(".remove-upload").removeAttr("data-confirm"); $(".remove-upload").removeAttr("data-confirm");
$(".remove-upload").click(); $(".remove-upload").click();
} }

Loading…
Cancel
Save