- <%= image_tag(url_to_avatar(e.event_author), :class => "avatar") %>
+
+ <%= image_tag(url_to_avatar(e.event_author), :class => "avatar") %>
+
- <%= h(e.event_title) if @course.nil? || (e.course != nil && @course.id != e.course.id) %>
+
+ <%= h(e.event_title) if @course.nil? || (e.course != nil && @course.id != e.course.id) %>
+
<% if @canShowRealName %>
<%= link_to_user(e.event_author) if e.respond_to?(:event_author) %>
- (<%= link_to_user(e.event_author, @canShowRealName) if e.respond_to?(:event_author) %>
- )
+ (<%= link_to_user(e.event_author, @canShowRealName) if e.respond_to?(:event_author) %>)
<% else %>
<%= link_to_user(e.event_author) if e.respond_to?(:event_author) %>
<% end %>
@@ -32,15 +35,26 @@
<%= h(truncate(strip_tags(e.event_description).gsub(/ /, ' '), length: 30, omission: '...')) %>
-
+
+
- <%= l :label_activity_time %>
- : <%= format_activity_day(day) %> <%= format_time(e.event_datetime, false) %>
+
+
+ <%= l :label_activity_time %>
+ :
+ <%= format_activity_day(day) %>
+ <%= format_time(e.event_datetime, false) %>
+
<% if e.event_type == "issue" %>
- <%= link_to l(:label_find_all_comments), issue_path(e.id) %> <%= l(:label_comments_count, :count => e.journals.count) %>
+
+ <%= link_to l(:label_find_all_comments), issue_path(e.id) %>
+
+
+ <%= l(:label_comments_count, :count => e.journals.count) %>
+
<% end %>
@@ -51,30 +65,33 @@
<% end %>
-
<% end -%>
<% if (@events_pages.page == @events_pages.last_page) %>
- <%= image_tag(url_to_avatar(@user), :class => "avatar") %>
+
+ <%= image_tag(url_to_avatar(@user), :class => "avatar") %>
+
<% if @canShowRealName %>
- (<%= link_to_user(@user, @canShowRealName) %>
- )
+ (<%= link_to_user(@user, @canShowRealName) %>)
<% else %>
<%= link_to_user(@user)%>
<% end %>
- <%= l(:label_user_create_project) %> <%= link_to @course.name %>
- !
+ <%= l(:label_user_create_project) %>
+ <%= link_to @course.name %>
+ !
+
- <%= l :label_create_time %>
- : <%= format_time(@course.created_at) %>
+
+ <%= l :label_create_time %>:
+ <%= format_time(@course.created_at) %>
@@ -88,24 +105,27 @@
- <%= image_tag(url_to_avatar(@user), :class => "avatar") %>
+
+ <%= image_tag(url_to_avatar(@user), :class => "avatar") %>
+
<% if @canShowRealName %>
- (<%= link_to_user(@user, @canShowRealName) %>
- )
+ (<%= link_to_user(@user, @canShowRealName) %>)
<% else %>
<%= link_to_user(@user)%>
<% end %>
-
- <%= l(:label_user_create_project) %> <%= link_to @course.name %>
- !
+ <%= l(:label_user_create_project) %>
+ <%= link_to @course.name %>
+ !
+
- <%= l :label_create_time %>
- : <%= format_time(@course.created_at) %>
+
+ <%= l :label_create_time %>:
+ <%= format_time(@course.created_at) %>
diff --git a/app/views/files/_course_file.html.erb b/app/views/files/_course_file.html.erb
index cb0084b25..d00a51bc1 100644
--- a/app/views/files/_course_file.html.erb
+++ b/app/views/files/_course_file.html.erb
@@ -2,11 +2,11 @@
<% attachmenttypes = @course.attachmenttypes %>
<% sufixtypes = @course.contenttypes %>
-<%= t(:label_user_course) %>资源共享区
+
+ <%= l(:label_coursefile_sharingarea) %>
+
-
- <%#= link_to(l(:label_attachment_new), 'javascript:void(0);', :onclick=>"$('#file_buttons').slideToggle();", :class => 'icon icon-add') if User.current.allowed_to?(:manage_files, @course) %>
<%= link_to(l(:label_upload_files), 'javascript:void(0);', :class => 'icon m5p5 button_submit', :onclick => "$('#relation_file_div').slideUp();$('#upload_file_div').slideToggle('slow');") if User.current.allowed_to?(:manage_files, @course) %>
@@ -55,7 +55,7 @@
<% if sufixtypes.any? %>
<%= l(:attachment_sufix_browse) %>
- <%= select_tag "attach_sufix_browse", content_tag(:option, l(:attachment_all), :value => '0') +options_for_select(sufixtypes),
+ <%= select_tag "attach_sufix_browse", content_tag(:option, l(:attachment_all), :value => '0') + options_for_select(sufixtypes),
:onchange => "course_attachment_contenttypes_searchex(this.value)" %>
<% end %>
diff --git a/app/views/files/_course_show_all_attachment.html.erb b/app/views/files/_course_show_all_attachment.html.erb
index 3ce583cb8..b70e6e3b6 100644
--- a/app/views/files/_course_show_all_attachment.html.erb
+++ b/app/views/files/_course_show_all_attachment.html.erb
@@ -9,57 +9,55 @@
-
<%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure" ,:class => "tableth") %>
- <%#= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children",:class => "tableth") %>
<%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype",:class => "tableth") %>
<%= content_tag('th', l(:attachment_sufix_browse), id: 'vzebra-contenttype', class: 'tableth', style: 'color: black')%>
<%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense",:class => "tableth") %>
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action",:class => "tableth") %>
<%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children",:class => "tableth") %>
-
- <%# @containers.each do |container| %>
- <%# next if container.attachments.empty? -%>
- <%# if container.is_a?(Version) -%>
-
- <%# end -%>
<% if @curse_attachments != nil %>
<% @curse_attachments.each do |file| %>
<%if file.is_public == 0 && !User.current.member_of_course?(@course)%>
<%next%>
<%end%>
">
- <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
-
- <%= number_to_human_size(file.filesize) %>
+
+ <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
+
+
+ <%= number_to_human_size(file.filesize) %>
+
- <%= file.attachmentstype.typeName unless file.attachmentstype.nil? %>
-
- <%= render :partial => 'attachments/course_type_edit', :locals => {:attachmenttypes => attachmenttypes, :attachment => file, :contentype => selContentType} %>
-
+
+ <%= file.attachmentstype.typeName unless file.attachmentstype.nil? %>
+
+
+ <%= render :partial => 'attachments/course_type_edit', :locals => {:attachmenttypes => attachmenttypes, :attachment => file, :contentype => selContentType} %>
+
+
+
+ <%= file.show_suffix_type %>
- <%= file.show_suffix_type %>
- <%= file.file_dense_str %>
+
+ <%= file.file_dense_str %>
+
-
- <%= render :partial => 'course_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
- :attachment => file} %>
-
+
+ <%= render :partial => 'course_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
+ :attachment => file} %>
+
+
+
+ <%= file.downloads %>
- <%= file.downloads %>
-
<%= link_to(image_tag('delete.png'), attachment_path(file),
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
@@ -77,13 +75,6 @@
<% end -%>
<% end %>
- <%# reset_cycle %>
- <%# end -%>
-
-
-
-
-
diff --git a/app/views/files/_course_sort_by_attachtypel.html.erb b/app/views/files/_course_sort_by_attachtypel.html.erb
index 5a0cdba02..feb8d736d 100644
--- a/app/views/files/_course_sort_by_attachtypel.html.erb
+++ b/app/views/files/_course_sort_by_attachtypel.html.erb
@@ -3,25 +3,22 @@
<% attachmenttypes = @course.attachmenttypes %>
<% delete_allowed = User.current.allowed_to?(:manage_files, @course) %>
<% edit_allowed = User.current.allowed_to?(:manage_files, @course) %>
-
+
-
- <%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure") %>
- <%#= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
- <%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children") %>
- <%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype") %>
- <%= sort_header_tag('content_type', :caption => l(:attachment_sufix_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-contenttype") %>
- <%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense") %>
- <%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action") %>
- <%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
-
+ <%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure" ,:class => "tableth") %>
+ <%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children",:class => "tableth") %>
+ <%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype",:class => "tableth") %>
+ <%= content_tag('th', l(:attachment_sufix_browse), id: 'vzebra-contenttype', class: 'tableth', style: 'color: black')%>
+ <%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense",:class => "tableth") %>
+ <%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action",:class => "tableth") %>
+ <%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children",:class => "tableth") %>
@@ -33,28 +30,36 @@
<% end %>
<% if isTypeOk(file, selAttachType, selContentType) %>
">
- <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
-
+
+ <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
+
<%= number_to_human_size(file.filesize) %>
- <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>
+
+ <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>
+
-
- <%= render :partial => 'attachments/course_type_edit', :locals => {:attachmenttypes => attachmenttypes,
- :attachment => file, :contentype => selContentType} %>
-
+
+ <%= render :partial => 'attachments/course_type_edit', :locals => {:attachmenttypes => attachmenttypes,
+ :attachment => file, :contentype => selContentType} %>
+
+
+
+ <%= file.show_suffix_type %>
- <%= file.show_suffix_type %>
- <%= file.file_dense_str %>
+
+ <%= file.file_dense_str %>
+
-
- <%= render :partial => 'course_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
- :attachment => file} %>
-
+
+ <%= render :partial => 'course_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
+ :attachment => file} %>
+
+
+
+ <%= file.downloads %>
- <%= file.downloads %>
-
<%= link_to(image_tag('delete.png'), attachment_path(file),
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
@@ -75,9 +80,6 @@
<% end -%>
<% reset_cycle %>
<% end -%>
-
-
-
diff --git a/app/views/files/_show_all_attachment.html.erb b/app/views/files/_show_all_attachment.html.erb
index c1df86b32..3520d5576 100644
--- a/app/views/files/_show_all_attachment.html.erb
+++ b/app/views/files/_show_all_attachment.html.erb
@@ -15,52 +15,51 @@
<%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure",:class => "tableth") %>
- <%#= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children",:class => "tableth") %>
<%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype",:class => "tableth") %>
<%= sort_header_tag('content_type', :caption => l(:attachment_sufix_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-contenttype",:class => "tableth") %>
<%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense",:class => "tableth") %>
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action",:class => "tableth") %>
<%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children",:class => "tableth") %>
-
- <%# @containers.each do |container| %>
- <%# next if container.attachments.empty? -%>
- <%# if container.is_a?(Version) -%>
-
- <%# end -%>
<% if @curse_attachments != nil %>
<% @curse_attachments.each do |file| %>
<%if file.is_public == 0 && !User.current.member_of?(@project)%>
<%next%>
<%end%>
">
- <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
-
- <%= number_to_human_size(file.filesize) %>
+
+ <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
+
+
+ <%= number_to_human_size(file.filesize) %>
+
- <%= file.attachmentstype.typeName %>
+
+ <%= file.attachmentstype.typeName %>
+
<%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes, :attachment => file, :contentype => selContentType} %>
- <%= file.show_suffix_type %>
+
+ <%= file.show_suffix_type %>
+
- <%= file.file_dense_str %>
+
+ <%= file.file_dense_str %>
+
-
- <%= render :partial => 'project_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
- :attachment => file} %>
-
+
+ <%= render :partial => 'project_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
+ :attachment => file} %>
+
+
+
+ <%= file.downloads %>
- <%= file.downloads %>
-
<%= link_to(image_tag('delete.png'), attachment_path(file),
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
@@ -73,15 +72,13 @@
<%= render :partial => 'tags/tag', :locals => {:obj => file, :object_flag => "6"} %>
-
+
<% end -%>
- <%# reset_cycle %>
<% end -%>
-
-
-
diff --git a/app/views/files/_sort_by_attachtypel.html.erb b/app/views/files/_sort_by_attachtypel.html.erb
index 6c6e11791..5faa73b0f 100644
--- a/app/views/files/_sort_by_attachtypel.html.erb
+++ b/app/views/files/_sort_by_attachtypel.html.erb
@@ -3,7 +3,7 @@
<% attachmenttypes = @project.attachmenttypes %>
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
<% edit_allowed = User.current.allowed_to?(:manage_files, @project) %>
-
+
@@ -13,15 +13,13 @@
- <%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure") %>
- <%#= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
- <%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children") %>
- <%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype") %>
- <%= sort_header_tag('content_type', :caption => l(:attachment_sufix_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-contenttype") %>
- <%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense") %>
- <%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action") %>
- <%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
-
+ <%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure" ,:class => "tableth") %>
+ <%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children",:class => "tableth") %>
+ <%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype",:class => "tableth") %>
+ <%= content_tag('th', l(:attachment_sufix_browse), id: 'vzebra-contenttype', class: 'tableth', style: 'color: black')%>
+ <%= sort_header_tag('field_file_dense', :caption => l(:field_file_dense), :default_order => 'desc', :scope => "col", :id => "vzebra-field_file_dense",:class => "tableth") %>
+ <%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action",:class => "tableth") %>
+ <%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children",:class => "tableth") %>
@@ -33,28 +31,38 @@
<% end %>
<% if isTypeOk(file, selAttachType, selContentType) %>
">
- <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
-
- <%= number_to_human_size(file.filesize) %>
+
+ <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
+
+
+ <%= number_to_human_size(file.filesize) %>
+
- <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>
+
+ <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>
+
-
- <%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes,
- :attachment => file, :contentype => selContentType} %>
-
+
+ <%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes,
+ :attachment => file, :contentype => selContentType} %>
+
+
+
+ <%= file.show_suffix_type %>
- <%= file.show_suffix_type %>
- <%= file.file_dense_str %>
+
+ <%= file.file_dense_str %>
+
-
- <%= render :partial => 'project_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
- :attachment => file} %>
-
+
+ <%= render :partial => 'project_file_dense_edit', :locals => {:file_dense_list => file.file_dense_list,
+ :attachment => file} %>
+
+
+
+ <%= file.downloads %>
- <%= file.downloads %>
-
<%= link_to(image_tag('delete.png'), attachment_path(file),
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
@@ -67,7 +75,8 @@
<%= render :partial => 'tags/tag', :locals => {:obj => file, :object_flag => "6"} %>
-
@@ -75,9 +84,6 @@
<% end -%>
<% reset_cycle %>
<% end -%>
-
-
-
diff --git a/app/views/files/getattachtype.js.erb b/app/views/files/getattachtype.js.erb
index 88722073f..7acf849ce 100644
--- a/app/views/files/getattachtype.js.erb
+++ b/app/views/files/getattachtype.js.erb
@@ -1,13 +1,13 @@
<% if @attachtype==0 && @contenttype=='0' %>
-<% if @project%>
-$("#all_browse_div").html('<%= j(render partial: "show_all_attachment")%>');
-<% elsif @course%>
-$("#all_browse_div").html('<%= j(render partial: "course_show_all_attachment")%>');
-<%end%>
+ <% if @project%>
+ $("#all_browse_div").html('<%= j(render partial: "show_all_attachment")%>');
+ <% elsif @course%>
+ $("#all_browse_div").html('<%= j(render partial: "course_show_all_attachment")%>');
+ <%end%>
<%else%>
-<% if @project%>
-$("#all_browse_div").html('<%= j(render partial: "sort_by_attachtypel")%>')
-<% elsif @course%>
-$("#all_browse_div").html('<%= j(render partial: "course_sort_by_attachtypel")%>')
-<%end%>;
+ <% if @project%>
+ $("#all_browse_div").html('<%= j(render partial: "sort_by_attachtypel")%>')
+ <% elsif @course%>
+ $("#all_browse_div").html('<%= j(render partial: "course_sort_by_attachtypel")%>')
+ <%end%>;
<%end%>
diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb
index 69b41fc28..e3f022e37 100644
--- a/app/views/files/index.html.erb
+++ b/app/views/files/index.html.erb
@@ -120,16 +120,15 @@
function course_attachment_contenttypes_searchex(value) {
<% if @course%>
- $.ajax({
-
- url: '<%=getattachtype_course_files_path(course_id: @course)%>',
- type: "POST",
- data: {
- type: $('#attachment_browse').val(),
- contentType: encodeURIComponent(value)
- }
-
- }).complete(eval_ajax);
+ $.ajax({
+ url: '<%=getattachtype_course_files_path(course_id: @course)%>',
+ type: "POST",
+ data: {
+ type: $('#attachment_browse').val(),
+ contentType: encodeURIComponent(value)
+ }
+
+ }).complete(eval_ajax);
<%end%>
}
function course_attachtype_edit(value) {
diff --git a/app/views/forums/_form.html.erb b/app/views/forums/_form.html.erb
index 0db5a0f70..556238732 100644
--- a/app/views/forums/_form.html.erb
+++ b/app/views/forums/_form.html.erb
@@ -18,7 +18,7 @@
<%= f.text_field :name, :required => true, :style => 'width: 100%;', :class => 'create-share' %>
-
+
<%= f.text_area :description, :required => true, :id => 'editor01' %>
diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb
index edc90f8cc..b7b832fb5 100644
--- a/app/views/layouts/base_courses.html.erb
+++ b/app/views/layouts/base_courses.html.erb
@@ -6,7 +6,9 @@
-
<%= h html_title %>
+
+ <%= h html_title %>
+
<%= csrf_meta_tag %>
@@ -32,7 +34,11 @@
高校课程实践社区
- <%= l(:label_user_location) %> :
+
+
+ <%= l(:label_user_location) %> :
+
+
<%= form_tag(:controller => 'courses', :action => 'search', :method => :get) do %>
@@ -43,10 +49,16 @@
- <%= link_to request.host()+"/course", :controller => 'courses', :action => 'index' %>
- <%= link_to "主页", home_path %>
- > <%= link_to l(:label_course_all), :controller => 'courses', :action => 'index' %>
- > <%= link_to @course.name, nil %>
+
+ <%= link_to request.host()+"/course", :controller => 'courses', :action => 'index' %>
+
+
+
+ <%= link_to "主页", home_path %>
+ > <%= link_to l(:label_course_all), :controller => 'courses', :action => 'index' %>
+ > <%= link_to @course.name, nil %>
+
+
@@ -67,7 +79,9 @@
- <%= link_to @course.name,course_path(@course) %>
+
+ <%= link_to @course.name,course_path(@course) %>
+
@@ -101,17 +115,23 @@
<% if User.current.member_of_course?(@course) %>
<%= link_to "#{teacherCount(@course)}", course_member_path(@course, :role => 1), :course => '1' %>
<% else %>
- <%= teacherCount(@course)%>
+
+ <%= teacherCount(@course)%>
+
<% end%>
<% if User.current.member_of_course?(@course) %>
<%= link_to "#{studentCount(@course)}", course_member_path(@course, :role => 2), :course => '1' %>
<% else %>
- <%= studentCount(@course)%>
+
+ <%= studentCount(@course)%>
+
<% end %>
- <%= link_to files_count, course_files_path(@course) %>
+
+ <%= link_to files_count, course_files_path(@course) %>
+
<%= l(:label_x_base_courses_teacher, :count => teacherCount(@course)) %>
@@ -122,7 +142,6 @@
<%= l(:label_x_course_data, :count => files_count) %>
-
@@ -134,45 +153,74 @@
- <%= l(:label_main_teacher) %> :
-
+
+ <%= l(:label_main_teacher) %> :
+
+
-
- <%= l(:label_setup_time) %> :
-
+
+ <%= l(:label_setup_time) %> :
+
+
- <%= l(:label_endup_time) %> :
-
+
+ <%= l(:label_endup_time) %> :
+
+
- <%= l(:label_class_period) %> :
-
+
+ <%= l(:label_class_period) %> :
+
+
- <%= l(:label_main_term) %> :
-
+
+ <%= l(:label_main_term) %> :
+
+
<% unless @course.teacher.user_extensions.nil? || @course.teacher.user_extensions.school.nil? %>
- <%= l(:label_teacher_work_unit) %> :
-
+
+ <%= l(:label_teacher_work_unit) %> :
+
+
<% else %>
- <%= l(:label_teacher_work_unit) %> :
-
+
+ <%= l(:label_teacher_work_unit) %> :
+
+
<% end %>
-
-
@@ -180,11 +228,9 @@
<%= l(:label_new_course_description) %>
-
<% if @course.description && !@course.description.blank? %>
<% else %>
@@ -193,7 +239,10 @@
<% end %>
- <%= l(:label_create_time) %>: <%= format_time(@course.created_at) %>
+
+ <%= l(:label_create_time) %>:
+
+ <%= format_time(@course.created_at) %>
@@ -233,10 +282,6 @@
<%= link_to l(:label_course_feedback), course_feedback_path(@course), :class => link_class(:feedback) %>
-
- <% 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 = ? or id = ?', 7, 9)).size >0)) %>
-
- <% end %>
<%= render_flash_messages %>
@@ -250,7 +295,9 @@
<%= render :partial => 'layouts/base_footer' %>
- <%= l(:label_loading) %>
+
+ <%= l(:label_loading) %>
+
diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb
index 01813bf52..92d2cc84e 100644
--- a/app/views/layouts/base_homework.html.erb
+++ b/app/views/layouts/base_homework.html.erb
@@ -8,7 +8,9 @@
- <%=h html_title %>
+
+ <%=h html_title %>
+
<%= csrf_meta_tag %>
<%= favicon %>
@@ -33,17 +35,26 @@
高校课程实践社区
- <%= l(:label_user_location) %> :
-
+
+ <%= l(:label_user_location) %> :
+
- <%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index' %>
- <%= link_to "主页", home_path %>
- > <%= link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> >
- <%= link_to(course.name.to_s, homework_course_path(course)) if course %>
- >
- <%= link_to(@bid.name, respond_path(@bid)) %>
+ <%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index' %>
+
+
+ <%= link_to "主页", home_path %>
+ >
+ <%= link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %>
+ >
+
+ <%= link_to(course.name.to_s, homework_course_path(course)) if course %>
+
+ >
+ <%= link_to(@bid.name, respond_path(@bid)) %>
+
+
@@ -93,53 +104,84 @@
- <%= l(:label_new_course_description) %> :
+
+ <%= l(:label_new_course_description) %> :
+
+
-
+
- <%= l(:label_create_time) %> :
-
+
+ <%= l(:label_create_time) %> :
+
+
- 主讲老师 :
-
+
+ <%= l(:lable_course_teacher) %> :
+
+
- <%= l(:label_class_period) %> :
-
+
+ <%= l(:label_class_period) %> :
+
+
- <%= l(:label_main_term) %> :
-
+
+ <%= l(:label_main_term) %> :
+
+
-
- <%= l(:label_teacher_work_unit) %> :
-
- <% unless @user.user_extensions.nil? || @user.user_extensions.school.nil? %>
-
- <% end %>
-
-
-
-
+
+
+ <%= l(:label_teacher_work_unit) %> :
+
+
+ <% unless @user.user_extensions.nil? || @user.user_extensions.school.nil? %>
+
+ <% end %>
+
+
+
+
-
- <%= l(:label_limit_time) %>: <%= @bid.deadline %>
+
+ <%= l(:label_limit_time) %>:
+ <%= @bid.deadline %>
+
- 作业类型: <%= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %>
+
<% unless @bid.parent_id.nil? %>
@@ -160,7 +202,9 @@
- <%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"} %>
+
+ <%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"} %>
+
@@ -238,7 +282,9 @@
- <%= l(:label_loading) %>
+
+ <%= l(:label_loading) %>
+
diff --git a/app/views/members/autocomplete.js.erb b/app/views/members/autocomplete.js.erb
index 5ef01c04d..d1e7a884b 100644
--- a/app/views/members/autocomplete.js.erb
+++ b/app/views/members/autocomplete.js.erb
@@ -1,6 +1,11 @@
<% if @project%>
$('#principals_for_new_member').html('<%= escape_javascript(render_principals_for_new_members(@project)) %>');
<% elsif @course%>
+ var checked = $("#principals input:checked").size();
+ if(checked > 0)
+ {
+ alert('翻页或搜索后将丢失当前选择的用户数据!');
+ }
$('#principals_for_new_member').html('<%= escape_javascript(render_principals_for_new_course_members(@course)) %>');
<%end%>
var collection=$("#principals_for_new_member").children("#principals").children("label");
diff --git a/app/views/memos/_form.html.erb b/app/views/memos/_form.html.erb
index 116f97149..41ea73fcd 100644
--- a/app/views/memos/_form.html.erb
+++ b/app/views/memos/_form.html.erb
@@ -1,13 +1,3 @@
<%= error_messages_for 'bid' %>
-
-<%= l(:label_homeworks_form_new_description) %>
-
<%= f.text_field :content, :required => true, :size => 60, :style => "width:150px;" %>
<%= hidden_field_tag 'subject', ||=@memo.subject %>
\ No newline at end of file
diff --git a/app/views/messages/_course_show.html.erb b/app/views/messages/_course_show.html.erb
index 51764341d..6977385d8 100644
--- a/app/views/messages/_course_show.html.erb
+++ b/app/views/messages/_course_show.html.erb
@@ -178,7 +178,7 @@
<%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
<%#= submit_tag l(:button_submit) %>
-
+
<%#= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %>
<% end %>
@@ -188,12 +188,13 @@
<% html_title @topic.subject %>
\ No newline at end of file
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 8f118de05..ab77620fd 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -16,10 +16,10 @@
function get_options(value) {
$.ajax({
type: "POST",
- url: '<%= Setting.host_name == "micros.nudt.edu.cn" ? '/ros/school/get_options/' : '/school/get_options/'%>' + encodeURIComponent(value),
+ url: 'http://<%= Setting.host_name%>/school/get_options/' + encodeURIComponent(value),
data: 'text',
success: function (data) {
- $("#province").val(value)
+ $("#province").val(value);
$("#schoollist").html(data);
}
});
@@ -110,7 +110,7 @@
<%= l(:field_occupation) %> *
-
+
<% end %>
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index ba82865ad..30e8b73ae 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -1,6 +1,6 @@
<%= wiki_page_breadcrumb(@page) %>
-
+
<%= h @page.pretty_title %>
<%= form_for @content, :as => :content,
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index c0cb5f3d8..f453b21c3 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -2161,3 +2161,6 @@ zh:
lable_school_list: 学校列表
lable_teacher_evaluation_no: 老师还未进行评价
lable_teacher_evaluation: 作业综评
+ lable_course_teacher: 主讲老师
+ lable_course_end: 课程学期已结束
+ lable_file_sharingarea: 资源共享区