diff --git a/app/views/users/_homework_detail_information.html.erb b/app/views/users/_homework_detail_information.html.erb index d650cd084..e43b5b6c7 100644 --- a/app/views/users/_homework_detail_information.html.erb +++ b/app/views/users/_homework_detail_information.html.erb @@ -1,9 +1,9 @@ -
题目信息
-
+
题目信息
+
<% if homework.nil? %> 请先在左侧选择作业 <% else %> -
标题:<%=homework.name %>
+
标题:<%=homework.name %>
来源:<%=homework.course.name %>
<% if homework.homework_type == 2 && homework.homework_detail_programing %> 编程语言:<%=homework.language_name %>
@@ -15,15 +15,15 @@
描述如下:
-
+
<%=homework.description.html_safe %>
<% if homework.homework_type == 2 %> -
+
测试集:<%=homework.homework_tests.count %>组
<% elsif homework.homework_type ==3 && homework.homework_detail_group %> -
+
分组人数:<%=homework.homework_detail_group.min_num %> - <%=homework.homework_detail_group.max_num %>人
<% end %> diff --git a/app/views/users/_homework_search_input.html.erb b/app/views/users/_homework_search_input.html.erb index ba85f0d09..05f023200 100644 --- a/app/views/users/_homework_search_input.html.erb +++ b/app/views/users/_homework_search_input.html.erb @@ -1,4 +1,4 @@ - + diff --git a/public/stylesheets/new_user.css b/public/stylesheets/new_user.css index 289cb2699..721f56bf8 100644 --- a/public/stylesheets/new_user.css +++ b/public/stylesheets/new_user.css @@ -1438,26 +1438,27 @@ span.at a{color:#269ac9;text-decoration: none;} .proInfoP{color:#000000 !important; float:left; width:80px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; } /*导入题库样式*/ -.popupWrap {border:3px solid #269ac9; padding:15px; background-color:#ffffff; position:relative; z-index:1000;} -.subjectList {width:585px;} -.subjectDetail {width:385px;} -a.subjectChoose {padding:8px 20px; background-color:#f1f1f1; color:#888888;} -a.chooseActive {background-color:#269ac9; color:#ffffff;} -.subjectBanner {width:585px; height:40px; background-color:#f1f1f1; border-top:1px solid #eaeaea; color:#7a7a7a; font-size:14px;} -.subjectBanner li {height:40px; line-height:40px; vertical-align:middle;} -.subjectName {width:270px; padding-left:10px; padding-right:10px;} -.subjectPublisher {width:80px; text-align:center;} -.subjectDate {width:80px; text-align:center;} -.subjectType {width:70px; text-align:center;} -.subjectCount {width:65px; text-align:center;} -.subjectRow {width:585px; height:30px; color:#7a7a7a; font-size:12px;} -.subjectRow li {height:30px; line-height:30px; vertical-align:middle;} -.subjectSearch {border:1px solid #dddddd; height:32px; width:250px;outline: none;} -.subjectInfo {width:385px; background-color:#f1f1f1; border:1px solid #dddddd; height:32px; line-height:32px; vertical-align:middle; text-align:center; color:#7a7a7a;} -.subjectWrap {border:1px solid #dddddd; border-top:none; padding:10px; width:365px; height:470px; overflow-y:auto;} -.subjectIntro {color:#585858; line-height:18px; font-size:12px;} -.subjectContent {color:#888888; line-height:18px; font-size:12px;} -.popupClose {background:url(../images/resource_icon_list.png) 0px -40px no-repeat; width:20px; height:20px; display:inline-block; position: absolute; z-index: 1000; right:10px; top:5px;} +.popup-wrapper {border:3px solid #269ac9; padding:15px; background-color:#ffffff; position:relative; z-index:1000;} +.subject-list {width:585px;} +.subject-detail {width:385px;} +a.subject-choose {padding:8px 20px; background-color:#f1f1f1; color:#888888;} +a.choose-active {background-color:#269ac9; color:#ffffff;} +.subject-pop-banner {width:585px; height:40px; background-color:#f1f1f1; border-top:1px solid #eaeaea; color:#7a7a7a; font-size:14px;} +.subject-pop-banner li {height:40px; line-height:40px; vertical-align:middle;} +.subject-pop-name {width:200px; padding-left:10px; padding-right:10px;} +.subject-pop-publisher {width:80px; text-align:center;} +.subject-pop-date {width:75px; text-align:center;} +.subject-pop-row {width:585px; height:30px; color:#7a7a7a; font-size:12px;} +.subject-pop-row li {height:30px; line-height:30px; vertical-align:middle;} +.subject-pop-search {border:1px solid #dddddd; height:32px; width:250px;} +.subject-pop-info {width:385px; background-color:#f1f1f1; border:1px solid #dddddd; height:32px; line-height:32px; vertical-align:middle; text-align:center; color:#7a7a7a;} +.subject-pop-wrap {border:1px solid #dddddd; border-top:none; padding:10px; width:365px; height:475px; overflow-y:auto;} +.subject-pop-intro {color:#585858; line-height:18px; font-size:12px;} +.subject-pop-content {color:#888888; line-height:18px; font-size:12px;} +.popup-close {background:url(../images/resource_icon_list.png) 0px -40px no-repeat; width:20px; height:20px; display:inline-block; position: absolute; z-index: 1000; right:10px; top:5px;} +.subject-pop-type {width:50px; text-align:center;} +.subject-pop-count {width:60px; text-align:center;} +.subject-pop-from {width:100px; text-align:center;} .subjectContent p,.subjectContent div,.subjectContent em, .subjectContent span{text-align: justify; text-justify:inter-ideograph; word-break: normal !important; word-wrap: break-word !important; line-height: 18px !important; color:#888888 !important; font-size:12px !important;} .whiteSettingIcon {background:url(../images/hwork_icon.png) -5px -302px no-repeat; width:20px; height:20px;} diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css index 8df561d1a..59bdb3fda 100644 --- a/public/stylesheets/public.css +++ b/public/stylesheets/public.css @@ -1025,26 +1025,27 @@ a:hover.userCancel{border:1px solid #888888; } .relatePWrap{max-height: 210px;overflow:hidden;} /*导入题库样式*/ -.popupWrap {border:3px solid #269ac9; padding:15px; background-color:#ffffff; position:relative; z-index:1000;} -.subjectList {width:585px;} -.subjectDetail {width:385px;} -a.subjectChoose {padding:8px 20px; background-color:#f1f1f1; color:#888888;} -a.chooseActive {background-color:#269ac9; color:#ffffff;} -.subjectBanner {width:585px; height:40px; background-color:#f1f1f1; border-top:1px solid #eaeaea; color:#7a7a7a; font-size:14px;} -.subjectBanner li {height:40px; line-height:40px; vertical-align:middle;} -.subjectName {width:270px; padding-left:10px; padding-right:10px;} -.subjectPublisher {width:80px; text-align:center;} -.subjectDate {width:80px; text-align:center;} -.subjectType {width:70px; text-align:center;} -.subjectCount {width:65px; text-align:center;} -.subjectRow {width:585px; height:30px; color:#7a7a7a; font-size:12px;} -.subjectRow li {height:30px; line-height:30px; vertical-align:middle;} -.subjectSearch {border:1px solid #dddddd; height:32px; width:250px;outline: none;} -.subjectInfo {width:385px; background-color:#f1f1f1; border:1px solid #dddddd; height:32px; line-height:32px; vertical-align:middle; text-align:center; color:#7a7a7a;} -.subjectWrap {border:1px solid #dddddd; border-top:none; padding:10px; width:365px; height:470px; overflow-y:auto;} -.subjectIntro {color:#585858; line-height:18px; font-size:12px;} -.subjectContent {color:#888888; line-height:18px; font-size:12px;} -.popupClose {background:url(../images/resource_icon_list.png) 0px -40px no-repeat; width:20px; height:20px; display:inline-block; position: absolute; z-index: 1000; right:10px; top:5px;} +.popup-wrapper {border:3px solid #269ac9; padding:15px; background-color:#ffffff; position:relative; z-index:1000;} +.subject-list {width:585px;} +.subject-detail {width:385px;} +a.subject-choose {padding:8px 20px; background-color:#f1f1f1; color:#888888;} +a.choose-active {background-color:#269ac9; color:#ffffff;} +.subject-pop-banner {width:585px; height:40px; background-color:#f1f1f1; border-top:1px solid #eaeaea; color:#7a7a7a; font-size:14px;} +.subject-pop-banner li {height:40px; line-height:40px; vertical-align:middle;} +.subject-pop-name {width:200px; padding-left:10px; padding-right:10px;} +.subject-pop-publisher {width:80px; text-align:center;} +.subject-pop-date {width:75px; text-align:center;} +.subject-pop-row {width:585px; height:30px; color:#7a7a7a; font-size:12px;} +.subject-pop-row li {height:30px; line-height:30px; vertical-align:middle;} +.subject-pop-search {border:1px solid #dddddd; height:32px; width:250px;} +.subject-pop-info {width:385px; background-color:#f1f1f1; border:1px solid #dddddd; height:32px; line-height:32px; vertical-align:middle; text-align:center; color:#7a7a7a;} +.subject-pop-wrap {border:1px solid #dddddd; border-top:none; padding:10px; width:365px; height:475px; overflow-y:auto;} +.subject-pop-intro {color:#585858; line-height:18px; font-size:12px;} +.subject-pop-content {color:#888888; line-height:18px; font-size:12px;} +.popup-close {background:url(../images/resource_icon_list.png) 0px -40px no-repeat; width:20px; height:20px; display:inline-block; position: absolute; z-index: 1000; right:10px; top:5px;} +.subject-pop-type {width:50px; text-align:center;} +.subject-pop-count {width:60px; text-align:center;} +.subject-pop-from {width:100px; text-align:center;} .subjectContent p,.subjectContent div,.subjectContent em, .subjectContent span{text-align: justify; text-justify:inter-ideograph; word-break: normal !important; word-wrap: break-word !important; line-height: 18px !important; color:#888888 !important; font-size:12px !important;} .whiteSettingIcon {background:url(../images/hwork_icon.png) -5px -302px no-repeat; width:20px; height:20px;}