From b1e58f3fd5950942c9c53b82b031e9a4bdcdaee6 Mon Sep 17 00:00:00 2001 From: zhuhao Date: Fri, 14 Nov 2014 16:38:14 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/_course_ad.html.erb | 93 +++++++++++++++++++++++++++ app/views/courses/show.html.erb | 1 + 2 files changed, 94 insertions(+) create mode 100644 app/views/courses/_course_ad.html.erb diff --git a/app/views/courses/_course_ad.html.erb b/app/views/courses/_course_ad.html.erb new file mode 100644 index 000000000..0db7cb4ec --- /dev/null +++ b/app/views/courses/_course_ad.html.erb @@ -0,0 +1,93 @@ + +
+ + + + + + + + + + +
+ 联系我们 +
+ QQ:1234566
+
+ Email:1234566@qq.com
+
+
+ + \ No newline at end of file diff --git a/app/views/courses/show.html.erb b/app/views/courses/show.html.erb index ee7d995e7..ed83a3085 100644 --- a/app/views/courses/show.html.erb +++ b/app/views/courses/show.html.erb @@ -1,3 +1,4 @@ +<%= render 'course_ad' %> <% if @events_by_day != nil && @events_by_day.size >0 %>

From ae195326012d1fb5a64cecacf88784d6e1376787 Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 14 Nov 2014 17:35:07 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B8=AE=E5=8A=A9?= =?UTF-8?q?=E7=9A=84=E6=B5=AE=E5=8A=A8=E8=BE=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/_course_ad.html.erb | 25 ++++++++++++++++++------- app/views/courses/show.html.erb | 2 +- app/views/layouts/base_courses.html.erb | 1 + db/schema.rb | 19 ++++++++++++++----- 4 files changed, 34 insertions(+), 13 deletions(-) diff --git a/app/views/courses/_course_ad.html.erb b/app/views/courses/_course_ad.html.erb index 0db7cb4ec..8df3c3c31 100644 --- a/app/views/courses/_course_ad.html.erb +++ b/app/views/courses/_course_ad.html.erb @@ -20,13 +20,13 @@

- - - -<% end %> -