diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb index 8165cfb0a..c5681148e 100644 --- a/app/views/welcome/contest.html.erb +++ b/app/views/welcome/contest.html.erb @@ -152,7 +152,7 @@
-
+

<%=l(:label_current_hot_contest)%>

<% if User.current.logged? %> @@ -193,7 +193,7 @@
-
+

<%=l(:label_notification)%>

@@ -218,7 +218,7 @@
-
+

<%=l(:label_issue_feedback_activities)%> <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%> @@ -255,7 +255,7 @@

-
+

<%=l(:label_current_attendingcontest_work)%>

<%= link_to l(:label_more_information), {:controller => 'softapplications', :action => 'index'}, :target => "_blank" %>
diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb index b9eec5014..464d3af4d 100644 --- a/app/views/welcome/course.html.erb +++ b/app/views/welcome/course.html.erb @@ -76,7 +76,7 @@
-
+

<%= l(:lable_hot_course)%>

<% month_now = Time.now.strftime("%m").to_i %> @@ -122,7 +122,7 @@ <% end %>
-
+

<%= l(:label_issue_feedback_activities)%> <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 8b610bdbc..b76b14e1d 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -54,7 +54,7 @@
-
+

<%= l(:lable_hot_projects)%>

@@ -107,7 +107,7 @@
-
+

    <%= l(:lable_user_active)%>

    <%= link_to l(:label_more), { :controller => 'users', :action => 'index'}, :target => "_blank" %> diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 1a1d11363..1504019d7 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -24,7 +24,7 @@ function addFile(inputEl, file, eagerUpload) { $('', { 'type': 'text', 'class': 'filename readonly', 'name': 'attachments[' + attachmentId + '][filename]', 'readonly': 'readonly'} ).val(file.name), $('', { 'type': 'text', 'class': 'description', 'name': 'attachments[' + attachmentId + '][description]', 'maxlength': 254, 'placeholder': $(inputEl).data('description-placeholder') } ).toggle(!eagerUpload), $('公开:').attr({ 'class': 'ispublic-label' }) , - $('', { 'type': 'checkbox', 'class': 'is_public_checkbox','value':1, 'name': 'attachments[' + attachmentId + '][is_public]', checked:'checked' } ).toggle(!eagerUpload), + $('', { 'type': 'checkbox', 'class': 'is_public_checkbox','value':1, 'name': 'attachments[' + attachmentId + '][is_public_checkbox]', checked:'checked' } ).toggle(!eagerUpload), $(' ').attr({ 'href': "#", 'class': 'remove-upload', 'data-confirm' : "您确定要删除吗?" }).click(removeFile).toggle(!eagerUpload), $('
    ', { 'class': 'div_attachments', 'name': 'div_'+'attachments_' + attachmentId} ) ).appendTo('#attachments_fields'); diff --git a/public/stylesheets/welcome.css b/public/stylesheets/welcome.css index 227cc6870..6c472bcac 100644 --- a/public/stylesheets/welcome.css +++ b/public/stylesheets/welcome.css @@ -103,6 +103,24 @@ ul.welcome-message-list{ margin-top: 10px; float: left; } + .d-p-index-hot{ + width: 48%; + margin-top: 10px; + float: left; + min-height: 400px; + } + .d-p-index-left{ + width: 48%; + margin-top: 10px; + float: left; + min-height: 200px; + } + .d-p-index-Dynamic{ + width: 48%; + margin-top: 10px; + float: right; + min-height: 200px; + } ul.d-p-index-hdright{ padding: 0px; margin-top: -30px;