-
- <%= image_tag(url_to_avatar(@user),width:"206", height: "206", :id=>'nh_user_tx') %>
+
+ <%= image_tag(url_to_avatar(@user),width:"78", height: "78", :id=>'nh_user_tx') %>
<% if User.current.logged?%>
<% if is_current_user%>
@@ -46,16 +46,18 @@
<% end %>
<% end%>
-
-
+
+
<% if (@user.user_extensions && (@user.user_extensions.identity != 2) ) %>
-
+
<% end %>
- <%= link_to("编辑资料", my_account_path, :class => "fr gz_btn mr10") if is_current_user%>
+
教授
+ <%= link_to("编辑资料", my_account_path, :class => "fl gz_btn mr10") if is_current_user%>
+
-
<%= reply.content.html_safe %>
+
<%= reply.content.html_safe %>
diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb
index 5e538c65e..603901ae4 100644
--- a/app/views/users/_course_news.html.erb
+++ b/app/views/users/_course_news.html.erb
@@ -83,7 +83,7 @@
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %>
-
<%= comment.comments.html_safe %>
+
<%= comment.comments.html_safe %>
diff --git a/app/views/users/_project_issue.html.erb b/app/views/users/_project_issue.html.erb
index eb0341607..0ee4f30fb 100644
--- a/app/views/users/_project_issue.html.erb
+++ b/app/views/users/_project_issue.html.erb
@@ -119,7 +119,7 @@
<%= string %>
<% end %>
<% else %>
-
<%= reply.notes.html_safe %>
+
<%= reply.notes.html_safe %>
<% end %>
diff --git a/app/views/users/_project_message.html.erb b/app/views/users/_project_message.html.erb
index 3bdbda412..e60676ac6 100644
--- a/app/views/users/_project_message.html.erb
+++ b/app/views/users/_project_message.html.erb
@@ -103,7 +103,7 @@
) if reply.course_destroyable_by?(User.current) %>
-
<%= reply.content.html_safe %>
+
<%= reply.content.html_safe %>
diff --git a/app/views/users/_user_activities.html.erb b/app/views/users/_user_activities.html.erb
index 1cfeb7ed8..b43d0d54e 100644
--- a/app/views/users/_user_activities.html.erb
+++ b/app/views/users/_user_activities.html.erb
@@ -3,16 +3,16 @@
<% name = name%>
<%= form_tag({controller: :welcome, action: :search },:class=>'navHomepageSearchBox', method: :get) do %>
-
" class="navHomepageSearchInput" placeholder="请输入关键词进行搜索" />
+
" id="navHomepageSearchInput" class="navHomepageSearchInput" placeholder="请输入关键词进行搜索"/>
<% end %>
diff --git a/app/views/layouts/_unlogin_header.html.erb b/app/views/layouts/_unlogin_header.html.erb
index d11fdbfb2..d6c6fbc51 100644
--- a/app/views/layouts/_unlogin_header.html.erb
+++ b/app/views/layouts/_unlogin_header.html.erb
@@ -19,7 +19,7 @@
$(doc).parent().submit();
}
<% type = type%>
- $(document).ready(function (){
+ $(function (){
if('<%= type %>' != null && '<%= type %>' == 'courses' ){
$('input:radio[value="courses"]').attr('checked','checked');
}
@@ -30,13 +30,22 @@
$('input:radio[value="users"]').attr('checked','checked');
}
});
+
+ $(function(){
+ $("#navHomepageSearchInput").keypress(function(e){
+ if (e.keyCode == '13') {
+ $('#type').val($('input[type=radio]:checked').val());
+ $(this).parent().submit();
+ }
+ })
+ });
<% name = name%>
<%= form_tag({controller: :welcome, action: :search },:class=>'navHomepageSearchBox', method: :get) do %>
-
" class="navHomepageSearchInput" placeholder="请输入关键词进行搜索" />
+
" id="navHomepageSearchInput" class="navHomepageSearchInput" placeholder="请输入关键词进行搜索" />
<% end %>
From a111b9a3fd0dd625cd2b89349ea9ba995132439f Mon Sep 17 00:00:00 2001
From: ouyangxuhua
Date: Sat, 29 Aug 2015 11:29:05 +0800
Subject: [PATCH 16/37] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=85=B3=E6=B3=A8ajax?=
=?UTF-8?q?=E5=88=B7=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/users/_user_show.html.erb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/app/views/users/_user_show.html.erb b/app/views/users/_user_show.html.erb
index 7cbb20e40..9eabb2be5 100644
--- a/app/views/users/_user_show.html.erb
+++ b/app/views/users/_user_show.html.erb
@@ -30,9 +30,13 @@
编辑资料
<%else%>
<%if(user.watched_by?(User.current))%>
- 取消关注
+
+ <%=link_to "取消关注", watch_path(:object_type=> 'user',:object_id=>user.id,:target_id=>user.id, :remote => "true"), :class => "fr qx_btn mr10", :method => "delete", :title => "取消关注" %>
+
<% else %>
- 添加关注
+
+ <%= link_to "添加关注", watch_path(:object_type=>'user',:object_id=>user.id,:target_id=>user.id, :remote => "true"), :class => "fr gz_btn mr10", :method => "post", :title => "添加关注" %>
+
<% end %>
<% end%>
<% end %>
From f01b5681a5a0c6b24374ec5707f91302ff4ff1d6 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 29 Aug 2015 11:33:58 +0800
Subject: [PATCH 17/37] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE?=
=?UTF-8?q?=E3=80=81=E8=AF=BE=E7=A8=8B=E7=9A=84=E6=94=B6=E8=B5=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/layouts/new_base_user.html.erb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb
index 9ab29ba8b..9561cc474 100644
--- a/app/views/layouts/new_base_user.html.erb
+++ b/app/views/layouts/new_base_user.html.erb
@@ -94,7 +94,7 @@
<%= link_to "动态",user_activities_path(@user.id),:class => "homepageMenuText"%>
-