From 3275a3fff05d6aaeb337171ff6b4d332945c658a Mon Sep 17 00:00:00 2001 From: p31729568 Date: Fri, 26 Jul 2019 11:04:08 +0800 Subject: [PATCH] add user profile check to join course btn --- app/views/competitions/enroll.html.erb | 2 +- app/views/layouts/_logined_header.html.erb | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/views/competitions/enroll.html.erb b/app/views/competitions/enroll.html.erb index d5dde153..4afb4ceb 100644 --- a/app/views/competitions/enroll.html.erb +++ b/app/views/competitions/enroll.html.erb @@ -161,7 +161,7 @@ var htmlvalue = '
提示
'+ '

您需要去完善您的个人资料,才能使用此功能

' + '
'; + '立即完善'; pop_box_new(htmlvalue, 480, 205); } diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb index 6b9cde10..e0bb5701 100644 --- a/app/views/layouts/_logined_header.html.erb +++ b/app/views/layouts/_logined_header.html.erb @@ -85,7 +85,13 @@
  • <%= link_to '新建项目', new_project_path() %>
  • @@ -154,4 +160,12 @@ <% end %> }); + + function showUserProfileModal() { + var htmlvalue = '
    提示
    '+ + '

    您需要去完善您的个人资料,才能使用此功能

    ' + + '
    '; + pop_box_new(htmlvalue, 480, 205); + } \ No newline at end of file