From 054c00767f61dc60f1c3905b39859d542b16d1c7 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Sat, 29 Jun 2019 10:32:56 +0800 Subject: [PATCH] fix --- app/views/competitions/enroll.html.erb | 39 ++++++++++++++++---------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/app/views/competitions/enroll.html.erb b/app/views/competitions/enroll.html.erb index 1c5e68dc..075bfe40 100644 --- a/app/views/competitions/enroll.html.erb +++ b/app/views/competitions/enroll.html.erb @@ -109,22 +109,31 @@ <% end %> + <% elsif !User.current.admin? %> +
+

您还未参与报名哦,赶紧来挑战吧~

+ +
<% end %> - <% if User.current.admin? && @teams.present? %> - - 搜索 - 战队数: - 成员数: - <%= @maximum_staff > 1 ? "战队总数" : "报名人数" %>:<%= @team_count %> -
- <%= render :partial => "competitions/team_list" %> - <% else %> - <% if @teams.blank? %> -
-

您还未参与报名哦,赶紧来挑战吧~

- -
- <% end %> + + <% if User.current.admin?%> +
+ + 搜索 + 战队数: + 成员数: + <%= @maximum_staff > 1 ? "战队总数" : "报名人数" %>:<%= @team_count %> +
+ + <% if @teams.present? %> + <%= render :partial => "competitions/team_list" %> + <% else %> +
+

还没有人报名~

+ +
+ <% end %> +
<% end %>