From ae195326012d1fb5a64cecacf88784d6e1376787 Mon Sep 17 00:00:00 2001
From: z9hang
Date: Fri, 14 Nov 2014 17:35:07 +0800
Subject: [PATCH 07/21] =?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 %>
-
From 63a141a75a5cbdaa623ea12d0bd302731069e25a Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Mon, 17 Nov 2014 10:32:33 +0800
Subject: [PATCH 10/21] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=8F=B3=E4=B8=8A?=
=?UTF-8?q?=E4=BE=A7=E8=AF=BE=E7=A8=8B=E4=BD=9C=E4=B8=9A=E5=BF=AB=E6=8D=B7?=
=?UTF-8?q?=E6=A0=8F=E6=98=BE=E7=A4=BAjs=E3=80=81css?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/layouts/_base_header.html.erb | 22 +++++++++----------
app/views/layouts/_user_courses_list.html.erb | 4 +++-
.../layouts/_user_homework_list.html.erb | 2 +-
.../stylesheets/application.css | 2 +-
4 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/app/views/layouts/_base_header.html.erb b/app/views/layouts/_base_header.html.erb
index c263853a4..6f87d4171 100644
--- a/app/views/layouts/_base_header.html.erb
+++ b/app/views/layouts/_base_header.html.erb
@@ -74,13 +74,13 @@
\ No newline at end of file
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index d0d71c50d..b0d427018 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -12,7 +12,8 @@ h4 {border-bottom: 1px dotted #bbb;}
.course_ad{
position:absolute;
visibility:visible;
- background:#ffffff
+ background:#ffffff;
+ width:14%;
}
.ad_title{
From 90f5cd2e609c23443573d7e2e77f6623a3d07101 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Tue, 18 Nov 2014 10:39:50 +0800
Subject: [PATCH 19/21] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=A9=E6=94=BEhtml?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=B6=E6=82=AC=E6=B5=AE=E6=A1=86=E4=BD=8D?=
=?UTF-8?q?=E7=BD=AE=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84?=
=?UTF-8?q?BUG?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/courses/_course_ad.html.erb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/views/courses/_course_ad.html.erb b/app/views/courses/_course_ad.html.erb
index 8318bb5d1..f8b4781f8 100644
--- a/app/views/courses/_course_ad.html.erb
+++ b/app/views/courses/_course_ad.html.erb
@@ -49,6 +49,7 @@
}
$("#floatpoint").css("top",YY);
}
- //$("#floatpoint").css("left",screen_width/2+body_width/2+5);
- $(document).ready(function(){var body_width = $("#top-menu").width(); $("#floatpoint").css("left",screen_width/2+body_width/2+10);});
+ function change_size(){var body_width = $("#top-menu").width(); $("#floatpoint").css("left",screen_width/2+body_width/2+10);}
+ $(document).ready(function(){change_size();});
+ $(window).resize(function(){screen_width = $(window).width();change_size();});
\ No newline at end of file
From e359b987e5f98561fa92eaf559f5d8d56c6f8860 Mon Sep 17 00:00:00 2001
From: moon
Date: Tue, 18 Nov 2014 10:56:56 +0800
Subject: [PATCH 20/21] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E2=80=9C=E8=AF=BE?=
=?UTF-8?q?=E7=A8=8B=E4=BD=9C=E4=B8=9A=E2=80=9D=E6=9D=83=E9=99=90=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/courses/homework.html.erb | 9 +++++----
config/locales/zh.yml | 1 +
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/app/views/courses/homework.html.erb b/app/views/courses/homework.html.erb
index 95e26abd0..68ec0dc2e 100644
--- a/app/views/courses/homework.html.erb
+++ b/app/views/courses/homework.html.erb
@@ -5,11 +5,12 @@
<%= javascript_include_tag 'attachments' %>
-
- <% if User.current.logged? && (User.current.admin? || (!Member.where('user_id = ? and course_id = ?', User.current.id, @course.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, @course.id).first.roles&Role.where(id: [3, 4, 7, 9] )).size >0))%>
- <%= link_to(l(:label_course_homework_new), {:controller => 'courses', :action => 'new_homework'}, :class => 'icon icon-add') %>
- <% end %>
+ <% if User.current.logged? && (User.current.admin? || (!Member.where('user_id = ? and course_id = ?', User.current.id, @course.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, @course.id).first.roles&Role.where(id: [3, 4, 7, 9] )).size >0))%>
+ <%= link_to(l(:label_course_homework_new), {:controller => 'courses', :action => 'new_homework'}, :class => 'icon icon-add') %>
+ <% else %>
+ <%= l(:label_coursejoin_tip) %>
+ <% end %>
<%= render :partial => 'bids/bid_homework_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 0220a10e5..a3807dca3 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -2134,6 +2134,7 @@ zh:
label_notification: 通知公告
label_course_ad_description: 课程模块正在优化中,使用过程中如有问题请您与我们联系,感谢大家的支持!
label_course_adcolick: 请点击:
+ label_coursejoin_tip: 提示:加入课程才有权限查看或提交作业,“加入”按钮见课程图标右侧!
#end
#end
From 126c7f558d9717647ed6bffe7b3bad4a07aed089 Mon Sep 17 00:00:00 2001
From: zhuhao
Date: Tue, 18 Nov 2014 17:03:40 +0800
Subject: [PATCH 21/21] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=A4=84=E6=8E=A7=E4=BB=B6=E5=AF=B9=E9=BD=90?=
=?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=BB=BA=E8=AF=BE=E7=A8=8B=E9=80=9A=E7=9F=A5?=
=?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AE=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F=E7=BB=9F=E4=B8=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/news/_course_news.html.erb | 4 ++--
public/stylesheets/application.css | 2 +-
public/stylesheets/nyan.css | 24 ++++++++++++++++++++----
3 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/app/views/news/_course_news.html.erb b/app/views/news/_course_news.html.erb
index f66def486..346fff8b4 100644
--- a/app/views/news/_course_news.html.erb
+++ b/app/views/news/_course_news.html.erb
@@ -74,10 +74,10 @@
<%= labelled_form_for @news, :url => course_news_index_path(@course),
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/course_form', :locals => {:f => f, :is_new => true} %>
- <%= link_to l(:button_create), "#", :onclick => 'submitNews();', :onmouseover => 'submitFocus(this);', :class => 'whiteButton m3p10' %>
+ <%= link_to l(:button_create), "#", :onclick => 'submitNews();', :onmouseover => 'submitFocus(this);', :class => 'ButtonColor m3p10' %>
<%#= preview_link preview_news_path, 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
- <%= link_to l(:button_cancel), "#", :onclick => '$("#add-news").hide()', :class => 'whiteButton m3p10' %>
+ <%= link_to l(:button_cancel), "#", :onclick => '$("#add-news").hide()', :class => 'ButtonColor m3p10' %>
<% end if @course %>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index d0d71c50d..710a404dc 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1898,7 +1898,7 @@ input#time_entry_comments { width: 90%;}
fieldset.settings label { display: block; }
fieldset#notified_events .parent { padding-left: 20px; }
-span.required {color: #bb0000;}
+span.required {color: #bb0000;margin-right: 4px;}
.summary {font-style: italic;}
#attachments_fields input.description {margin-left:4px; width:100px; }
diff --git a/public/stylesheets/nyan.css b/public/stylesheets/nyan.css
index def79d53b..27e8a367e 100644
--- a/public/stylesheets/nyan.css
+++ b/public/stylesheets/nyan.css
@@ -15,7 +15,7 @@ span[id^=valid_user] {
}
.red {
- color: red;
+ color: red;margin-left: 10px;margin-right: 10px;text-align: right;
}
.green {
@@ -474,6 +474,19 @@ body {
position: relative;
top: 1px;
}
+input[class~='ButtonClolr'],.ButtonColor{
+ color: #fffbff !important;
+ padding-bottom: 5px;
+ width: 40px;
+ height: 20px;
+ font-family: '微软雅黑',Arial,Helvetica,sans-serif;
+ font-size: 15px;
+
+ padding: 0px;
+ background: #15bccf;
+ border: 1px solid #15bccf;
+
+}
input[class~='whiteButton'], .whiteButton {
-moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
@@ -493,9 +506,9 @@ input[class~='whiteButton'], .whiteButton {
border: 1px solid #dcdcdc;
display: inline-block;
color: #666666;
- color: #116699;
+ color: #fffbff;
font-family: arial;
- font-size: 15px;
+ font-size: 20px;
font-weight: bold;
padding: 6px 24px;
/*padding:3px 10px;*/
@@ -513,13 +526,14 @@ input[class~='whiteButton']:hover, .whiteButton:hover {
background: linear-gradient(to bottom, #f6f6f6 5%, #ffffff 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#f6f6f6', endColorstr = '#ffffff', GradientType = 0);
text-decoration: none;
- background-color: #f6f6f6;
+ background-color: #09bbff;
}
input[class~='whiteButton']:active, .whiteButton:active {
position: relative;
top: 1px;
text-decoration: none;
+ color: #ffffff;
}
input[class~='m3p10'], .m3p10 {
@@ -527,6 +541,8 @@ input[class~='m3p10'], .m3p10 {
padding: 3px 10px;
height: 20px;
display: inline-block;
+ text-align: center;
+ color: #ffffff;
}
input[class~='h30'], .h30 {