From 53d144e8d26934023766aa4611d844e92d19d017 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Sun, 8 Mar 2015 17:33:55 +0800 Subject: [PATCH 01/12] =?UTF-8?q?project=E5=8A=A8=E6=80=81=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E9=A1=B5=E5=9C=A8=E6=9C=80=E5=90=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/kaminari/_page.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/kaminari/_page.html.erb b/app/views/kaminari/_page.html.erb index 0b5e68075..a40f17dc4 100644 --- a/app/views/kaminari/_page.html.erb +++ b/app/views/kaminari/_page.html.erb @@ -9,5 +9,5 @@ <%= link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} -%> - <%= link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %> + <%= link_to page, url, page.current? ? {:remote => remote,:class => 'current-page', :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} : {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %> From bd9a645c2cf99cacf33ad85bb03ba81641dcd769 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Sun, 8 Mar 2015 17:36:45 +0800 Subject: [PATCH 02/12] =?UTF-8?q?project=E5=8A=A8=E6=80=81=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=A1=B5=E7=A0=81=E6=95=B0=E6=98=BE=E7=A4=BA=E4=B8=AA?= =?UTF-8?q?=E6=95=B0=E5=87=8F=E5=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 37c7a81a7..fc64d3af8 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -180,4 +180,4 @@ -<%= paginate @events_pages %> \ No newline at end of file +<%= paginate @events_pages, :window => 3%> \ No newline at end of file From 659a87ef606736927c9c02acc345ae0e46f89384 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Mon, 9 Mar 2015 09:11:57 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=8C=96=E6=A0=87=E7=AD=BE=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_my_joinedcourse.html.erb | 4 ++-- config/locales/en.yml | 2 ++ config/locales/zh.yml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/users/_my_joinedcourse.html.erb b/app/views/users/_my_joinedcourse.html.erb index 373ed9234..e616004e6 100644 --- a/app/views/users/_my_joinedcourse.html.erb +++ b/app/views/users/_my_joinedcourse.html.erb @@ -16,8 +16,8 @@ diff --git a/config/locales/en.yml b/config/locales/en.yml index 857259392..bebfb5605 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1876,3 +1876,5 @@ en: label_submit_comments: Submit_comments label_course_empty_select: You have not selected course! label_enterprise_page_made: enterprise_page + + label_add_tag: Add Tag diff --git a/config/locales/zh.yml b/config/locales/zh.yml index c6e303b00..8bcb8284b 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -2580,3 +2580,5 @@ zh: label_part_enterprise_tips: 您可能对系统的其它项目感兴趣! label_enterprise_nil: 该模块为最新上线模块,目前还没有创建企业项目! label_enterprises: 组织 + + label_add_tag: 添加标签 From 8c44d2575070b7eba6c1e289c46652bc5cd47d99 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Mon, 9 Mar 2015 10:27:32 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=90=9C=E7=B4=A2=E4=B8=AD=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/tags/_show_attachments.html.erb | 33 +++++++++++++++++------ config/locales/zh.yml | 7 +++++ 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/app/views/tags/_show_attachments.html.erb b/app/views/tags/_show_attachments.html.erb index 509acc0ba..a76211fc6 100644 --- a/app/views/tags/_show_attachments.html.erb +++ b/app/views/tags/_show_attachments.html.erb @@ -9,18 +9,35 @@
- <%= l(:label_attachment) %>:  <%= file.filename %> + + <%= l(:label_attachment) %>: +    + <%= file.filename %> + - <%= link_to_attachment file, {:download => true, :text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%> + <%= link_to_attachment file, {:download => true, :text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%>
- <%= l(:field_description) %>:  <%= file.description %> -
<%= l('attachment.category')%><%=result_come_from file%>
+ + <%= l(:field_description) %> + : +    + <%= file.description %> +
+ <%= l('label_attachment_category')%> + <%=result_come_from file%> +
- <%= l('attachment.download_num')%><%= file.downloads%>| - <%= l('attachment.size')%><%= number_to_human_size(file.filesize) %>| - <%= l('attachment.sharer')%><%= link_to file.author, user_path(file.author), target: "_blank" unless file.author.blank? %>| - <%= l('attachment.upload_time')%><%= format_time(file.created_on) %> + <%= l('label_attachment_download_num')%> + <%= file.downloads%>| + <%= l('label_attachment_size')%> + <%= number_to_human_size(file.filesize) %>| + <%= l('label_attachment_sharer')%> + + <%= link_to file.author, user_path(file.author), target: "_blank" unless file.author.blank? %> + | + <%= l('label_attachment_upload_time')%> + <%= format_time(file.created_on) %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 8bcb8284b..2b4e41755 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -2582,3 +2582,10 @@ zh: label_enterprises: 组织 label_add_tag: 添加标签 + label_tags_opensource: 开源项目 + label_attachment_category: 所属分类 + label_attachment_download_num: 下载 + label_attachment_size: 大小 + label_attachment_sharer: 共享者 + label_attachment_upload_time: 上传时间 + From d947ebff0cfbdc132c52c00070ec2f4590f0f266 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 9 Mar 2015 10:31:05 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_projects.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 494341ab3..8bf84d90c 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -135,10 +135,10 @@ <% end %> - + From 0402fee6deda19d6d5f29dda9d51f1891378e2c5 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 9 Mar 2015 11:31:42 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6?= =?UTF-8?q?=E9=82=80=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/_invite_members_by_mail.html.erb | 24 ------------------ app/views/projects/invite_members.html.erb | 6 +---- .../projects/invite_members_by_mail.html.erb | 25 ++++++++++++++++++- .../projects/invite_members_by_mail.js.erb | 10 -------- 4 files changed, 25 insertions(+), 40 deletions(-) delete mode 100644 app/views/projects/_invite_members_by_mail.html.erb delete mode 100644 app/views/projects/invite_members_by_mail.js.erb diff --git a/app/views/projects/_invite_members_by_mail.html.erb b/app/views/projects/_invite_members_by_mail.html.erb deleted file mode 100644 index 42a36bce0..000000000 --- a/app/views/projects/_invite_members_by_mail.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -
-
-
-
-

发送邮件邀请新用户

-

输入好友邮箱地址,Trustie帮您免费发送!

-
- <%= render :partial => 'regested', locals: { :isregisted => false} %> -
- <%= form_tag('send_mail_to_member', :controller => 'projects',:action => 'send_mail_to_member', method: 'get',:remote=>true) do %> -
    -
  • - <%= text_field_tag 'mail', '邮箱', :class => "fb_item fl" %> -
  • -
    - -
    -
- <%= submit_tag '免费发送', :class=> "btn_free" %> - - <% end %> -
- -
\ No newline at end of file diff --git a/app/views/projects/invite_members.html.erb b/app/views/projects/invite_members.html.erb index 8b0a5a183..d31a5bbe8 100644 --- a/app/views/projects/invite_members.html.erb +++ b/app/views/projects/invite_members.html.erb @@ -44,11 +44,7 @@ <% end %> <% end %> - - - - - +