From b4dfffce1ed2bb532613eb2756232c14dd3db871 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 25 Aug 2017 19:12:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93tip=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=BF=AE=E6=94=B9=20=E5=AE=9E=E8=AE=AD=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E9=87=8C=E9=9D=A2=E5=AF=B9=E5=BA=94=E7=9A=84=E5=AE=9E?= =?UTF-8?q?=E8=AE=AD=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/repositories/shixun_show.html.erb | 6 ++++-- app/views/subjects/show.html.erb | 20 +++++++++++++------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/app/views/repositories/shixun_show.html.erb b/app/views/repositories/shixun_show.html.erb index f5a2e19b3..27ccaa746 100644 --- a/app/views/repositories/shixun_show.html.erb +++ b/app/views/repositories/shixun_show.html.erb @@ -1,9 +1,11 @@
- 提交代码时,账号请用绑定的邮箱
密码请用平台登录密码
+ 使用Git提交代码时,请在Git客户端填写如下信息:
+ * 用户名:请使用您绑定的邮箱
+ * 口令:请使用您的登录口令
- <% if User.current.manager_of_subject?(@subject) %> - - <% end %> -
-- - 第<%= s_index + 1 %>章 <%= stage.name %> - <% if @subject.status == 0 && User.current.manager_of_subject?(@subject) %> - - - <% else %> - + + <% if !@subject.description.blank? || User.current.manager_of_subject?(@subject) %> +
+ <% if User.current.manager_of_subject?(@subject) %> + <% end %>
-<%= stage.description %>
- <% stage.stage_shixuns.each_with_index do |stage_shixun, index| %> - <% shixun = stage_shixun.shixun %> --
- 至少选择一个实训 - 选择实训后,在页面上通过拖拽进行排序调整 -
-+ + 第<%= s_index + 1 %>章 <%= stage.name %> + <% if @subject.status == 0 && User.current.manager_of_subject?(@subject) %> + + + <% else %> + + <% end %> +
+<%= stage.description %>
+ <% stage.stage_shixuns.each_with_index do |stage_shixun, index| %> + <% shixun = stage_shixun.shixun %> +教学名师 <% if User.current == @subject.user %> - + <% end %>