From ef5095c0708af055857def19d43f16897a1abcb9 Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Sun, 28 Apr 2019 12:00:32 +0800
Subject: [PATCH 1/2] 1
---
app/views/layouts/base_management.html.erb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/views/layouts/base_management.html.erb b/app/views/layouts/base_management.html.erb
index 9d1d77c8..e038f1c2 100644
--- a/app/views/layouts/base_management.html.erb
+++ b/app/views/layouts/base_management.html.erb
@@ -113,9 +113,9 @@
"><%= link_to "开发社区", shixuns_path %>
+ <% careers = Career.published.order("created_at asc") %>
+ <% if careers.present? %>
+
+ <% end %>
"><%= link_to "竞赛", competitions_path %>
"><%= link_to "问答", forums_path %>
-
+
<%= link_to '登录', signin_path, :class => "mr5 color-white" %>
-
- <%= link_to '注册', user_join_path, :class => "ml5 color-white" %>
+
+ <%= link_to '注册', user_join_path, :class => "ml5 color-white" %>
@@ -55,8 +66,8 @@
<%= link_to '新建项目', new_project_path() %>
- - <%= link_to "加入课堂", signin_path, :remote => true %>
- - <%= link_to "加入项目", applied_join_project_path, :remote => true %>
+ - <%= link_to "加入课堂", signin_path, :remote => true %>
+ - <%= link_to "加入项目", applied_join_project_path, :remote => true %>