From b7537ad518864ee89a08a5368d8109190fe61db9 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 14 Apr 2015 23:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E9=97=BB=E4=B8=AD?= =?UTF-8?q?=E6=B5=8B=E5=87=BA=E7=9A=84bug=EF=BC=8C=20=E8=AE=A8=E8=AE=BA?= =?UTF-8?q?=E5=8C=BA=E4=B8=AD=E9=99=84=E4=BB=B6=E6=98=BE=E7=A4=BA=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/messages/_project_show.html.erb | 2 +- app/views/news/_project_news.html.erb | 3 ++- app/views/news/_project_show.html.erb | 2 +- app/views/projects/settings/_new_modules.html.erb | 4 +++- config/locales/projects/zh.yml | 2 +- public/javascripts/project.js | 13 ++++++------- public/stylesheets/project.css | 4 ++++ 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/app/views/messages/_project_show.html.erb b/app/views/messages/_project_show.html.erb index 7df8fd389..20409ea22 100644 --- a/app/views/messages/_project_show.html.erb +++ b/app/views/messages/_project_show.html.erb @@ -55,7 +55,7 @@ <%= format_time(message.created_on) %>

<%= textilizable message,:content,:attachments => message.attachments %>

- <%= link_to_attachments message, :author => false %> + <%= link_to_attachment_project message, :author => false %>
<%= link_to( diff --git a/app/views/news/_project_news.html.erb b/app/views/news/_project_news.html.erb index 97902aa16..54f6dc70b 100644 --- a/app/views/news/_project_news.html.erb +++ b/app/views/news/_project_news.html.erb @@ -29,8 +29,9 @@ <%= link_to_user_header(news.author,false,{:class=> 'problem_name c_orange fl'}) if news.respond_to?(:author) %> <%= l(:label_add_news) %>:<%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %>
-

<%= news.description %>
<%= l(:label_create_time) %> :<%= format_time(news.created_on) %>

+

<%= news.description %>

+ <%= l(:label_create_time) %> :<%= format_time(news.created_on) %>
diff --git a/app/views/news/_project_show.html.erb b/app/views/news/_project_show.html.erb index eed2864d0..fc12a8006 100644 --- a/app/views/news/_project_show.html.erb +++ b/app/views/news/_project_show.html.erb @@ -82,7 +82,7 @@ :onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_news, @project) %> <%= delete_link news_path(@news),:class => 'talk_edit fr' if User.current.allowed_to?(:manage_news, @project) %>
-
<%= textAreailizable(@news, :description) %>
<%= l(:label_create_time) %> : <%= format_time(@news.created_on) %>
+
<%= textAreailizable(@news, :description) %>
<%= l(:label_create_time) %> : <%= format_time(@news.created_on) %>
<%= link_to_attachments_course @news %> diff --git a/app/views/projects/settings/_new_modules.html.erb b/app/views/projects/settings/_new_modules.html.erb index 281d07fef..c6aa26348 100644 --- a/app/views/projects/settings/_new_modules.html.erb +++ b/app/views/projects/settings/_new_modules.html.erb @@ -16,6 +16,8 @@ <%= check_all_links 'modules-form' %>

- <%= l(:button_save) %> + + <%= l(:button_save) %> +

<% end %> diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml index 2fb78efde..e15c4dcdb 100644 --- a/config/locales/projects/zh.yml +++ b/config/locales/projects/zh.yml @@ -271,7 +271,7 @@ zh: # 项目得分 # label_projects_score: 项目综合得分 - label_project_new_list: 条项目新闻 + label_project_new_list: 条新闻 label_issue_score: issue得分 label_issue_number: issue的数量 diff --git a/public/javascripts/project.js b/public/javascripts/project.js index 18d461029..424aeb7cc 100644 --- a/public/javascripts/project.js +++ b/public/javascripts/project.js @@ -183,16 +183,15 @@ function project_setting(n) } } } - -// 配置模块提交 -function submitModules() -{ - $("#modules-form").submit(); -} - //配置--成员---申请列表--拒绝 function refusal_applied_member() { $('#new_membership').append(""); $('#new_membership').submit(); +} + +//新闻描述显示更多信息 +function news_show_more_des(id) +{ + $('#news_description_' + id).toggleClass("news_description_none"); } \ No newline at end of file diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css index 4633c95f7..e2859c9ae 100644 --- a/public/stylesheets/project.css +++ b/public/stylesheets/project.css @@ -28,6 +28,10 @@ a.project_txt{ color:#0781b4; width:445px; display:block; float:left; overflow: a.project_txt02{ color:#0781b4; width:618px; display:block; float:left; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;} a:hover.project_txt{ color:#066e9a;} .noline{ border-bottom:none;} +.news_description{max-height: 38px;overflow:hidden; } +.news_description_none{max-height: none;} +a.news_foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:600px; height:20px; padding-top:3px; cursor:pointer;} +a:hover.news_foot{ color:#787b7e; border:1px solid #d4d4d4;} /*弹框*/ .floatbox{ width:420px; border:3px solid #15bccf; background:#fff; padding:5px;}