From 8b82115941c3619f76cfb5431b70aae93ebaf864 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Sun, 25 Aug 2013 21:47:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=95=99=E8=A8=80=E6=8F=90?= =?UTF-8?q?=E9=86=92=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_base_header.html.erb | 8 +++++--- app/views/users/user_newfeedback.html.erb | 4 ++++ public/images/mes.png | Bin 4244 -> 3476 bytes 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/_base_header.html.erb b/app/views/layouts/_base_header.html.erb index f67066c30..9be9065cc 100644 --- a/app/views/layouts/_base_header.html.erb +++ b/app/views/layouts/_base_header.html.erb @@ -7,9 +7,11 @@ <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %> - <%= content_tag('div', "#{link_to(image_tag('/images/mes.png'), feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %> -
- <%= User.current.count_new_jour%> +
+ <%= content_tag('div', "#{link_to(image_tag('/images/mes.png'), feedback_path(User.current))}".html_safe, :title => "留言") if User.current.logged? %> +
+
+ <%= User.current.count_new_jour if User.current.logged? && User.current.count_new_jour != 0 %>
diff --git a/app/views/users/user_newfeedback.html.erb b/app/views/users/user_newfeedback.html.erb index 13d4312cb..b5114ef9c 100644 --- a/app/views/users/user_newfeedback.html.erb +++ b/app/views/users/user_newfeedback.html.erb @@ -2,6 +2,10 @@
<%= render :partial => 'words/new', :locals => {:user => @user, :sta => @state} %>
+
+留言(<%= @feedback_count%>) +
+
<%= render :partial => 'words/message', :locals => {:jour => @jour, :state => @state, :user => @user, :feedback_pages => @feedback_pages} %>
diff --git a/public/images/mes.png b/public/images/mes.png index 9e78370207f53b62ea7bfb113c9f2b531dc2253a..34c8f0afd36e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