diff --git a/app/views/news/_project_show.html.erb b/app/views/news/_project_show.html.erb index e2b58e683..eed2864d0 100644 --- a/app/views/news/_project_show.html.erb +++ b/app/views/news/_project_show.html.erb @@ -1,69 +1,129 @@ -<% - btn_tips = l(:label_news_new) - label_tips = l(:label_news) -%>
-

<%= label_tips %>

+

<%= l(:label_news) %>

-
-

<%= l(:label_total_news) %><%= @news_count %><%= l(:label_project_new_list) %>

- <% if @project && User.current.allowed_to?(:manage_news, @project) %> - <%= link_to(btn_tips, new_project_news_path(@project), - :class => 'problem_new_btn fl c_dorange') %> -
+ + +<% if authorize_for('news', 'edit') %> + - - - -<% other_formats_links do |f| %> - <%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %> +
+
<% end %> +
+ <%= link_to image_tag(url_to_avatar(@news.author),:width => 42,:height => 42), user_path(@news.author), :class => "problem_pic fl" %> +
+

<%=h @news.title %>

+ <%#= watcher_link(@news, User.current) %> + <%= link_to(l(:button_edit), + edit_news_path(@news), + :class => 'talk_edit fr', + :accesskey => accesskey(:edit), + :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) %>
+ <%= link_to_attachments_course @news %> + +
+
+
+ +<% if @news.commentable? %> +
+ <%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %> +

+ <%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form") do %> +
+ <%= text_area 'comment', 'comments', :rows => 5, :style => "width:98%" %> + +
+ <%= l(:label_comment_add) %> + <% end %> + <% end %> +
+<% comments = @comments.reverse %> +<% comments.each do |comment| %> + <% next if comment.new_record? %> +
+
<%= link_to image_tag(url_to_avatar(comment.author),:width => 42,:height => 42), user_path(comment.author), :class => "ping_dispic" %>
+
+
+ <%= link_to_user_header(comment.author,false,:class => 'c_blue fb fl mb10 ') if comment.respond_to?(:author) %><%= format_time(comment.created_on) %> +
+

<%= textAreailizable(comment.comments) %>

+
+
<%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, + :data => {:confirm => l(:text_are_you_sure)}, + :method => :delete, + :title => l(:button_delete) %> +
+
+
+
+ <% end if @comments.any? %> + <% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> <%= stylesheet_link_tag 'scm' %> <% end %> - -<% html_title(l(:label_news_plural)) -%> - - +<% html_title @news.title -%> diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css index c28f3709e..f212ee2d1 100644 --- a/public/stylesheets/project.css +++ b/public/stylesheets/project.css @@ -106,12 +106,6 @@ a.talk_edit{ color:#426e9a; margin-right:5px;} a:hover.talk_edit{ color:#ff5722;} .talk_reply { background:#eeeeee; padding:10px; margin-bottom:10px;} .talkpage_text{ border:1px solid #64bdd9; width:600px; color:#7d7d7d; padding:5px; margin:10px 0 10px 50px; background:#fff;} -.ping_dispic a{ display:block; height:46px; width:46px; border:1px solid #CCC; padding:1px; float:left;} -.ping_dispic a:hover{border:1px solid #15bccf;} -.ping_discon{ float:left; width:610px; margin-left:10px; } -.ping_distop p{ color:#5f5f5f;} -.ping_disfoot a{ float:right; color: #6883b6; margin-left:5px; margin-bottom:5px;} -.ping_distop span a{ float:right; width:20px; height:20px; background:url(images/star.png) -24px 0 no-repeat; margin-right:3px;} .recall{ border-top:1px solid #CCC; padding:5px 0;} .recall_head{ float:left;} .recall_head a{ display:block; width:30px; height:30px; border:1px solid #CCC; padding:1px;} @@ -333,11 +327,7 @@ a:hover.st_add{ color:#ff8e15;} .newpro_box input{ height:26px; float:left; margin-bottom:10px;} .newpro_box textarea{ height:150px; float:left; margin-bottom:10px;} .newpro_box select{ height:26px; float:left; margin-bottom:10px;} -.label{ width:80px; text-align:right; font-size:14px; display:block; float:left;} -.label02{ width:110px; text-align:right; font-size:14px; display:block; float:left;} -.collapsible{ border-left:none;border-right:none;border-bottom:none; border-top:1px solid #e4e4e4; padding-top:10px; } -/*问题查询*/ -.icon-checked { background-image: url(../images/true.png); } +.label{ width:80px; text-align:right; font-size:14 background-image: url(../images/true.png); } .icon-reload { background-image: url(../images/reload.png); } .icon { background-position: 0% 50%; @@ -407,4 +397,8 @@ a:hover.member_btn{ background:#329cbd;} .pro_st_edit_ban ul li{ margin-bottom:10px;} .pro_st_edit_ku{display:none; margin-top:20px;} .pro_st_edit_ku ul li{margin-bottom:10px;} -/*end*/ \ No newline at end of file +/*end*/ +/*用户反馈*/ +.msg_box{ width:670px; height:173px; border-bottom:1px dashed #CCC; padding-top:10px;} +.msg_box h4{ } +.msg_box textarea{width:658px;height:90px;padding:5px;overflow:hidden;background-color: #ffffff; border:1px solid #CCC; margin:5px 0px; color:#666; font-size:12px; } \ No newline at end of file