diff --git a/app/views/competitions/_qg_second_competition.html.erb b/app/views/competitions/_qg_second_competition.html.erb index 675fa41e..7c69854b 100644 --- a/app/views/competitions/_qg_second_competition.html.erb +++ b/app/views/competitions/_qg_second_competition.html.erb @@ -15,8 +15,11 @@

  • <% "@urls[i][j][k]表示: 第i个比赛的第j个对象,的第k个url入口" %> + <% is_start = Time.now > section.start_time %> <% section.competition_entries.each_with_index do |entry| %> - " <%= Time.now > section.start_time ? 'target="_blank"' : "" %> ><%= entry.name %> + " + <%= Time.now > section.start_time ? 'target="_blank"' : "" %> ><%= entry.name %> <% end %>
  • diff --git a/app/views/competitions/enroll.html.erb b/app/views/competitions/enroll.html.erb index 43e37099..075bfe40 100644 --- a/app/views/competitions/enroll.html.erb +++ b/app/views/competitions/enroll.html.erb @@ -115,21 +115,25 @@ <% end %> - <% if User.current.admin? && @teams.present? %> - - 搜索 - 战队数: - 成员数: - <%= @maximum_staff > 1 ? "战队总数" : "报名人数" %>:<%= @team_count %> -
    - <%= render :partial => "competitions/team_list" %> - <% else %> - <% unless @teams.present? %> -
    -

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

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

    还没有人报名~

    + +
    + <% end %> +
    <% end %> diff --git a/app/views/competitions/index.html.erb b/app/views/competitions/index.html.erb index 1931b3ef..3f03f6ef 100644 --- a/app/views/competitions/index.html.erb +++ b/app/views/competitions/index.html.erb @@ -8,7 +8,7 @@ <%= image_tag(url_to_avatar(competition), :width => "100%", :height => "100%") %>
    - <%= competition.name %> + <%= [competition.name, competition.sub_title.presence].compact.join('——') %> <% if competition.start_time > Time.now %> <% unless competition.enroll_end_time.present? && competition.enroll_end_time < Time.now %>
    diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css index 18160d0b..398cf669 100644 --- a/public/stylesheets/educoder/edu-all.css +++ b/public/stylesheets/educoder/edu-all.css @@ -772,7 +772,7 @@ li.challenge_box:last-child{ .enrollItemContent{padding: 0px 10px;width: 100%;box-sizing: border-box;height: 100%;overflow: hidden;} .enrollItemContent li{border-bottom: 1px solid #EAEAEA;padding: 20px;line-height: 20px} .team-p-s{width: 20px;height: 20px;line-height: 12px;text-align: center;border-radius: 50%;background: #BCBCBC;color: #fff;float: left} -.enroll-in-b{display: block;border:4px solid #fff;width: 216px;height: 62px;text-align: center;line-height: 62px;margin: 0px 40px;font-size: 32px;color: #fff!important;background: #4CACFF} +.enroll-in-b{display: block;border:4px solid #fff;width: 216px;height: 62px;text-align: center;line-height: 62px;margin: 0px 40px;font-size: 32px;color: #fff!important;background: #4CACFF;cursor: pointer;} .main_title{ font-size: 50px; font-family:MicrosoftYaHei-Bold;