Merge remote-tracking branch 'origin/szzh' into szzh
Conflicts: app/views/issues/_list.html.erb
This commit is contained in:
commit
174f7c1972
|
@ -27,7 +27,12 @@ class CommentsController < ApplicationController
|
||||||
raise Unauthorized unless @news.commentable?
|
raise Unauthorized unless @news.commentable?
|
||||||
|
|
||||||
@comment = Comment.new
|
@comment = Comment.new
|
||||||
@project ? @comment.comments = params[:comment][:comments] : @comment.comments = params[:comment]
|
#@project ? @comment.comments = params[:comment][:comments] : @comment.comments = params[:comment]
|
||||||
|
if params[:user_activity_id]
|
||||||
|
@comment.comments = params[:comment]
|
||||||
|
else
|
||||||
|
@comment.comments = params[:comment][:comments]
|
||||||
|
end
|
||||||
@comment.author = User.current
|
@comment.author = User.current
|
||||||
if @news.comments << @comment
|
if @news.comments << @comment
|
||||||
if params[:asset_id]
|
if params[:asset_id]
|
||||||
|
@ -48,7 +53,7 @@ class CommentsController < ApplicationController
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
# # <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD>̬<EFBFBD>ļ<EFBFBD>¼add end
|
# # <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD>̬<EFBFBD>ļ<EFBFBD>¼add end
|
||||||
flash[:notice] = l(:label_comment_added)
|
#flash[:notice] = l(:label_comment_added)
|
||||||
course_activity = CourseActivity.where("course_act_type='News' and course_act_id =#{@news.id}").first
|
course_activity = CourseActivity.where("course_act_type='News' and course_act_id =#{@news.id}").first
|
||||||
if course_activity
|
if course_activity
|
||||||
course_activity.updated_at = Time.now
|
course_activity.updated_at = Time.now
|
||||||
|
|
|
@ -293,10 +293,15 @@ class CoursesController < ApplicationController
|
||||||
@all_members = searchTeacherAndAssistant(@course)
|
@all_members = searchTeacherAndAssistant(@course)
|
||||||
@members = @all_members
|
@members = @all_members
|
||||||
when '2'
|
when '2'
|
||||||
|
if @course.open_student == 1 || User.current.member_of_course?(@course)
|
||||||
@subPage_title = l :label_student_list
|
@subPage_title = l :label_student_list
|
||||||
page = params[:page].nil? ? 0 : (params['page'].to_i - 1)
|
page = params[:page].nil? ? 0 : (params['page'].to_i - 1)
|
||||||
@all_members = student_homework_score(0,page, 10,"desc")
|
@all_members = student_homework_score(0,page, 10,"desc")
|
||||||
@members = @all_members
|
@members = @all_members
|
||||||
|
else
|
||||||
|
render_403
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if params[:page]
|
if params[:page]
|
||||||
|
|
|
@ -63,6 +63,7 @@ class HomeworkCommonController < ApplicationController
|
||||||
end
|
end
|
||||||
@homework.end_time = params[:homework_common][:end_time] || Time.now
|
@homework.end_time = params[:homework_common][:end_time] || Time.now
|
||||||
@homework.course_id = params[:course_id]
|
@homework.course_id = params[:course_id]
|
||||||
|
@homework.anonymous_comment = params[:homework_common][:anonymous_comment] ? params[:homework_common][:anonymous_comment] : 1
|
||||||
|
|
||||||
homework_detail_manual = @homework.homework_detail_manual || HomeworkDetailManual.new
|
homework_detail_manual = @homework.homework_detail_manual || HomeworkDetailManual.new
|
||||||
if @homework.publish_time <= Date.today && homework_detail_manual.comment_status == 0
|
if @homework.publish_time <= Date.today && homework_detail_manual.comment_status == 0
|
||||||
|
|
|
@ -69,20 +69,25 @@ class NewsController < ApplicationController
|
||||||
elsif @course
|
elsif @course
|
||||||
if (User.current.admin? || @course.is_public == 1 || (@course.is_public == 0 && User.current.member_of_course?(@course)))
|
if (User.current.admin? || @course.is_public == 1 || (@course.is_public == 0 && User.current.member_of_course?(@course)))
|
||||||
scope = @course ? @course.news.course_visible : News.course_visible
|
scope = @course ? @course.news.course_visible : News.course_visible
|
||||||
|
news_arr = scope.map{|news| news.id}
|
||||||
|
|
||||||
|
|
||||||
|
@page = params[:page] ? params[:page].to_i + 1 : 0
|
||||||
|
news_page = @page *10
|
||||||
@news_count = scope.count
|
@news_count = scope.count
|
||||||
|
@is_new = params[:is_new]
|
||||||
@q = params[:subject]
|
@q = params[:subject]
|
||||||
if params[:subject].nil? || params[:subject].blank?
|
if params[:subject].nil? || params[:subject].blank?
|
||||||
scope_order = scope.all(:include => [:author, :course],
|
scope_order = scope.reorder("#{News.table_name}.sticky DESC, #{News.table_name}.created_on DESC").limit(10).offset(news_page).includes(:author,:course).all()
|
||||||
:order => "#{News.table_name}.sticky DESC, #{News.table_name}.created_on DESC")
|
#all(:include => [:author, :course],
|
||||||
|
#:order => "#{News.table_name}.sticky DESC, #{News.table_name}.created_on DESC").limit(10).offset(news_page)
|
||||||
else
|
else
|
||||||
scope_order = scope.where("#{News.table_name}.title like '#{'%' << params[:subject].to_s << '%'}'").all(:include => [:author, :course],
|
scope_order = scope.where("#{News.table_name}.title like '#{'%' << params[:subject].to_s << '%'}'").reorder("#{News.table_name}.sticky DESC, #{News.table_name}.created_on DESC").limit(10).offset(news_page).includes(:author,:course).all()
|
||||||
:order => "#{News.table_name}.sticky DESC, #{News.table_name}.created_on DESC")
|
#.all(:include => [:author, :course],:order => "#{News.table_name}.sticky DESC, #{News.table_name}.created_on DESC")
|
||||||
end
|
end
|
||||||
|
|
||||||
# :offset => @offset,
|
@newss = scope_order
|
||||||
# :limit => @limit)
|
#@newss = paginateHelper scope_order,10
|
||||||
@newss = paginateHelper scope_order,10
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
@news = News.new
|
@news = News.new
|
||||||
|
@ -130,6 +135,7 @@ class NewsController < ApplicationController
|
||||||
result = cs.show_course_news params,User.current
|
result = cs.show_course_news params,User.current
|
||||||
@news = result[:news]
|
@news = result[:news]
|
||||||
@comments = result[:comments]
|
@comments = result[:comments]
|
||||||
|
@comment = Comment.new
|
||||||
#@comments = @news.comments
|
#@comments = @news.comments
|
||||||
#@comments.reverse! if User.current.wants_comments_in_reverse_order?
|
#@comments.reverse! if User.current.wants_comments_in_reverse_order?
|
||||||
#modify by nwb
|
#modify by nwb
|
||||||
|
@ -147,7 +153,22 @@ class NewsController < ApplicationController
|
||||||
@news = News.new(:project => @project, :author => User.current)
|
@news = News.new(:project => @project, :author => User.current)
|
||||||
elsif @course
|
elsif @course
|
||||||
@news = News.new(:course => @course, :author => User.current)
|
@news = News.new(:course => @course, :author => User.current)
|
||||||
render :layout => 'base_courses'
|
#render :layout => 'base_courses'
|
||||||
|
@news.safe_attributes = params[:news]
|
||||||
|
@news.save_attachments(params[:attachments])
|
||||||
|
if @news.save
|
||||||
|
if params[:asset_id]
|
||||||
|
ids = params[:asset_id].split(',')
|
||||||
|
update_kindeditor_assets_owner ids,@news.id,OwnerTypeHelper::NEWS
|
||||||
|
end
|
||||||
|
render_attachment_warning_if_needed(@news)
|
||||||
|
#flash[:notice] = l(:notice_successful_create)
|
||||||
|
redirect_to course_news_index_url(@course)
|
||||||
|
else
|
||||||
|
redirect_to course_news_index_url(@course)
|
||||||
|
#layout_file = 'base_courses'
|
||||||
|
#render :action => 'new', :layout => layout_file
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -210,7 +231,7 @@ class NewsController < ApplicationController
|
||||||
@news.save_attachments(params[:attachments])
|
@news.save_attachments(params[:attachments])
|
||||||
if @news.save
|
if @news.save
|
||||||
render_attachment_warning_if_needed(@news)
|
render_attachment_warning_if_needed(@news)
|
||||||
flash[:notice] = l(:notice_successful_update)
|
#flash[:notice] = l(:notice_successful_update)
|
||||||
redirect_to news_url(@news)
|
redirect_to news_url(@news)
|
||||||
else
|
else
|
||||||
#flash[:error] = l(:notice_successful_update)
|
#flash[:error] = l(:notice_successful_update)
|
||||||
|
|
|
@ -98,7 +98,7 @@ class OrganizationsController < ApplicationController
|
||||||
@org_activities = OrgActivity.where("container_type = 'Course' and org_act_type = 'Poll' and container_id in (#{course_ids.join(',')})").order('updated_at desc').page(params[:page] || 1).per(10)
|
@org_activities = OrgActivity.where("container_type = 'Course' and org_act_type = 'Poll' and container_id in (#{course_ids.join(',')})").order('updated_at desc').page(params[:page] || 1).per(10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@page = params[:page]
|
@page = params[:page] || 1
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js
|
format.js
|
||||||
|
|
|
@ -31,8 +31,8 @@ class RepositoriesController < ApplicationController
|
||||||
default_search_scope :changesets
|
default_search_scope :changesets
|
||||||
|
|
||||||
before_filter :find_project_by_project_id, :only => [:new, :create, :newrepo]
|
before_filter :find_project_by_project_id, :only => [:new, :create, :newrepo]
|
||||||
before_filter :find_repository, :only => [:edit, :update, :destroy, :committers, :forked]
|
before_filter :find_repository, :only => [:edit, :update, :destroy, :committers]
|
||||||
before_filter :find_project_repository, :except => [:new, :create, :newcreate, :edit, :update, :destroy, :committers, :newrepo,:to_gitlab]
|
before_filter :find_project_repository, :except => [:new, :create, :newcreate, :edit, :update, :destroy, :committers, :newrepo, :to_gitlab, :forked]
|
||||||
before_filter :find_changeset, :only => [:revision, :add_related_issue, :remove_related_issue]
|
before_filter :find_changeset, :only => [:revision, :add_related_issue, :remove_related_issue]
|
||||||
before_filter :authorize , :except => [:newrepo,:newcreate,:fork, :to_gitlab, :forked]
|
before_filter :authorize , :except => [:newrepo,:newcreate,:fork, :to_gitlab, :forked]
|
||||||
accept_rss_auth :revisions
|
accept_rss_auth :revisions
|
||||||
|
@ -64,6 +64,8 @@ class RepositoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def forked
|
def forked
|
||||||
|
@project = Project.find(params[:id])
|
||||||
|
@repository = Repository.where("project_id =? and type =?", @project.id, "Repository::Gitlab")
|
||||||
# 如果当前用户已经fork过该项目,不会新fork项目,则跳至已fork的项
|
# 如果当前用户已经fork过该项目,不会新fork项目,则跳至已fork的项
|
||||||
unless has_forked?(@project, User.current)
|
unless has_forked?(@project, User.current)
|
||||||
project = project_from_current_project(@project.id, User.current.id)
|
project = project_from_current_project(@project.id, User.current.id)
|
||||||
|
@ -76,7 +78,11 @@ class RepositoriesController < ApplicationController
|
||||||
else
|
else
|
||||||
g = Gitlab.client
|
g = Gitlab.client
|
||||||
if User.current.gid.nil?
|
if User.current.gid.nil?
|
||||||
|
begin
|
||||||
g.sync_user(User.current)
|
g.sync_user(User.current)
|
||||||
|
ensure
|
||||||
|
logger.error "Synv user failed ==>#{User.current.id}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
gproject = g.fork(@project.gpid, User.current.gid)
|
gproject = g.fork(@project.gpid, User.current.gid)
|
||||||
if gproject
|
if gproject
|
||||||
|
@ -351,7 +357,7 @@ update
|
||||||
@changesets = g.commits(@project.gpid, :ref_name => @rev)
|
@changesets = g.commits(@project.gpid, :ref_name => @rev)
|
||||||
# @changesets = @repository.latest_changesets(@path, @rev)
|
# @changesets = @repository.latest_changesets(@path, @rev)
|
||||||
# @changesets_count = @repository.latest_changesets(@path, @rev).count
|
# @changesets_count = @repository.latest_changesets(@path, @rev).count
|
||||||
@changesets_all_count = 0
|
@changesets_all_count = @project.gpid.nil? ? 0 : g.commits_total_count(@project.gpid).count
|
||||||
@changesets_latest_coimmit = @changesets[0]
|
@changesets_latest_coimmit = @changesets[0]
|
||||||
@properties = @repository.properties(@path, @rev)
|
@properties = @repository.properties(@path, @rev)
|
||||||
@repositories = @project.repositories
|
@repositories = @project.repositories
|
||||||
|
@ -383,10 +389,10 @@ update
|
||||||
@commits = g.commits(@project.gpid, page:(params[:page].to_i - 1).to_s)
|
@commits = g.commits(@project.gpid, page:(params[:page].to_i - 1).to_s)
|
||||||
|
|
||||||
#add by hx
|
#add by hx
|
||||||
rep_count = commit_count(@project)
|
#rep_count = commit_count(@project)
|
||||||
|
|
||||||
#页面传递必须要str类型,但是Paginator的初始化必须要num类型,需要类型转化
|
#页面传递必须要str类型,但是Paginator的初始化必须要num类型,需要类型转化
|
||||||
@commits_count = rep_count
|
@commits_count = params[:commit_count].to_i
|
||||||
@commits_pages = Redmine::Pagination::Paginator.new @commits_count,limit,params[:page]
|
@commits_pages = Redmine::Pagination::Paginator.new @commits_count,limit,params[:page]
|
||||||
|
|
||||||
@commit = g.commit(@project.gpid,@rev)
|
@commit = g.commit(@project.gpid,@rev)
|
||||||
|
|
|
@ -649,7 +649,8 @@ class StudentWorkController < ApplicationController
|
||||||
if revise_attachments.count == 2
|
if revise_attachments.count == 2
|
||||||
revise_attachments.last.destroy
|
revise_attachments.last.destroy
|
||||||
end
|
end
|
||||||
#@attachment = @work.attachments.where("attachtype = 7").order("created_on desc").first
|
attachment = @work.attachments.where("attachtype = 7").first
|
||||||
|
attachment.update_attributes(:description => params[:description])
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.js
|
format.js
|
||||||
end
|
end
|
||||||
|
|
|
@ -522,6 +522,7 @@ class UsersController < ApplicationController
|
||||||
else
|
else
|
||||||
homework.publish_time = params[:homework_common][:publish_time]
|
homework.publish_time = params[:homework_common][:publish_time]
|
||||||
end
|
end
|
||||||
|
homework.anonymous_comment = params[:homework_common][:anonymous_comment] ? params[:homework_common][:anonymous_comment] : 1
|
||||||
homework.homework_type = params[:homework_type].to_i || 1
|
homework.homework_type = params[:homework_type].to_i || 1
|
||||||
homework.late_penalty = 10
|
homework.late_penalty = 10
|
||||||
homework.teacher_priority = 1
|
homework.teacher_priority = 1
|
||||||
|
|
|
@ -17,6 +17,7 @@ class ZipdownController < ApplicationController
|
||||||
begin
|
begin
|
||||||
if params[:base64file]
|
if params[:base64file]
|
||||||
file = Base64.decode64(params[:base64file])
|
file = Base64.decode64(params[:base64file])
|
||||||
|
file = file.sub('*', '+')
|
||||||
send_file "#{OUTPUT_FOLDER}/#{file}", :filename => filename_for_content_disposition(file), :type => detect_content_type(file)
|
send_file "#{OUTPUT_FOLDER}/#{file}", :filename => filename_for_content_disposition(file), :type => detect_content_type(file)
|
||||||
else
|
else
|
||||||
send_file "#{OUTPUT_FOLDER}/#{params[:file]}", :filename => filename_for_content_disposition(params[:filename]), :type => detect_content_type(params[:file])
|
send_file "#{OUTPUT_FOLDER}/#{params[:file]}", :filename => filename_for_content_disposition(params[:filename]), :type => detect_content_type(params[:file])
|
||||||
|
@ -118,11 +119,15 @@ class ZipdownController < ApplicationController
|
||||||
[{files:[out_file.file_path], count: 1, index: 1,
|
[{files:[out_file.file_path], count: 1, index: 1,
|
||||||
real_file: out_file.file_path,
|
real_file: out_file.file_path,
|
||||||
file: File.basename(out_file.file_path),
|
file: File.basename(out_file.file_path),
|
||||||
base64file: Base64.encode64(File.basename(out_file.file_path)),
|
base64file: encode64(File.basename(out_file.file_path)),
|
||||||
size:(out_file.pack_size / 1024.0 / 1024.0).round(2)
|
size:(out_file.pack_size / 1024.0 / 1024.0).round(2)
|
||||||
}]
|
}]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def encode64(str)
|
||||||
|
Base64.encode64(str).sub('+', '*')
|
||||||
|
end
|
||||||
|
|
||||||
def zip_homework_common homework_common
|
def zip_homework_common homework_common
|
||||||
bid_homework_path = []
|
bid_homework_path = []
|
||||||
digests = []
|
digests = []
|
||||||
|
@ -142,7 +147,7 @@ class ZipdownController < ApplicationController
|
||||||
[{files:[out_file.file_path], count: 1, index: 1,
|
[{files:[out_file.file_path], count: 1, index: 1,
|
||||||
real_file: out_file.file_path,
|
real_file: out_file.file_path,
|
||||||
file: File.basename(out_file.file_path),
|
file: File.basename(out_file.file_path),
|
||||||
base64file: Base64.encode64(File.basename(out_file.file_path)),
|
base64file: encode64(File.basename(out_file.file_path)),
|
||||||
size:(out_file.pack_size / 1024.0 / 1024.0).round(2)
|
size:(out_file.pack_size / 1024.0 / 1024.0).round(2)
|
||||||
}]
|
}]
|
||||||
end
|
end
|
||||||
|
|
|
@ -253,8 +253,10 @@ module ApplicationHelper
|
||||||
subject = truncate(subject, :length => 60)
|
subject = truncate(subject, :length => 60)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if issue.status_id == 5
|
if issue.status_id == 3
|
||||||
s = link_to text, issue_path(issue), :class => "text_line_s", :title => title
|
s = link_to text, issue_path(issue), :class => "text_line_s", :title => title
|
||||||
|
elsif issue.status_id == 5
|
||||||
|
s = link_to text, issue_path(issue), :class => "text_line_s del_line", :title => title
|
||||||
else
|
else
|
||||||
s = link_to text, issue_path(issue), :class => "c_blue", :title => title
|
s = link_to text, issue_path(issue), :class => "c_blue", :title => title
|
||||||
end
|
end
|
||||||
|
|
|
@ -394,7 +394,7 @@ class Mailer < ActionMailer::Base
|
||||||
@issue = issue
|
@issue = issue
|
||||||
user = User.find_by_mail(recipients)
|
user = User.find_by_mail(recipients)
|
||||||
@user = user
|
@user = user
|
||||||
@token = Token.get_token_from_user(user, 'autologin')
|
# @token = Token.get_token_from_user(user, 'autologin')
|
||||||
@issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue.id)
|
@issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue.id)
|
||||||
|
|
||||||
# edit
|
# edit
|
||||||
|
@ -436,15 +436,15 @@ class Mailer < ActionMailer::Base
|
||||||
|
|
||||||
user = User.find_by_mail(recipients)
|
user = User.find_by_mail(recipients)
|
||||||
@user = user
|
@user = user
|
||||||
@token = Token.get_token_from_user(user, 'autologin')
|
# @token = Token.get_token_from_user(user, 'autologin')
|
||||||
|
|
||||||
|
|
||||||
# edit
|
# edit
|
||||||
@issue_author_url = url_for(:controller => 'users', :action => 'show', :id => issue.author_id, :token => @token.value)
|
@issue_author_url = url_for(:controller => 'users', :action => 'show', :id => issue.author_id)
|
||||||
@project_url = url_for(:controller => 'projects', :action => 'show', :id => issue.project_id, :token => @token.value)
|
@project_url = url_for(:controller => 'projects', :action => 'show', :id => issue.project_id)
|
||||||
@user_url = url_for(my_account_url(user,:token => @token.value))
|
@user_url = url_for(my_account_url(user))
|
||||||
|
|
||||||
@issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue.id, :anchor => "change-#{journal.id}", :token => @token.value)
|
@issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue.id, :anchor => "change-#{journal.id}")
|
||||||
s = "[#{issue.project.name} - #{issue.tracker.name} ##{issue_id}] "
|
s = "[#{issue.project.name} - #{issue.tracker.name} ##{issue_id}] "
|
||||||
s << "(#{issue.status.name}) " if journal.new_value_for('status_id')
|
s << "(#{issue.status.name}) " if journal.new_value_for('status_id')
|
||||||
s << issue.subject
|
s << issue.subject
|
||||||
|
|
|
@ -59,12 +59,14 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if topics.count == 10 %>
|
<% if topics.count == 10 %>
|
||||||
<div id="show_more_course_topic" class="loadMore mt10 f_grey">展开更多<%= link_to "", boards_topic_path(@board, :course_id => @board.course.id ,:page => page), :id => "more_topic_link", :remote => "true", :class => "none" %></div>
|
<!--<div id="show_more_course_topic" class="loadMore mt10 f_grey">展开更多<%#= link_to "", boards_topic_path(@board, :course_id => @board.course.id ,:page => page), :id => "more_topic_link", :remote => "true", :class => "none" %></div>-->
|
||||||
|
<%= link_to "点击展开更多",boards_topic_path(@board, :course_id => @board.course.id ,:page => page),:id => "show_more_course_topic",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
||||||
|
<!--
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("#show_more_course_topic").mouseover(function () {
|
$("#show_more_course_topic").mouseover(function () {
|
||||||
$("#more_topic_link").click();
|
$("#more_topic_link").click();
|
||||||
});
|
});
|
||||||
</script>
|
</script>-->
|
||||||
|
|
|
@ -114,11 +114,13 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if course_activities.count == 10 %>
|
<% if course_activities.count == 10 %>
|
||||||
<div id="show_more_course_activities" class="loadMore mt10 f_grey">展开更多<%= link_to "", course_activity_path(@course.id, :type => type, :page => page), :id => "more_course_activities_link", :remote => "true", :class => "none" %></div>
|
<!--<div id="show_more_course_activities" class="loadMore mt10 f_grey">点击展开更多<%#= link_to "", course_activity_path(@course.id, :type => type, :page => page), :id => "more_course_activities_link", :remote => "true", :class => "none" %></div>-->
|
||||||
|
<%= link_to "点击展开更多",course_activity_path(@course.id, :type => type, :page => page),:id => "show_more_course_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<!--
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("#show_more_course_activities").mouseover(function () {
|
$("#show_more_course_activities").mouseover(function () {
|
||||||
$("#more_course_activities_link").click();
|
$("#more_course_activities_link").click();
|
||||||
});
|
});
|
||||||
</script>
|
</script>-->
|
||||||
|
|
|
@ -116,8 +116,7 @@
|
||||||
√
|
√
|
||||||
<% else %>
|
<% else %>
|
||||||
×
|
×
|
||||||
<% end %></span><br />
|
<% end %></span>
|
||||||
标准答案:<%= convert_to_char(exercise_question.exercise_standard_answers.first.exercise_choice_id.to_s) if exercise_question.exercise_standard_answers.first %>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -95,8 +95,6 @@
|
||||||
<div id="show_poll_questions_<%= exercise_question.id %>">
|
<div id="show_poll_questions_<%= exercise_question.id %>">
|
||||||
<div>
|
<div>
|
||||||
<div class="testEditTitle"> 第<%= list_index+1%>题:<%= exercise_question.question_title %> (<%= exercise_question.question_score %>分)
|
<div class="testEditTitle"> 第<%= list_index+1%>题:<%= exercise_question.question_title %> (<%= exercise_question.question_score %>分)
|
||||||
<br />
|
|
||||||
标准答案:<%= convert_to_char(exercise_question.exercise_standard_answers.first.exercise_choice_id.to_s) if exercise_question.exercise_standard_answers.first%>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
$("#homework_name").val("");
|
$("#homework_name").val("");
|
||||||
$("#homework_publish_time").val("");
|
$("#homework_publish_time").val("");
|
||||||
$("#homework_end_time").val("");
|
$("#homework_end_time").val("");
|
||||||
|
document.getElementById("anonymous_comment").checked = true;
|
||||||
$("#course_id").val($("#option_select").val());
|
$("#course_id").val($("#option_select").val());
|
||||||
$("#homework_attachments").html("<%= escape_javascript(render :partial => 'users/user_homework_attachment', :locals => { :container => HomeworkCommon.new,:has_program => true,:has_group => true})%>");
|
$("#homework_attachments").html("<%= escape_javascript(render :partial => 'users/user_homework_attachment', :locals => { :container => HomeworkCommon.new,:has_program => true,:has_group => true})%>");
|
||||||
homework_description_editor.html("");
|
homework_description_editor.html("");
|
||||||
|
|
|
@ -12,24 +12,28 @@
|
||||||
|
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<ul class="departments">
|
<ul class="departments">
|
||||||
|
<!--li class="fl mr10">
|
||||||
|
<strong><%#= l(:label_hosted_organization)%></strong><a href="http://www.nudt.edu.cn/ArticleShow.asp?ID=47" class=" ml10 f_grey" target="_blank"><%#= l(:label_hosted_by)%></a>
|
||||||
|
</li>
|
||||||
|
<li class="fl">
|
||||||
|
<a href="http://www.nudt.edu.cn/ArticleShow.asp?ID=41" class="mr45 f_grey" target="_blank"><%#= l(:label_sponsor)%></a>
|
||||||
|
</li-->
|
||||||
<li class="fl mr10">
|
<li class="fl mr10">
|
||||||
<strong><%= l(:label_hosted_organization)%></strong><a href="http://www.nudt.edu.cn/ArticleShow.asp?ID=47" class=" ml10 f_grey" target="_blank"><%= l(:label_hosted_by)%></a>
|
<strong><%= l(:label_partners)%></strong>
|
||||||
</li>
|
</li>
|
||||||
<li class="fl">
|
<li class="fl mr20">
|
||||||
<a href="http://www.nudt.edu.cn/ArticleShow.asp?ID=41" class="mr45 f_grey" target="_blank"><%= l(:label_sponsor)%></a>
|
<a href="http://eecs.pku.edu.cn" class="f_grey" target="_blank"><%#= l(:label_co_organizer_EECS)%><img src="/images/footer_logo/PekingUniversity.png" width="121" height="40" style="display: inline-block;" alt="北京大学" /></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="fl mr10">
|
<li class="fl mr20">
|
||||||
<strong><%= l(:label_partners)%></strong><a href="http://eecs.pku.edu.cn" class="ml10 f_grey" target="_blank"><%= l(:label_co_organizer_EECS)%></a>
|
<a href="http://scse.buaa.edu.cn/" class="f_grey" target="_blank"><%#= l(:label_co_organizer_BHU)%><img src="/images/footer_logo/BeiHang_university.png" width="173" height="40" style="display: inline-block;" alt="北京航空航天大学" /></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="fl">
|
<li class="fl mr20">
|
||||||
<a href="http://scse.buaa.edu.cn/" class="mr10 f_grey" target="_blank"><%= l(:label_co_organizer_BHU)%></a>
|
<a href="http://www.iscas.ac.cn/" class="f_grey" target="_blank"><%#= l(:label_co_organizer_CAS)%><img src="/images/footer_logo/ISCAS_logo.png" width="91" height="40" style="display: inline-block;" alt="ISCAS" /></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="fl">
|
<li class="fl mr20">
|
||||||
<a href="http://www.iscas.ac.cn/" class="mr10 f_grey" target="_blank"><%= l(:label_co_organizer_CAS)%></a>
|
<a href="http://www.inforbus.com/" class="f_grey" target="_blank"><%#= l(:label_co_organizer_InforS)%><img src="/images/footer_logo/CVICSE.png" width="165" height="40" style="display: inline-block;" alt="中创软件" /></a>
|
||||||
</li>
|
|
||||||
<li class="fl">
|
|
||||||
<a href="http://www.inforbus.com/" class="f_grey" target="_blank"><%= l(:label_co_organizer_InforS)%></a>
|
|
||||||
</li>
|
</li>
|
||||||
|
<li class="fl"><a href="http://www.webxmf.com/" target="_blank"><img src="/images/footer_logo/bee_logo.png" width="167" height="40" style="display: inline-block;" alt="web小蜜蜂" /></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<ul class="copyright">
|
<ul class="copyright">
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
<li><%= l(:label_class_period)%> : <span ><%= @course.class_period %> <%= l(:label_class_hour) %></span></li>
|
<li><%= l(:label_class_period)%> : <span ><%= @course.class_period %> <%= l(:label_class_hour) %></span></li>
|
||||||
<li><%= l(:label_main_term)%> : <span><%= @course.time %> <%= @course.term %></span></li>
|
<li><%= l(:label_main_term)%> : <span><%= @course.time %> <%= @course.term %></span></li>
|
||||||
<% if @course.school%>
|
<% if @course.school%>
|
||||||
<li><%= l(:label_course_organizers)%> : <a href="http://<%= Setting.host_course%>/?school_id=<%= @course.school.id%>" target="_blank" class="c_dblue"><%= @course.school%></a></li>
|
<li><%= l(:label_course_organizers)%> : <%= @course.school%></li>
|
||||||
<% end%>
|
<% end%>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
<div class="subNav">
|
<div class="subNav">
|
||||||
<%= link_to l(:label_course_news), course_news_index_path(@course), :class => "f14 c_blue02" %>
|
<%= link_to l(:label_course_news), course_news_index_path(@course), :class => "f14 c_blue02" %>
|
||||||
<%= link_to "(#{@course.news.count})", course_news_index_path(@course), :class => "subnav_num c_orange"%>
|
<%= link_to "(#{@course.news.count})", course_news_index_path(@course), :class => "subnav_num c_orange"%>
|
||||||
<%= link_to( "", new_course_news_path(@course), :class => 'courseMenuSetting', :title =>"#{l(:label_course_news_new)}") if is_teacher %>
|
<%= link_to( "", new_course_news_path(@course,:is_new=>1), :class => 'courseMenuSetting', :title =>"#{l(:label_course_news_new)}") if is_teacher %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% unless show_nav?(course_file_num) %>
|
<% unless show_nav?(course_file_num) %>
|
||||||
|
|
|
@ -46,13 +46,13 @@
|
||||||
<li class="navOrgMenu fr" id="orgSwitch" style="cursor:pointer;">
|
<li class="navOrgMenu fr" id="orgSwitch" style="cursor:pointer;">
|
||||||
<span class="orgMenuArrow" id="orgArrow">
|
<span class="orgMenuArrow" id="orgArrow">
|
||||||
<ul class="org_login_list" style="display:none;">
|
<ul class="org_login_list" style="display:none;">
|
||||||
<li> <%= link_to "个人主页",user_path(User.current), :class => "linkGrey8", :target => "_blank" %></li>
|
<li> <%= link_to "个人主页",user_path(User.current), :class => "menuGrey", :target => "_blank" %></li>
|
||||||
<li><%= link_to "退出",logout_organization_path(@organization), :class =>"linkGrey8", :method => 'post', :rel => "nofollow" %></li>
|
<li><%= link_to "退出",logout_organization_path(@organization), :class =>"menuGrey", :method => 'post', :rel => "nofollow" %></li>
|
||||||
<!--<li><%#= link_to "退出",signout_path, :class =>"linkGrey8", :method => 'post', :rel => "nofollow" %></li>-->
|
<!--<li><%#= link_to "退出",signout_path, :class =>"linkGrey8", :method => 'post', :rel => "nofollow" %></li>-->
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="navOrgMenu fr" id="orgUser" style="cursor:pointer;"><a href="javascript:void(0);" class="linkGrey8 f14" id="orgUserName"><%= User.current %></a></li>
|
<li class="navOrgMenu fr" id="orgUser" style="cursor:pointer;"><a href="javascript:void(0);" class="fontGrey2 f14" id="orgUserName"><%= User.current %></a></li>
|
||||||
<!--<li class="navOrgMenu fr"><%#=link_to User.current, user_path(User.current), :class => "linkGrey8 f14" %></li>-->
|
<!--<li class="navOrgMenu fr"><%#=link_to User.current, user_path(User.current), :class => "linkGrey8 f14" %></li>-->
|
||||||
<% else %>
|
<% else %>
|
||||||
<li class="navOrgMenu fr"><a href="<%= signin_path(:login=>true) %>" class="linkGrey8 f14">登录</a></li>
|
<li class="navOrgMenu fr"><a href="<%= signin_path(:login=>true) %>" class="linkGrey8 f14">登录</a></li>
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div class="homepageContentContainer">
|
<div class="homepageContentContainer">
|
||||||
<div class="homepageContent">
|
<div class="homepageContent">
|
||||||
<div class="homepageLeft">
|
<div class="homepageLeft">
|
||||||
<div class="homepagePortraitContainer">
|
<div class="homepagePortraitContainer">
|
||||||
|
@ -145,11 +145,11 @@
|
||||||
<div style="clear:both;"></div>
|
<div style="clear:both;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--页面底部-->
|
<!--页面底部-->
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div id="Footer">
|
<div id="Footer">
|
||||||
<div class="footerAboutContainer">
|
<div class="footerAboutContainer">
|
||||||
<ul class="footerAbout">
|
<ul class="footerAbout">
|
||||||
<li class="fl"><a href="<%= about_us_path %>" class=" f_grey mw20" target="_blank">关于我们</a>|</li>
|
<li class="fl"><a href="<%= about_us_path %>" class=" f_grey mw20" target="_blank">关于我们</a>|</li>
|
||||||
|
@ -164,15 +164,15 @@
|
||||||
<li class="fl mr30">Copyright © 2007-2015, All Rights Riserved</li>
|
<li class="fl mr30">Copyright © 2007-2015, All Rights Riserved</li>
|
||||||
<li>ICP备09019772</li>
|
<li>ICP备09019772</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div id="ajax-modal" style="display:none;"></div>
|
<div id="ajax-modal" style="display:none;"></div>
|
||||||
|
|
||||||
<div id="ajax-indicator" style="display:none;">
|
<div id="ajax-indicator" style="display:none;">
|
||||||
<span><%= l(:label_loading) %></span>
|
<span><%= l(:label_loading) %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("#courseMenu").mouseenter(function(){
|
$("#courseMenu").mouseenter(function(){
|
||||||
$("#topnav_course_menu").show();
|
$("#topnav_course_menu").show();
|
||||||
});
|
});
|
||||||
|
@ -197,19 +197,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#orgUser,#orgSwitch").click(function(){
|
$("#orgUser,#orgSwitch,#org_login_list").mouseout(function(){
|
||||||
$(".org_login_list").toggle();
|
|
||||||
if($("#orgArrow").attr("class") == "orgMenuArrow"){
|
|
||||||
$("#orgArrow").attr("class","orgMenuArrow2");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$("#orgArrow").attr("class","orgMenuArrow") ;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if($(".org_login_list").children().click){
|
|
||||||
$(".org_login_list").css("display","none");
|
$(".org_login_list").css("display","none");
|
||||||
$("#orgArrow").attr("class","orgMenuArrow");
|
$("#orgArrow").attr("class","orgMenuArrow");
|
||||||
};
|
});
|
||||||
|
$("#orgUser,#orgSwitch,#org_login_list").mouseover(function(){
|
||||||
|
$(".org_login_list").css("display","block");
|
||||||
|
$("#orgArrow").attr("class","orgMenuArrow2");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
||||||
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
<%= link_to l(mail_option), my_change_mail_notification_url(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
||||||
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
<%= link_to l(mail_option), my_change_mail_notification_url(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
||||||
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
<%= link_to l(mail_option), my_change_mail_notification_url(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,6 +9,6 @@
|
||||||
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
||||||
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
<%= link_to l(mail_option), my_change_mail_notification_url(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -16,16 +16,16 @@
|
||||||
<li style="clear: both; list-style: none;">
|
<li style="clear: both; list-style: none;">
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
<%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course, :token => @token.value),
|
<%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to course_new.author, user_activities_url(course_new.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to course_new.author, user_activities_url(course_new.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_notice) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_notice) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(course_new.title.html_safe,length: 30,omission: '...'), news_url(course_new,:token => @token.value),
|
<%= link_to truncate(course_new.title.html_safe,length: 30,omission: '...'), news_url(course_new),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -39,17 +39,17 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
<% unless course_news_comment.commented.nil? %>
|
<% unless course_news_comment.commented.nil? %>
|
||||||
<%= link_to truncate(course_news_comment.commented.course.name,length: 30,omission: '...'), course_url(course_news_comment.commented.course, :token => @token.value),
|
<%= link_to truncate(course_news_comment.commented.course.name,length: 30,omission: '...'), course_url(course_news_comment.commented.course),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to course_news_comment.author, user_activities_url(course_news_comment.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to course_news_comment.author, user_activities_url(course_news_comment.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_notice_reply) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_notice_reply) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(l(:label_course_notice_point),length: 30,omission: '...'), news_url(course_news_comment.commented,:token => @token.value),
|
<%= link_to truncate(l(:label_course_notice_point),length: 30,omission: '...'), news_url(course_news_comment.commented),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -72,16 +72,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
|
|
||||||
<%= link_to truncate(bid.course.name,length: 30,omission: '...'), course_url(bid.course, :token => @token.value),
|
<%= link_to truncate(bid.course.name,length: 30,omission: '...'), course_url(bid.course),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to bid.user, user_activities_url(bid.user,:token => @token.value), :class => "wmail_name",
|
<%= link_to bid.user, user_activities_url(bid.user), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_course_homework) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_course_homework) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(bid.name.html_safe,length: 30,omission: '...'), student_work_index_url(:homework => bid.id,:token => @token.value),
|
<%= link_to truncate(bid.name.html_safe,length: 30,omission: '...'), student_work_index_url(:homework => bid.id),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -105,16 +105,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
|
|
||||||
<%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course, :token => @token.value),
|
<%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to course_journal_message.user, user_activities_url(course_journal_message.user,:token => @token.value), :class => "wmail_name",
|
<%= link_to course_journal_message.user, user_activities_url(course_journal_message.user), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_journals_for_messages) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_journals_for_messages) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(course_journal_message.notes.html_safe,length: 30,omission: '...'), course_feedback_url(course_journal_message.course,:token => @token.value),
|
<%= link_to truncate(course_journal_message.notes.html_safe,length: 30,omission: '...'), course_feedback_url(course_journal_message.course),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -135,14 +135,14 @@
|
||||||
<li style="clear: both; list-style: none;">
|
<li style="clear: both; list-style: none;">
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
<%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course.id, :token => @token.value),
|
<%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course.id),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
<%= link_to course_message.author, user_activities_url(course_message.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to course_message.author, user_activities_url(course_message.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_messages) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_messages) %></span>
|
||||||
<%= link_to truncate(course_message.subject.html_safe,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id,:token => @token.value),
|
<%= link_to truncate(course_message.subject.html_safe,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(course_message.created_on) %></span>
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(course_message.created_on) %></span>
|
||||||
|
@ -163,16 +163,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
|
|
||||||
<%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course, :token => @token.value),
|
<%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to attachment.author, user_activities_url(attachment.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to attachment.author, user_activities_url(attachment.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_course_file_upload) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_course_file_upload) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course,:token => @token.value),
|
<%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -199,14 +199,14 @@
|
||||||
<li style="clear: both; list-style: none;">
|
<li style="clear: both; list-style: none;">
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
<%= link_to truncate(issue.project.name,length: 30,omission: '...'), project_url(issue.project, :token => @token.value),
|
<%= link_to truncate(issue.project.name,length: 30,omission: '...'), project_url(issue.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
<%= link_to issue.author, user_activities_url(issue.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to issue.author, user_activities_url(issue.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_issue) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_issue) %></span>
|
||||||
<%= link_to truncate(issue.subject,length: 30,omission: '...'),issue_url(issue, :token => @token.value),
|
<%= link_to truncate(issue.subject,length: 30,omission: '...'),issue_url(issue),
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(issue.created_on) %></span>
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(issue.created_on) %></span>
|
||||||
|
@ -217,14 +217,14 @@
|
||||||
<li style="clear: both; list-style: none;">
|
<li style="clear: both; list-style: none;">
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
<%= link_to truncate(issues_journal.issue.project.name,length: 30,omission: '...'), project_url(issues_journal.issue.project, :token => @token.value),
|
<%= link_to truncate(issues_journal.issue.project.name,length: 30,omission: '...'), project_url(issues_journal.issue.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
<%= link_to issues_journal.user, user_activities_url(issues_journal.user,:token => @token.value), :class => "wmail_name",
|
<%= link_to issues_journal.user, user_activities_url(issues_journal.user), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_issue_update) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_issue_update) %></span>
|
||||||
<%= link_to truncate(issues_journal.issue.subject, length:30,omission:'...'),issue_url(issues_journal.issue, :token => @token.value),
|
<%= link_to truncate(issues_journal.issue.subject, length:30,omission:'...'),issue_url(issues_journal.issue),
|
||||||
:style => "color:#2E8DD7;float:left;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;",
|
:style => "color:#2E8DD7;float:left;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;",
|
||||||
:onmouseover =>"message_titile_show($(this),event)",
|
:onmouseover =>"message_titile_show($(this),event)",
|
||||||
:onmouseout => "message_titile_hide($(this))"
|
:onmouseout => "message_titile_hide($(this))"
|
||||||
|
@ -251,16 +251,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
|
|
||||||
<%= link_to truncate(project_message.project.name,length: 30,omission: '...'), project_url(project_message.project, :token => @token.value),
|
<%= link_to truncate(project_message.project.name,length: 30,omission: '...'), project_url(project_message.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to project_message.author, user_activities_url(project_message.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to project_message.author, user_activities_url(project_message.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_messages) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_messages) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(project_message.subject,length: 30,omission: '...'),board_message_url(project_message, :board_id => project_message.board_id,:token => @token.value),
|
<%= link_to truncate(project_message.subject,length: 30,omission: '...'),board_message_url(project_message, :board_id => project_message.board_id),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -283,16 +283,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
<% unless wikicontent.page.nil? %>
|
<% unless wikicontent.page.nil? %>
|
||||||
<%= link_to truncate(wikicontent.page.wiki.project.name,length: 30,omission: '...'), project_url(wikicontent.page.wiki.project, :token => @token.value),
|
<%= link_to truncate(wikicontent.page.wiki.project.name,length: 30,omission: '...'), project_url(wikicontent.page.wiki.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
<%= link_to wikicontent.author, user_activities_url(wikicontent.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to wikicontent.author, user_activities_url(wikicontent.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_wiki_mail_notification) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_wiki_mail_notification) %></span>
|
||||||
<% unless wikicontent.page.nil? %>
|
<% unless wikicontent.page.nil? %>
|
||||||
<%= link_to wikicontent.text.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, project_wiki_url(wikicontent.page.wiki,:token => @token.value),
|
<%= link_to wikicontent.text.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, project_wiki_url(wikicontent.page.wiki),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; max-width:400px;height:23px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style => "color:#2E8DD7;float:left; max-width:400px;height:23px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -314,15 +314,15 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
|
|
||||||
<%= link_to truncate(project_new.project.name,length: 30,omission: '...'), project_url(project_new.project, :token => @token.value),
|
<%= link_to truncate(project_new.project.name,length: 30,omission: '...'), project_url(project_new.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
<%= link_to project_new.author, user_activities_url(project_new.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to project_new.author, user_activities_url(project_new.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_mail_notice) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_mail_notice) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(project_new.title,length: 30,omission: '...'), news_url(project_new,:token => @token.value),
|
<%= link_to truncate(project_new.title,length: 30,omission: '...'), news_url(project_new),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_new.created_on) %></span>
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_new.created_on) %></span>
|
||||||
|
@ -336,16 +336,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
<% unless project_news_comment.commented.nil? %>
|
<% unless project_news_comment.commented.nil? %>
|
||||||
<%= link_to truncate(project_news_comment.commented.project.name,length: 30,omission: '...'), project_url(project_news_comment.commented.project, :token => @token.value),
|
<%= link_to truncate(project_news_comment.commented.project.name,length: 30,omission: '...'), project_url(project_news_comment.commented.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
<%= link_to project_news_comment.author, user_activities_url(project_news_comment.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to project_news_comment.author, user_activities_url(project_news_comment.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:lable_project_mail_notice_reply) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:lable_project_mail_notice_reply) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(l(:lable_project_notice_point),length: 30,omission: '...'), news_url(project_news_comment.commented,:token => @token.value),
|
<%= link_to truncate(l(:lable_project_notice_point),length: 30,omission: '...'), news_url(project_news_comment.commented),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_news_comment.created_on) %></span>
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_news_comment.created_on) %></span>
|
||||||
|
@ -366,16 +366,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
|
|
||||||
<%= link_to truncate(project_attachment.project.name,length: 30,omission: '...'), project_url(project_attachment.project, :token => @token.value),
|
<%= link_to truncate(project_attachment.project.name,length: 30,omission: '...'), project_url(project_attachment.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to project_attachment.author, user_activities_url(project_attachment.author,:token => @token.value), :class => "wmail_name",
|
<%= link_to project_attachment.author, user_activities_url(project_attachment.author), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_mail_upload) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_mail_upload) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(project_attachment.filename,length: 30,omission: '...'), project_files_url(project_attachment.project,:token => @token.value),
|
<%= link_to truncate(project_attachment.filename,length: 30,omission: '...'), project_files_url(project_attachment.project),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -398,16 +398,16 @@
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
||||||
|
|
||||||
<%= link_to truncate(project_journal_message.project.name,length: 30,omission: '...'), project_url(project_journal_message.project, :token => @token.value),
|
<%= link_to truncate(project_journal_message.project.name,length: 30,omission: '...'), project_url(project_journal_message.project),
|
||||||
:class=> "wmail_column",
|
:class=> "wmail_column",
|
||||||
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
||||||
|
|
||||||
<%= link_to project_journal_message.user, user_activities_url(project_journal_message.user,:token => @token.value), :class => "wmail_name",
|
<%= link_to project_journal_message.user, user_activities_url(project_journal_message.user), :class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_journals_for_messages) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_journals_for_messages) %></span>
|
||||||
|
|
||||||
<%= link_to project_journal_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, project_feedback_url(project_journal_message.project,:token => @token.value),
|
<%= link_to project_journal_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, project_feedback_url(project_journal_message.project),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; max-width:400px; max-height:30px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; max-width:400px; max-height:30px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -434,12 +434,12 @@
|
||||||
<li style="clear: both; list-style: none;">
|
<li style="clear: both; list-style: none;">
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
|
|
||||||
<%= link_to user_journal_message.user, user_activities_url(user_journal_message.user,:token => @token.value),
|
<%= link_to user_journal_message.user, user_activities_url(user_journal_message.user),
|
||||||
:class => "wmail_name",
|
:class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_show_your_message) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_show_your_message) %></span>
|
||||||
|
|
||||||
<%= link_to user_journal_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe,feedback_url(@user,:token => @token.value),
|
<%= link_to user_journal_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe,feedback_url(@user),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; max-width:400px; max-height:30px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; max-width:400px; max-height:30px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -466,12 +466,12 @@
|
||||||
<li style="clear: both; list-style: none;">
|
<li style="clear: both; list-style: none;">
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
|
|
||||||
<%= link_to forum.creator, user_activities_url(forum.creator,:token => @token.value),
|
<%= link_to forum.creator, user_activities_url(forum.creator),
|
||||||
:class => "wmail_name",
|
:class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_forum_new) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_forum_new) %></span>
|
||||||
|
|
||||||
<%= link_to truncate(forum.name,length: 30,omission: '...'),forum_url(forum,:token => @token.value),
|
<%= link_to truncate(forum.name,length: 30,omission: '...'),forum_url(forum),
|
||||||
:class => 'wmail_info',
|
:class => 'wmail_info',
|
||||||
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
||||||
%>
|
%>
|
||||||
|
@ -492,7 +492,7 @@
|
||||||
<li style="clear: both; list-style: none;">
|
<li style="clear: both; list-style: none;">
|
||||||
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
||||||
|
|
||||||
<%= link_to memo.author, user_activities_url(memo.author,:token => @token.value),
|
<%= link_to memo.author, user_activities_url(memo.author),
|
||||||
:class => "wmail_name",
|
:class => "wmail_name",
|
||||||
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
||||||
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= memo.parent_id.nil? ? l(:label_memo_new_from_forum) : l(:label_reply) %></span>
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= memo.parent_id.nil? ? l(:label_memo_new_from_forum) : l(:label_reply) %></span>
|
||||||
|
@ -516,7 +516,7 @@
|
||||||
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
||||||
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
<%= link_to l(mail_option), my_change_mail_notification_url(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
<%= l(:label_course_news) %>
|
<%= l(:label_course_news) %>
|
||||||
<% @course_news.each do |course_new|%>
|
<% @course_news.each do |course_new|%>
|
||||||
|
|
||||||
▪[<%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course, :token => @token.value)%> ]
|
▪[<%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course)%> ]
|
||||||
|
|
||||||
<%= link_to course_new.author, user_activities_url(course_new.author,:token => @token.value) %>
|
<%= link_to course_new.author, user_activities_url(course_new.author) %>
|
||||||
<%= l(:label_project_notice) %>
|
<%= l(:label_project_notice) %>
|
||||||
<%= link_to truncate(course_new.title,length: 30,omission: '...'), news_url(course_new,:token => @token.value) %>
|
<%= link_to truncate(course_new.title,length: 30,omission: '...'), news_url(course_new) %>
|
||||||
<%= format_time(course_new.created_on) %>
|
<%= format_time(course_new.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -19,12 +19,12 @@
|
||||||
<%= l(:label_course_news) %>
|
<%= l(:label_course_news) %>
|
||||||
<% @course_news_comments.each do |course_news_comment|%>
|
<% @course_news_comments.each do |course_news_comment|%>
|
||||||
▪[ <% unless course_news_comment.commented.nil? %>
|
▪[ <% unless course_news_comment.commented.nil? %>
|
||||||
<%= link_to truncate(course_news_comment.commented.course.name,length: 30,omission: '...'), course_url(course_news_comment.commented.course, :token => @token.value) %>
|
<%= link_to truncate(course_news_comment.commented.course.name,length: 30,omission: '...'), course_url(course_news_comment.commented.course) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
]
|
]
|
||||||
<%= link_to course_news_comment.author, user_activities_url(course_news_comment.author,:token => @token.value) %>
|
<%= link_to course_news_comment.author, user_activities_url(course_news_comment.author) %>
|
||||||
<%= l(:label_project_notice_reply) %>
|
<%= l(:label_project_notice_reply) %>
|
||||||
<%= link_to truncate(course_news_comment.comments,length: 30,omission: '...'), news_url(course_news_comment.commented,:token => @token.value) %>
|
<%= link_to truncate(course_news_comment.comments,length: 30,omission: '...'), news_url(course_news_comment.commented) %>
|
||||||
<%= format_time(course_news_comment.created_on) %>
|
<%= format_time(course_news_comment.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -33,10 +33,10 @@
|
||||||
<%= l(:label_homework_overview) %>
|
<%= l(:label_homework_overview) %>
|
||||||
<% unless @bids.first.nil?%>
|
<% unless @bids.first.nil?%>
|
||||||
<% @bids.each do |bid| %>
|
<% @bids.each do |bid| %>
|
||||||
▪[<%= link_to truncate(bid.course.name,length: 30,omission: '...'),course_url(bid.course, :token => @token.value) %>]
|
▪[<%= link_to truncate(bid.course.name,length: 30,omission: '...'),course_url(bid.course) %>]
|
||||||
<%= link_to bid.user, user_activities_url(bid.user,:token => @token.value) %>
|
<%= link_to bid.user, user_activities_url(bid.user) %>
|
||||||
<%= l(:label_course_homework) %>
|
<%= l(:label_course_homework) %>
|
||||||
<%= link_to truncate(bid.name, length: 30,omission: '...'), student_work_index_path(:homework => bid.id,:token => @token.value) %>
|
<%= link_to truncate(bid.name, length: 30,omission: '...'), student_work_index_path(:homework => bid.id) %>
|
||||||
<%= format_time(bid.created_at) %>
|
<%= format_time(bid.created_at) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -46,10 +46,10 @@
|
||||||
<% unless @course_journal_messages.first.nil? %>
|
<% unless @course_journal_messages.first.nil? %>
|
||||||
<%= l(:view_course_journals_for_messages) %>
|
<%= l(:view_course_journals_for_messages) %>
|
||||||
<% @course_journal_messages.each do |course_journal_message|%>
|
<% @course_journal_messages.each do |course_journal_message|%>
|
||||||
[ <%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course, :token => @token.value) %>]
|
[ <%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course) %>]
|
||||||
<%= link_to course_journal_message.user, user_activities_url(course_journal_message.user,:token => @token.value) %>
|
<%= link_to course_journal_message.user, user_activities_url(course_journal_message.user) %>
|
||||||
<%= l(:label_send_course_journals_for_messages) %>
|
<%= l(:label_send_course_journals_for_messages) %>
|
||||||
<%= link_to truncate(course_journal_message.notes.html_safe,length: 30,omission: '...'), course_feedback_url(course_journal_message.course,:token => @token.value) %>
|
<%= link_to truncate(course_journal_message.notes.html_safe,length: 30,omission: '...'), course_feedback_url(course_journal_message.course) %>
|
||||||
<%= format_time(course_journal_message.created_on) %>
|
<%= format_time(course_journal_message.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -57,10 +57,10 @@
|
||||||
<% unless @course_messages.first.nil? %>
|
<% unless @course_messages.first.nil? %>
|
||||||
<%= l(:view_borad_course) %>
|
<%= l(:view_borad_course) %>
|
||||||
<% @course_messages.each do |course_message|%>
|
<% @course_messages.each do |course_message|%>
|
||||||
▪[<%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course, :token => @token.value)%>]
|
▪[<%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course)%>]
|
||||||
<%= link_to course_message.author, user_activities_url(course_message.author,:token => @token.value) %>
|
<%= link_to course_message.author, user_activities_url(course_message.author) %>
|
||||||
<%= l(:label_send_course_messages) %>
|
<%= l(:label_send_course_messages) %>
|
||||||
<%= link_to truncate(course_message.subject,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id,:token => @token.value) %>
|
<%= link_to truncate(course_message.subject,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id) %>
|
||||||
<%= format_time(course_message.created_on) %>
|
<%= format_time(course_message.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -68,10 +68,10 @@
|
||||||
<% unless @attachments.first.nil? %>
|
<% unless @attachments.first.nil? %>
|
||||||
<%= l(:label_course_mail_files) %>
|
<%= l(:label_course_mail_files) %>
|
||||||
<% @attachments.each do |attachment|%>
|
<% @attachments.each do |attachment|%>
|
||||||
▪[<%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course, :token => @token.value) %>]
|
▪[<%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course) %>]
|
||||||
<%= link_to attachment.author, user_activities_url(attachment.author,:token => @token.value) %>
|
<%= link_to attachment.author, user_activities_url(attachment.author) %>
|
||||||
<%= l(:label_course_file_upload) %>
|
<%= l(:label_course_file_upload) %>
|
||||||
<%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course,:token => @token.value) %>
|
<%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course) %>
|
||||||
<%= format_time(attachment.created_on) %>
|
<%= format_time(attachment.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--课件下载 end-->
|
<!--课件下载 end-->
|
||||||
|
@ -86,10 +86,10 @@
|
||||||
<% unless @issues.first.nil? %>
|
<% unless @issues.first.nil? %>
|
||||||
<%= l(:label_issue_tracking) %>
|
<%= l(:label_issue_tracking) %>
|
||||||
<% @issues.each do |issue|%>
|
<% @issues.each do |issue|%>
|
||||||
▪[<%= link_to truncate(issue.project.name,length: 30,omission: '...'), project_url(issue.project, :token => @token.value) %>]
|
▪[<%= link_to truncate(issue.project.name,length: 30,omission: '...'), project_url(issue.project) %>]
|
||||||
<%= link_to issue.author, user_activities_url(issue.author,:token => @token.value) %>
|
<%= link_to issue.author, user_activities_url(issue.author) %>
|
||||||
<%= l(:label_project_issue) %>
|
<%= l(:label_project_issue) %>
|
||||||
<%= link_to truncate(issue.subject,length: 30,omission: '...'),issue_url(issue, :token => @token.value) %>
|
<%= link_to truncate(issue.subject,length: 30,omission: '...'),issue_url(issue) %>
|
||||||
<%= format_time(issue.created_on) %>
|
<%= format_time(issue.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--问题跟踪 end-->
|
<!--问题跟踪 end-->
|
||||||
|
@ -99,13 +99,13 @@
|
||||||
<% unless @issues_journals.first.nil? %>
|
<% unless @issues_journals.first.nil? %>
|
||||||
<%= l(:label_issue_tracking) %>
|
<%= l(:label_issue_tracking) %>
|
||||||
<% @issues_journals.each do |issues_journal| %>
|
<% @issues_journals.each do |issues_journal| %>
|
||||||
▪[<%= link_to truncate(issues_journal.issue.project.name,length: 30,omission: '...'), project_url(issues_journal.issue.project, :token => @token.value) %>]
|
▪[<%= link_to truncate(issues_journal.issue.project.name,length: 30,omission: '...'), project_url(issues_journal.issue.project) %>]
|
||||||
<%= link_to issues_journal.user, user_activities_url(issues_journal.user,:token => @token.value) %>
|
<%= link_to issues_journal.user, user_activities_url(issues_journal.user) %>
|
||||||
<%= l(:label_project_issue_update) %>
|
<%= l(:label_project_issue_update) %>
|
||||||
<% if issues_journal.notes.nil? %>
|
<% if issues_journal.notes.nil? %>
|
||||||
<%= link_to truncate(issues_journal.issue.subject,length: 30,omission: '...'),issue_url(issue, :token => @token.value) %>
|
<%= link_to truncate(issues_journal.issue.subject,length: 30,omission: '...'),issue_url(issue) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to truncate(issues_journal.notes.html_safe,length: 30,omission: '...'),issue_url(issues_journal.issue, :token => @token.value) %>
|
<%= link_to truncate(issues_journal.notes.html_safe,length: 30,omission: '...'),issue_url(issues_journal.issue) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= format_time(issues_journal.created_on) %>
|
<%= format_time(issues_journal.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -115,10 +115,10 @@
|
||||||
<% unless @project_messages.first.nil? %>
|
<% unless @project_messages.first.nil? %>
|
||||||
<%= l(:project_moule_boards_show) %>
|
<%= l(:project_moule_boards_show) %>
|
||||||
<% @project_messages.each do |project_message|%>
|
<% @project_messages.each do |project_message|%>
|
||||||
▪[<%= link_to truncate(project_message.project.name,length: 30,omission: '...'), project_url(project_message.project, :token => @token.value) %>]
|
▪[<%= link_to truncate(project_message.project.name,length: 30,omission: '...'), project_url(project_message.project) %>]
|
||||||
<%= link_to project_message.author, user_activities_url(project_message.author,:token => @token.value) %>
|
<%= link_to project_message.author, user_activities_url(project_message.author) %>
|
||||||
<%= l(:label_send_course_messages) %>
|
<%= l(:label_send_course_messages) %>
|
||||||
<%= link_to truncate(project_message.subject,length: 30,omission: '...'),board_message_url(project_message, :board_id => project_message.board_id,:token => @token.value) %>
|
<%= link_to truncate(project_message.subject,length: 30,omission: '...'),board_message_url(project_message, :board_id => project_message.board_id) %>
|
||||||
<%= format_time(project_message.created_on) %>
|
<%= format_time(project_message.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--项目论坛 end-->
|
<!--项目论坛 end-->
|
||||||
|
@ -129,13 +129,13 @@
|
||||||
<%= l(:label_wiki) %>
|
<%= l(:label_wiki) %>
|
||||||
<% @wiki_contents.each do |wikicontent|%>
|
<% @wiki_contents.each do |wikicontent|%>
|
||||||
▪[<% unless wikicontent.page.nil? %>
|
▪[<% unless wikicontent.page.nil? %>
|
||||||
<%= link_to truncate(wikicontent.page.wiki.project.name,length: 30,omission: '...'), project_url(wikicontent.page.wiki.project, :token => @token.value) %>
|
<%= link_to truncate(wikicontent.page.wiki.project.name,length: 30,omission: '...'), project_url(wikicontent.page.wiki.project) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
]
|
]
|
||||||
<%= link_to wikicontent.author, user_activities_url(wikicontent.author,:token => @token.value) %>
|
<%= link_to wikicontent.author, user_activities_url(wikicontent.author) %>
|
||||||
<%= l(:label_wiki_mail_notification) %>
|
<%= l(:label_wiki_mail_notification) %>
|
||||||
<% unless wikicontent.page.nil? %>
|
<% unless wikicontent.page.nil? %>
|
||||||
<%= link_to truncate(wikicontent.text.html_safe, length: 30,omission: '...'), project_wiki_url(wikicontent.page.wiki,:token => @token.value) %>
|
<%= link_to truncate(wikicontent.text.html_safe, length: 30,omission: '...'), project_wiki_url(wikicontent.page.wiki) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= format_time(wikicontent.updated_on) %>
|
<%= format_time(wikicontent.updated_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -145,10 +145,10 @@
|
||||||
<% unless @project_news.first.nil? %>
|
<% unless @project_news.first.nil? %>
|
||||||
<%= l(:label_project_news) %>
|
<%= l(:label_project_news) %>
|
||||||
<% @project_news.each do |project_new|%>
|
<% @project_news.each do |project_new|%>
|
||||||
▪[<%= link_to truncate(project_new.project.name,length: 30,omission: '...'), project_url(project_new.project, :token => @token.value) %> ]
|
▪[<%= link_to truncate(project_new.project.name,length: 30,omission: '...'), project_url(project_new.project) %> ]
|
||||||
<%= link_to project_new.author, user_activities_url(project_new.author,:token => @token.value) %>
|
<%= link_to project_new.author, user_activities_url(project_new.author) %>
|
||||||
<%= l(:label_project_mail_notice) %>
|
<%= l(:label_project_mail_notice) %>
|
||||||
<%= link_to truncate(project_new.title.html_safe,length: 30,omission: '...'), news_url(project_new,:token => @token.value) %>
|
<%= link_to truncate(project_new.title.html_safe,length: 30,omission: '...'), news_url(project_new) %>
|
||||||
<%= format_time(project_new.created_on) %>
|
<%= format_time(project_new.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -158,11 +158,11 @@
|
||||||
<%= l(:label_project_news) %>
|
<%= l(:label_project_news) %>
|
||||||
<% @project_news_comments.each do |project_news_comment|%>
|
<% @project_news_comments.each do |project_news_comment|%>
|
||||||
▪[ <% unless project_news_comment.commented.nil? %>
|
▪[ <% unless project_news_comment.commented.nil? %>
|
||||||
<%= link_to truncate(project_news_comment.commented.project.name,length: 30,omission: '...'), project_url(project_news_comment.commented.project, :token => @token.value) %>
|
<%= link_to truncate(project_news_comment.commented.project.name,length: 30,omission: '...'), project_url(project_news_comment.commented.project) %>
|
||||||
<% end %>]
|
<% end %>]
|
||||||
<%= link_to project_news_comment.author, user_activities_url(project_news_comment.author,:token => @token.value) %>
|
<%= link_to project_news_comment.author, user_activities_url(project_news_comment.author) %>
|
||||||
<%= l(:lable_project_mail_notice_reply) %>
|
<%= l(:lable_project_mail_notice_reply) %>
|
||||||
<%= link_to truncate(project_news_comment.comments.html_safe,length: 30,omission: '...'), news_url(project_news_comment.commented,:token => @token.value) %>
|
<%= link_to truncate(project_news_comment.comments.html_safe,length: 30,omission: '...'), news_url(project_news_comment.commented) %>
|
||||||
<%= format_time(project_news_comment.created_on) %>
|
<%= format_time(project_news_comment.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!-- 项目新闻回复end -->
|
<!-- 项目新闻回复end -->
|
||||||
|
@ -172,10 +172,10 @@
|
||||||
<% unless @project_attachments.first.nil? %>
|
<% unless @project_attachments.first.nil? %>
|
||||||
<%= l(:label_project_mail_attachments) %>
|
<%= l(:label_project_mail_attachments) %>
|
||||||
<% @project_attachments.each do |project_attachment|%>
|
<% @project_attachments.each do |project_attachment|%>
|
||||||
▪[<%= link_to truncate(project_attachment.project.name,length: 30,omission: '...'), project_url(project_attachment.project, :token => @token.value) %>]
|
▪[<%= link_to truncate(project_attachment.project.name,length: 30,omission: '...'), project_url(project_attachment.project) %>]
|
||||||
<%= link_to project_attachment.author, user_activities_url(project_attachment.author,:token => @token.value) %>
|
<%= link_to project_attachment.author, user_activities_url(project_attachment.author) %>
|
||||||
<%= l(:label_project_mail_upload) %>
|
<%= l(:label_project_mail_upload) %>
|
||||||
<%= link_to truncate(project_attachment.filename,length: 30,omission: '...'),project_files_url(project_attachment.project,:token => @token.value) %>
|
<%= link_to truncate(project_attachment.filename,length: 30,omission: '...'),project_files_url(project_attachment.project) %>
|
||||||
<%= format_time(project_attachment.created_on) %>
|
<%= format_time(project_attachment.created_on) %>
|
||||||
<% end %> <!-- 项目上传资源 end-->
|
<% end %> <!-- 项目上传资源 end-->
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -184,10 +184,10 @@
|
||||||
<% unless @project_journal_messages.first.nil? %>
|
<% unless @project_journal_messages.first.nil? %>
|
||||||
<%= l(:label_project_mail_feedback) %>
|
<%= l(:label_project_mail_feedback) %>
|
||||||
<% @project_journal_messages.each do |project_journal_message|%>
|
<% @project_journal_messages.each do |project_journal_message|%>
|
||||||
▪[<%= link_to truncate(project_journal_message.project.name,length: 30,omission: '...'), project_url(project_journal_message.project, :token => @token.value) %> ]
|
▪[<%= link_to truncate(project_journal_message.project.name,length: 30,omission: '...'), project_url(project_journal_message.project) %> ]
|
||||||
<%= link_to project_journal_message.user, user_activities_url(project_journal_message.user,:token => @token.value) %>
|
<%= link_to project_journal_message.user, user_activities_url(project_journal_message.user) %>
|
||||||
<%= l(:label_send_course_journals_for_messages) %>
|
<%= l(:label_send_course_journals_for_messages) %>
|
||||||
<%= link_to truncate(project_journal_message.notes.html_safe,length: 30,omission: '...'), project_feedback_url(project_journal_message.project,:token => @token.value) %>
|
<%= link_to truncate(project_journal_message.notes.html_safe,length: 30,omission: '...'), project_feedback_url(project_journal_message.project) %>
|
||||||
<%= format_time(project_journal_message.created_on) %>
|
<%= format_time(project_journal_message.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--项目留言 end-->
|
<!--项目留言 end-->
|
||||||
|
@ -202,9 +202,9 @@
|
||||||
<%= l(:label_user_message) %>
|
<%= l(:label_user_message) %>
|
||||||
(<%= @user_journal_messages.count %>)
|
(<%= @user_journal_messages.count %>)
|
||||||
<% @user_journal_messages.each do |user_journal_message|%>
|
<% @user_journal_messages.each do |user_journal_message|%>
|
||||||
▪ <%= link_to user_journal_message.user, user_activities_url(user_journal_message.user,:token => @token.value)%>
|
▪ <%= link_to user_journal_message.user, user_activities_url(user_journal_message.user)%>
|
||||||
<%= l(:label_show_your_message) %>
|
<%= l(:label_show_your_message) %>
|
||||||
<%= link_to truncate(user_journal_message.notes.html_safe,length: 30,omission: '...'), feedback_url(@user,:token => @token.value) %>
|
<%= link_to truncate(user_journal_message.notes.html_safe,length: 30,omission: '...'), feedback_url(@user) %>
|
||||||
<%= format_time(user_journal_message.created_on) %>
|
<%= format_time(user_journal_message.created_on) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -214,9 +214,9 @@
|
||||||
<% unless @forums.first.nil? %>
|
<% unless @forums.first.nil? %>
|
||||||
<%= l(:label_user_forum) %>
|
<%= l(:label_user_forum) %>
|
||||||
<% @forums.each do |forum|%>
|
<% @forums.each do |forum|%>
|
||||||
▪<%= link_to forum.creator, user_activities_url(forum.creator,:token => @token.value) %>
|
▪<%= link_to forum.creator, user_activities_url(forum.creator) %>
|
||||||
<%= l(:label_forum_new) %>
|
<%= l(:label_forum_new) %>
|
||||||
<%= link_to truncate(forum.name.html_safe,length: 30,omission: '...'),forum_url(forum,:token => @token.value) %>
|
<%= link_to truncate(forum.name.html_safe,length: 30,omission: '...'),forum_url(forum) %>
|
||||||
<%= format_time(forum.created_at) %>
|
<%= format_time(forum.created_at) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!-- 新建贴吧 end-->
|
<!-- 新建贴吧 end-->
|
||||||
|
@ -224,7 +224,7 @@
|
||||||
<% unless @memos.first.nil? %>
|
<% unless @memos.first.nil? %>
|
||||||
<%= l(:label_user_message_forum) %>
|
<%= l(:label_user_message_forum) %>
|
||||||
<% @memos.each do |memo|%>
|
<% @memos.each do |memo|%>
|
||||||
▪<%= link_to memo.author, user_activities_url(memo.author,:token => @token.value)%>
|
▪<%= link_to memo.author, user_activities_url(memo.author)%>
|
||||||
<%= memo.parent_id.nil? ? l(:label_memo_new_from_forum) : l(:label_reply) %>
|
<%= memo.parent_id.nil? ? l(:label_memo_new_from_forum) : l(:label_reply) %>
|
||||||
<%= link_to truncate(memo.subject.html_safe,length: 30,omission: '...'),forum_memo_url(memo.forum, (memo.parent_id.nil? ? memo : memo.parent_id))%>
|
<%= link_to truncate(memo.subject.html_safe,length: 30,omission: '...'),forum_memo_url(memo.forum, (memo.parent_id.nil? ? memo : memo.parent_id))%>
|
||||||
<%= format_time(memo.created_at) %>
|
<%= format_time(memo.created_at) %>
|
||||||
|
@ -238,6 +238,6 @@
|
||||||
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
||||||
<%= l(mail_option) %>
|
<%= l(mail_option) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
<%= link_to l(mail_option), my_change_mail_notification_url(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,42 +1,34 @@
|
||||||
<%
|
<script type="text/javascript">
|
||||||
btn_tips = l(:label_news_notice)
|
$(function(){
|
||||||
label_tips = l(:label_course_news)
|
$("#RSide").removeAttr("id");
|
||||||
%>
|
$("#Container").css("width","1000px");
|
||||||
<script>
|
});
|
||||||
function remote_search(){
|
function reset_news(){
|
||||||
$("#news_query_form").submit();
|
$("#news_title").val("");
|
||||||
|
$("#title_notice_span").text("");
|
||||||
|
$("#description_notice_span").text("");
|
||||||
|
document.getElementById("news_sticky").checked=false;
|
||||||
|
$("#news_attachments").html("<%= escape_javascript(render :partial => 'attachments/new_form', :locals => {:container => News.new})%>");
|
||||||
|
news_description_editor.html("");
|
||||||
|
$("#news_editor").toggle();
|
||||||
}
|
}
|
||||||
|
<% if @is_new%>
|
||||||
|
$(function(){
|
||||||
|
$("#news_title").focus();
|
||||||
|
});
|
||||||
|
<%end%>
|
||||||
</script>
|
</script>
|
||||||
<div class="project_r_h">
|
<div class="homepageRight mt0 ml10">
|
||||||
<h2 class="project_h2"><%= label_tips %></h2>
|
<div class="homepageRightBanner">
|
||||||
</div>
|
<div class="NewsBannerName">
|
||||||
<div class="talk_top">
|
课程通知
|
||||||
<div class="fl">
|
|
||||||
<p class="fl">
|
|
||||||
<%= l(:label_total_news) %>
|
|
||||||
<span><%= @news_count %></span>
|
|
||||||
<%= l(:label_course_news_count) %>
|
|
||||||
</p>
|
|
||||||
<% if @course && User.current.allowed_to?(:manage_news, @course) %>
|
|
||||||
<%= link_to(btn_tips,new_course_news_path(@course),:class => 'problem_new_btn fl c_dorange')%>
|
|
||||||
<div class="cl"></div>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="problem_search fr" >
|
</div>
|
||||||
<%= form_tag({:controller => 'news', :action => 'index', :course_id => @course }, :method => :get,:id=>"news_query_form", :class => 'query_form') do %>
|
<% if @course && User.current.allowed_to?(:manage_news, @course) %>
|
||||||
<input class="problem_search_input fl" id="v_subject" placeholder="通知主题" type="text" name="subject" value="<%= @q%>" onkeypress="" onkeydown="">
|
<%= labelled_form_for @news, :url =>{:controller=>'news',:action => 'new', :course_id => @course.id},
|
||||||
<a href="javascript:void(0)" class="problem_search_btn fl" onclick="remote_search();" >搜索</a>
|
:html => {:nhname=>'form',:multipart => true, :id => 'news-form'} do |f| %>
|
||||||
|
<%= render :partial => 'course_news_new', :locals => {:f => f, :news => @news, :edit_mode => false, :course => @course} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div><!--problem_search end-->
|
<% end %>
|
||||||
<div class="cl"></div>
|
<%= render :partial=> 'course_news_detail',:locals =>{:newss => @newss, :page => 0} %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="news_list">
|
|
||||||
<%= render :partial => 'course_news_list', :locals=>{ :newss=>@newss,:obj_pages=>@obj_pages, :obj_count=>@obj_count} %>
|
|
||||||
</div>
|
|
||||||
<% content_for :header_tags do %>
|
|
||||||
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
|
|
||||||
<%= stylesheet_link_tag 'scm' %>
|
|
||||||
<% end %>
|
|
||||||
<% html_title(l(:label_course_news)) -%>
|
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
<%= content_for(:header_tags) do %>
|
||||||
|
<%= import_ke(enable_at: false, prettify: false) %>
|
||||||
|
<%= javascript_include_tag "init_activity_KindEditor" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
/*回复框*/
|
||||||
|
.homepagePostReplyInputContainer .ke-toolbar {display: none; width: 400px; border: none; background: none; padding: 0px 0px;}
|
||||||
|
.homepagePostReplyInputContainer .ke-toolbar-icon {line-height: 26px; font-size: 14px; padding-left: 26px;}
|
||||||
|
.homepagePostReplyInputContainer .ke-toolbar-icon-url {background-image: url(/images/public_icon.png)}
|
||||||
|
.homepagePostReplyInputContainer .ke-outline {padding: 0px 0px; line-height: 26px; font-size: 14px;}
|
||||||
|
.homepagePostReplyInputContainer .ke-icon-emoticons {background-position: 0px -671px; width: 50px; height: 26px;}
|
||||||
|
.homepagePostReplyInputContainer .ke-icon-emoticons:hover {background-position: -79px -671px; width: 50px; height: 26px;}
|
||||||
|
.homepagePostReplyInputContainer .ke-outline {border: none;}
|
||||||
|
.homepagePostReplyInputContainer .ke-inline-block {display: none;}
|
||||||
|
.homepagePostReplyInputContainer .ke-container {float: left;}
|
||||||
|
</style>
|
||||||
|
<% if newss%>
|
||||||
|
<% newss.each do |news| %>
|
||||||
|
<script>
|
||||||
|
function expand_reply(container, btnid) {
|
||||||
|
var target = $(container);
|
||||||
|
var btn = $(btnid);
|
||||||
|
if (btn.data('init') == '0') {
|
||||||
|
btn.data('init', 1);
|
||||||
|
btn.html('收起回复');
|
||||||
|
target.show();
|
||||||
|
} else {
|
||||||
|
btn.data('init', 0);
|
||||||
|
btn.html('展开更多');
|
||||||
|
target.hide();
|
||||||
|
target.eq(0).show();
|
||||||
|
target.eq(1).show();
|
||||||
|
target.eq(2).show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function expand_reply_input(id) {
|
||||||
|
$(id).toggle();
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
init_activity_KindEditor_data(<%= news.id%>, null, "87%");
|
||||||
|
showNormalImage('activity_description_<%= news.id %>');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<% if news %>
|
||||||
|
<%= render :partial => 'users/course_news', :locals => {:activity => news, :user_activity_id => news.id} %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if newss.count == 10 %>
|
||||||
|
<%= link_to "点击展开更多",news_index_path(:course_id => @course.id ,:page => page),:id => "show_more_course_news",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
||||||
|
<% end %>
|
||||||
|
<% end%>
|
||||||
|
|
|
@ -0,0 +1,60 @@
|
||||||
|
<%= content_for(:header_tags) do %>
|
||||||
|
<%= import_ke(enable_at: true, prettify: false) %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<div class="resources mt10">
|
||||||
|
<div id="new_course_news">
|
||||||
|
<div class="homepagePostBrief c_grey">
|
||||||
|
<div>
|
||||||
|
<input type="text" name="news[title]" id="news_title" class="InputBox w713" maxlength="60" onfocus="$('#news_editor').show()" onkeyup="regexTitle();" placeholder="发布通知,请先输入通知标题" value="<%= news.title%>" >
|
||||||
|
<p id="title_notice_span"></p>
|
||||||
|
</div>
|
||||||
|
<div id="news_editor" style="display: none;">
|
||||||
|
<div class="mt10">
|
||||||
|
<%= f.check_box :sticky, :value => edit_mode ? news.sticky : 0 %>
|
||||||
|
<%= label_tag 'news_sticky', l(:label_board_sticky) %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="mt10">
|
||||||
|
<div id="news_quote" class="wiki" style="width: 92%;word-break: break-all;word-wrap: break-word;margin-left: 40px;"></div>
|
||||||
|
<%= text_area :quote,:quote,:style => 'display:none' %>
|
||||||
|
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
|
||||||
|
|
||||||
|
<%= f.kindeditor :description, :editor_id => 'news_description_editor',
|
||||||
|
:owner_id => news.nil? ? 0: news.id,
|
||||||
|
:owner_type => OwnerTypeHelper::NEWS,
|
||||||
|
:width => '100%',
|
||||||
|
:height => 300,
|
||||||
|
:minHeight=>300,
|
||||||
|
:class => 'talk_text fl',
|
||||||
|
:input_html => { :id => 'news_content',
|
||||||
|
:class => 'talk_text fl',
|
||||||
|
:maxlength => 5000 },
|
||||||
|
at_id: news.id, at_type: news.class.to_s
|
||||||
|
%>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<p id="description_notice_span"></p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="mt10">
|
||||||
|
<div class="fl" id="news_attachments">
|
||||||
|
<%= render :partial => 'attachments/form_course', :locals => {:container => news, :isReply => false} %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="mt5">
|
||||||
|
<%if !edit_mode %>
|
||||||
|
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="submitNews();">确定</a>
|
||||||
|
<span class="fr mr10 mt3">或</span>
|
||||||
|
<a href="javascript:void(0);" class="fr mr10 mt3" onclick="reset_news();">取消</a>
|
||||||
|
<% else %>
|
||||||
|
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="submitNews();">确定</a>
|
||||||
|
<span class="fr mr10 mt3">或</span>
|
||||||
|
<%= link_to "取消",news_path(news), :class => "fr mr10 mt3"%>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -2,45 +2,162 @@
|
||||||
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="project_r_h">
|
<script type="text/javascript">
|
||||||
<h2 class="project_h2"><%= l(:label_course_news) %></h2>
|
$(function(){
|
||||||
</div>
|
$("#RSide").removeAttr("id");
|
||||||
<div class="problem_main">
|
$("#Container").css("width","1000px");
|
||||||
<%= link_to image_tag(url_to_avatar(@news.author),:width => 42,:height => 42), user_path(@news.author), :class => "problem_pic fl" %>
|
});
|
||||||
<div class="problem_txt fl mt5 list_style">
|
</script>
|
||||||
<h4 class="r_txt_tit mb5">
|
<script>
|
||||||
<%=h @news.title %>
|
function expand_reply(container,btnid){
|
||||||
</h4>
|
var target = $(container).children();
|
||||||
<% if @news.sticky == 1%>
|
var btn = $(btnid);
|
||||||
<span class="sticky_btn_cir ml10 fl">置顶</span>
|
if(btn.data('init')=='0'){
|
||||||
<% end%>
|
btn.data('init',1);
|
||||||
<%= link_to(l(:button_edit),
|
btn.html('收起回复');
|
||||||
edit_news_path(@news),
|
target.show();
|
||||||
:class => 'talk_edit fr') if User.current.allowed_to?(:manage_news, @course) %>
|
}else{
|
||||||
<%= delete_link(news_path(@news),:class => 'talk_edit fr') if User.current.allowed_to?(:manage_news, @course) %>
|
btn.data('init',0);
|
||||||
<div class="cl"></div>
|
btn.html('展开更多');
|
||||||
<div class="mb5 upload_img">
|
target.hide();
|
||||||
<%= @news.description.html_safe %>
|
target.eq(0).show();
|
||||||
<br />
|
target.eq(1).show();
|
||||||
<%= l(:label_create_time) %> : <%= format_time(@news.created_on) %>
|
target.eq(2).show();
|
||||||
</div>
|
}
|
||||||
<%= link_to_attachments_course @news %>
|
}
|
||||||
<!--<a href="#" class=" link_file">附件:爱覅俄方if.zip(27.5kB)</a> -->
|
$(function() {
|
||||||
</div>
|
showNormalImage('message_description_<%= @news.id %>');
|
||||||
<div class="cl"></div>
|
});
|
||||||
</div>
|
</script>
|
||||||
|
|
||||||
|
<div class="postRightContainer ml10" onmouseover="$('#message_setting_<%= @news.id%>').show();" onmouseout="$('#message_setting_<%= @news.id%>').hide();">
|
||||||
|
<div class="postThemeContainer">
|
||||||
|
<div class="postDetailPortrait">
|
||||||
|
<%= link_to image_tag(url_to_avatar(@news.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@news.author) %>
|
||||||
|
</div>
|
||||||
|
<div class="postThemeWrap">
|
||||||
|
<% if User.current.allowed_to?(:manage_news, @course)%>
|
||||||
|
<div class="homepagePostSetting" id="message_setting_<%= @news.id%>" style="display: none">
|
||||||
|
<ul>
|
||||||
|
<li class="homepagePostSettingIcon">
|
||||||
|
<ul class="homepagePostSettiongText">
|
||||||
|
<li>
|
||||||
|
<%= link_to(
|
||||||
|
l(:button_edit),
|
||||||
|
{:action => 'edit', :id => @news},
|
||||||
|
:class => 'postOptionLink'
|
||||||
|
) if User.current.allowed_to?(:manage_news, @course) %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= delete_link(
|
||||||
|
news_path(@news),
|
||||||
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
|
:class => 'postOptionLink'
|
||||||
|
) if User.current.allowed_to?(:manage_news, @course) %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<%end%>
|
||||||
|
<div class="postDetailTitle fl">
|
||||||
|
<a href="javascript:void(0);" class="f14 linkGrey4 fb" style="overflow:hidden;">通知: <%= @news.title%></a>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
|
||||||
|
<div class="postDetailCreater">
|
||||||
|
<% if @news.try(:author).try(:realname) == ' ' %>
|
||||||
|
<%= link_to @news.try(:author), user_path(@news.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to @news.try(:author).try(:realname), user_path(@news.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="postDetailDate mb5"><%= format_time( @news.created_on)%></div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="memo-content upload_img break_word" id="message_description_<%= @news.id %>" style="word-break: break-all; word-wrap:break-word;margin-bottom: 0px !important;" >
|
||||||
|
<%= @news.description.html_safe%>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class=" fl" style="width: 600px">
|
||||||
|
<%= link_to_attachments_course @news, :author => false %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="homepagePostReply">
|
||||||
|
<% unless @comments.empty? %>
|
||||||
|
<div class="homepagePostReplyBanner">
|
||||||
|
<div class="homepagePostReplyBannerCount">回复(<%=@comments.count %>)</div>
|
||||||
|
<div class="homepagePostReplyBannerTime"></div>
|
||||||
|
</div>
|
||||||
|
<div class="" id="reply_div_<%=@news.id %>">
|
||||||
|
<% @comments.each_with_index do |reply,i| %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
showNormalImage('reply_message_description_<%= reply.id %>');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div class="homepagePostReplyContainer" onmouseover="$('#reply_edit_menu_<%= reply.id%>').show();" onmouseout="$('#reply_edit_menu_<%= reply.id%>').hide();">
|
||||||
|
<div class="homepagePostReplyPortrait">
|
||||||
|
<%= link_to image_tag(url_to_avatar(reply.author), :width => 33,:height => 33), user_path(reply.author) %>
|
||||||
|
</div>
|
||||||
|
<div class="homepagePostReplyDes">
|
||||||
|
<div class="homepagePostReplyPublisher">
|
||||||
|
<% if reply.try(:author).try(:realname) == ' ' %>
|
||||||
|
<%= link_to reply.try(:author), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to reply.try(:author).try(:realname), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="homepagePostReplyContent upload_img break_word table_maxWidth" id="reply_message_description_<%= reply.id %>">
|
||||||
|
<%= reply.comments.html_safe%>
|
||||||
|
</div>
|
||||||
|
<div style="margin-top: -7px; margin-bottom: 5px">
|
||||||
|
<%= format_time(reply.created_on) %>
|
||||||
|
<div class="fr" id="reply_edit_menu_<%= reply.id%>" style="display: none">
|
||||||
|
<%= link_to_if_authorized_course(
|
||||||
|
l(:button_delete),
|
||||||
|
{:controller => 'comments',
|
||||||
|
:action => 'destroy', :id => @news,
|
||||||
|
:comment_id => reply},
|
||||||
|
:method => :delete,
|
||||||
|
:class => 'fr newsGrey',
|
||||||
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
|
:title => l(:button_delete)
|
||||||
|
) %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p id="reply_message_<%= reply.id%>"></p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
<% if @news.commentable? %>
|
<% if @news.commentable? %>
|
||||||
<div class="msg_box fl">
|
<div class="talkWrapMsg" nhname="about_talk_reply">
|
||||||
<h4><%= l(:label_comment_add) %></h4>
|
<em class="talkWrapArrow"></em>
|
||||||
<%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form") do %>
|
<div class="cl"></div>
|
||||||
|
<div class="talkConIpt ml5 mb10" id="reply<%= @news.id %>">
|
||||||
|
<%= form_for @comment, :url=>{:controller => 'comments', :action => 'create', :id => @news}, :html => {:multipart => true, :id => 'add_comment_form'} do |f| %>
|
||||||
<div class="box" id="news_comment">
|
<div class="box" id="news_comment">
|
||||||
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
|
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
|
||||||
<%= kindeditor_tag :comment, '',:height=>'100',:editor_id =>'comment_editor', :placeholder=>"最多250个字"%>
|
<%= f.kindeditor :comments, :editor_id => 'comment_editor',
|
||||||
|
:owner_id => @comment.nil? ? 0: @comment.id,
|
||||||
|
:owner_type => OwnerTypeHelper::COMMENT,
|
||||||
|
:width => '99%',
|
||||||
|
:height => 100,
|
||||||
|
:minHeight=>100,
|
||||||
|
:input_html => { :id => 'comment_content',
|
||||||
|
:class => 'talk_text fl',
|
||||||
|
:maxlength => 5000 }%>
|
||||||
</div>
|
</div>
|
||||||
<p id="add_reply_news"></p>
|
<p id="add_reply_news"></p>
|
||||||
<p class="mt10">
|
<p class="mt10">
|
||||||
<a href="javascript:void(0)" class="grey_btn fr ml10" onclick="KindEditor.instances[0].html('');">
|
<a href="javascript:void(0)" class="grey_btn fr ml10 mr5" onclick="KindEditor.instances[0].html('');">
|
||||||
<%= l(:label_cancel_with_space) %>
|
<%= l(:label_cancel_with_space) %>
|
||||||
</a>
|
</a>
|
||||||
<a href="javascript:void(0)" class="blue_btn fr" onclick="submitComment();">
|
<a href="javascript:void(0)" class="blue_btn fr" onclick="submitComment();">
|
||||||
|
@ -48,39 +165,9 @@
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<% comments = @comments.reverse %>
|
|
||||||
<% comments.each do |comment| %>
|
|
||||||
<% next if comment.new_record? %>
|
|
||||||
<div class="ping_C mb10">
|
|
||||||
<div><%= link_to image_tag(url_to_avatar(comment.author),:width => 42,:height => 42), user_path(comment.author), :class => "problem_pic fl"%></div>
|
|
||||||
<div class="ping_discon">
|
|
||||||
<div class="ping_distop upload_img break_word list_style">
|
|
||||||
<%= link_to_user_header(comment.author,false,:class => 'c_blue fb fl mb10 ') if comment.respond_to?(:author) %>
|
|
||||||
<span class="c_grey fr">
|
|
||||||
<%= format_time(comment.created_on) %>
|
|
||||||
</span>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<p><%= comment.comments.html_safe %></p>
|
|
||||||
</div>
|
|
||||||
<div class="ping_disfoot">
|
|
||||||
<%= link_to_if_authorized_course image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
|
|
||||||
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<% end if @comments.any? %>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--problem_main end-->
|
|
||||||
<% content_for :header_tags do %>
|
|
||||||
<%= stylesheet_link_tag 'scm' %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<% html_title @news.title -%>
|
|
||||||
|
|
|
@ -1,14 +1,23 @@
|
||||||
<%= content_for(:header_tags) do %>
|
<%= content_for(:header_tags) do %>
|
||||||
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<script type="text/javascript">
|
||||||
<div class="project_r_h">
|
$(function(){
|
||||||
<h2 class="project_h2"><%= l(:label_course_news) %></h2>
|
$("#RSide").removeAttr("id");
|
||||||
</div>
|
$("#Container").css("width","1000px");
|
||||||
<div id="edit-news">
|
$("#news_title").focus();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<div class="homepageRight mt0 ml10">
|
||||||
|
<div class="homepageRightBanner">
|
||||||
|
<div class="NewsBannerName">
|
||||||
|
编辑通知
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<%= labelled_form_for :news, @news, :url => news_path(@news),
|
<%= labelled_form_for :news, @news, :url => news_path(@news),
|
||||||
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
||||||
<%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %>
|
<%#= labelled_form_for :news, :url =>{:controller=>'news',:action => 'new', :course_id => @course.id},
|
||||||
|
:html => {:nhname=>'form',:multipart => true, :id => 'news-form'} do |f| %>
|
||||||
|
<%= render :partial => 'course_news_new', :locals => {:f => f, :news => @news, :edit_mode => true, :course => @course} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div id="preview" class="wiki"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
$("#news_list").html("<%= escape_javascript(render :partial => 'course_news_list', :locals=>{ :newss=>@newss,:obj_pages=>@obj_pages, :obj_count=>@obj_count})%>");
|
<% if @project %>
|
||||||
|
$("#news_list").html("<%= escape_javascript(render :partial => 'course_news_list', :locals=>{ :newss=>@newss,:obj_pages=>@obj_pages, :obj_count=>@obj_count})%>");
|
||||||
|
<% else %>
|
||||||
|
$("#show_more_course_news").replaceWith("<%= escape_javascript( render :partial => 'course_news_detail', :locals =>{:newss => @newss, :page => @page} )%>");
|
||||||
|
<% end %>
|
|
@ -29,7 +29,7 @@
|
||||||
<div class="fl">
|
<div class="fl">
|
||||||
<%=form_tag url_for(:controller => 'organizations', :action => 'join_projects', :organization_id => organization_id),:method => 'post', :id => 'join_projects_form', :remote => true,:class=>"resourcesSearchBox" do %>
|
<%=form_tag url_for(:controller => 'organizations', :action => 'join_projects', :organization_id => organization_id),:method => 'post', :id => 'join_projects_form', :remote => true,:class=>"resourcesSearchBox" do %>
|
||||||
<input type="text" name="projects" placeholder="搜索您已加入的项目的名称" class="searchCourse" />
|
<input type="text" name="projects" placeholder="搜索您已加入的项目的名称" class="searchCourse" />
|
||||||
<div id="search_projects_result_list" class="mb8"></div>
|
<div id="search_projects_result_list" class="mb8 maxHeight100"></div>
|
||||||
<div class="courseSendSubmit">
|
<div class="courseSendSubmit">
|
||||||
<a href="javascript:void(0);" onclick="org_join_projects(<%= organization_id %>);" class="sendSourceText">关联</a>
|
<a href="javascript:void(0);" onclick="org_join_projects(<%= organization_id %>);" class="sendSourceText">关联</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -56,10 +56,11 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if org_act_count == 10 %>
|
<% if org_act_count == 10 %>
|
||||||
<div id="show_more_activities" class="loadMore mt10 f_grey">展开更多<%=link_to "", organization_path(org,:page => page.to_i + 1, :show_homepage =>params[:show_homepage],:type => params[:type]),:id => "more_org_activities_link",:remote => "true",:class => "none" %></div>
|
<!--<div id="show_more_activities" class="loadMore mt10 f_grey">点击展开更多<%#=link_to "", organization_path(org,:page => page.to_i + 1, :show_homepage =>params[:show_homepage],:type => params[:type]),:id => "more_org_activities_link",:remote => "true",:class => "none" %></div>-->
|
||||||
<%#= link_to "点击展开更多",user_activities_path(@user.id,:type => type,:page => page),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
<%= link_to "点击展开更多",organization_path(org,:page => page.to_i + 1, :show_homepage =>params[:show_homepage],:type => params[:type]),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
||||||
|
<!--
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#show_more_activities").mouseover(function(){
|
$("#show_more_activities").mouseover(function(){
|
||||||
|
@ -67,4 +68,4 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>-->
|
||||||
|
|
|
@ -92,11 +92,13 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if forge_acts.count == 10 %>
|
<% if forge_acts.count == 10 %>
|
||||||
<div id="show_more_forge_activities" class="loadMore mt10 f_grey">展开更多<%= link_to "", project_path(@project.id, :type => type, :page => page), :id => "more_forge_activities_link", :remote => "true", :class => "none" %></div>
|
<!--<div id="show_more_forge_activities" class="loadMore mt10 f_grey">点击展开更多<%#= link_to "", project_path(@project.id, :type => type, :page => page), :id => "more_forge_activities_link", :remote => "true", :class => "none" %></div>-->
|
||||||
|
<%= link_to "点击展开更多",project_path(@project.id, :type => type, :page => page),:id => "show_more_forge_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<!--
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("#show_more_forge_activities").mouseover(function () {
|
$("#show_more_forge_activities").mouseover(function () {
|
||||||
$("#more_forge_activities_link").click();
|
$("#more_forge_activities_link").click();
|
||||||
});
|
});
|
||||||
</script>
|
</script>-->
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<div class="commit_content_dec fl" title="<%= @changesets_latest_coimmit.comments %>"><%= @changesets_latest_coimmit.message %></div>
|
<div class="commit_content_dec fl" title="<%= @changesets_latest_coimmit.comments %>"><%= @changesets_latest_coimmit.message %></div>
|
||||||
</span>
|
</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="fl"><div class="fb fontGrey3 mr5 fl"><%=@changesets_latest_coimmit.author_email %></div>
|
<span class="fl"><div class="fb fontGrey3 rep_mail_name mr5 fl"><%=@changesets_latest_coimmit.author_email %></div>
|
||||||
<div class="fl">提交于<%= time_tag(@changesets_latest_coimmit.created_at) %>:</div>
|
<div class="fl">提交于<%= time_tag(@changesets_latest_coimmit.created_at) %>:</div>
|
||||||
<div class="commit_content_dec fl" title="<%= @changesets_latest_coimmit.comments %>"><%= @changesets_latest_coimmit.message %></div>
|
<div class="commit_content_dec fl" title="<%= @changesets_latest_coimmit.comments %>"><%= @changesets_latest_coimmit.message %></div>
|
||||||
</span>
|
</span>
|
||||||
|
@ -52,8 +52,7 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="fr mr5"><font class="fb ml2 mr2 vl_commit">
|
<span class="fr mr5"><font class="fb ml2 mr2 vl_commit">
|
||||||
|
<%=link_to @changesets_all_count, {:action => 'changes', :path => to_path_param(@path), :id => @project, :repository_id => @repository.identifier_param, :rev => @rev,:page=>1 ,:commit_count =>"#{@changesets_all_count}"} %></font> 提交
|
||||||
<%=link_to"提交明细", {:action => 'changes', :path => to_path_param(@path), :id => @project, :repository_id => @repository.identifier_param, :rev => @rev,:page=>1 ,:commit_count =>"#{@changesets_all_count}"} %></font>
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<%= form_for('new_form', :remote => true, :method => :post,:url => add_score_student_work_path(work.id)) do |f|%>
|
<%= form_for('new_form', :remote => true, :method => :post,:url => add_score_student_work_path(work.id),:id=>'add_score_'+work.id.to_s) do |f|%>
|
||||||
<li >
|
<li >
|
||||||
<span class="tit_fb"> 评价:</span>
|
<span class="tit_fb"> 评价:</span>
|
||||||
<%= f.text_area 'user_message', :class => 'hwork_ping_text', :placeholder => l(:text_caracters_maximum,:count=>250),:maxlength => 250 %>
|
<%= f.text_area 'user_message', :class => 'hwork_ping_text', :id => 'score_comment_'+work.id.to_s, :placeholder => l(:text_caracters_maximum,:count=>250),:maxlength => 250 %>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</li>
|
</li>
|
||||||
|
<p id="hint_message_<%=work.id %>" style="margin-left: 65px;"></p>
|
||||||
<li >
|
<li >
|
||||||
<span class="tit_fb mt2"> 评分:</span>
|
<span class="tit_fb mt2"> 评分:</span>
|
||||||
<input type="number" name="score" id="score_<%= work.id%>" value="<%= score.nil? ? 60 : score.score%>" min="0" max="100" size="4" data-units="dollars" />
|
<input type="number" name="score" id="score_<%= work.id%>" value="<%= score.nil? ? 60 : score.score%>" min="0" max="100" size="4" data-units="dollars" />
|
||||||
|
@ -16,7 +17,19 @@
|
||||||
<%= render :partial => 'student_work/student_work_attachment_form', :locals => {:work => work,:score => score} %>
|
<%= render :partial => 'student_work/student_work_attachment_form', :locals => {:work => work,:score => score} %>
|
||||||
</div>
|
</div>
|
||||||
<%end%>
|
<%end%>
|
||||||
<a href="javascript:void(0);" class="blue_n_btn fr evaluation_submit" onclick="$(this).parent().parent().submit();$('#about_hwork_<%= work.id%>').html('');">提交</a>
|
<a href="javascript:void(0);" id="work_submit_<%= work.id %>" class="blue_n_btn fr evaluation_submit" onclick="score_submit('<%=work.id %>');">提交</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</li>
|
</li>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function score_submit(id){
|
||||||
|
if ($.trim($('#score_comment_'+id).val()) == "") {
|
||||||
|
$('#hint_message_'+id).html("为了对其他学生的作品负责,请您务必填写评语");
|
||||||
|
$("#hint_message_"+id).css('color','#ff0000');
|
||||||
|
$("#score_comment_"+id).focus();
|
||||||
|
} else {
|
||||||
|
$("#work_submit_"+id).parent().parent().submit();
|
||||||
|
$('#about_hwork_'+id).html('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -115,9 +115,21 @@
|
||||||
$('#ajax-modal').parent().addClass("resourceUploadPopup");
|
$('#ajax-modal').parent().addClass("resourceUploadPopup");
|
||||||
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
||||||
}
|
}
|
||||||
function submit_files(){
|
function regex_des() {
|
||||||
|
if ($.trim($("#attachment_des").val()) == "") {
|
||||||
|
$("#hint_message").text("附件描述不能为空");
|
||||||
|
$("#hint_message").css('color','#ff0000');
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
$("#hint_message").text("");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function submit_revise_files(){
|
||||||
|
if (regex_des()) {
|
||||||
$("#upload_form").submit();
|
$("#upload_form").submit();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
function closeModal(){
|
function closeModal(){
|
||||||
hideModal($(".uploadBoxContainer"));
|
hideModal($(".uploadBoxContainer"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,12 @@
|
||||||
<div class="mb10" id="revise_attachment_div_<%=revise_attachment.id %>">
|
<div class="mb10" id="revise_attachment_div_<%=revise_attachment.id %>">
|
||||||
<span class="tit_fb"> 追加附件:</span>
|
<span class="tit_fb"> 追加附件:</span>
|
||||||
<%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 2} %>
|
<%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 2} %>
|
||||||
<span class="tit_fb">追加时间:</span><%=format_time revise_attachment.created_on.to_s %> (<%=revise_attachment_status @homework,revise_attachment %>)
|
<span class="tit_fb">追加时间:</span><%=format_time revise_attachment.created_on.to_s %> (<%=revise_attachment_status @homework,revise_attachment %>)<br />
|
||||||
|
<% unless revise_attachment.description == "" %>
|
||||||
|
<span class="tit_fb">追加理由:</span><p class="showHworkP"><%=revise_attachment.description %></p>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if work.user == User.current %>
|
<% if work.user == User.current %>
|
||||||
<div class="resubAtt mb15">
|
<div class="resubAtt mb15">
|
||||||
|
@ -18,10 +22,14 @@
|
||||||
<div class="mb10" id="revise_attachment_div_<%=revise_attachment.id %>">
|
<div class="mb10" id="revise_attachment_div_<%=revise_attachment.id %>">
|
||||||
<span class="tit_fb"> 追加附件:</span>
|
<span class="tit_fb"> 追加附件:</span>
|
||||||
<%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 1} %>
|
<%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 1} %>
|
||||||
<span class="tit_fb">追加时间:</span><%=format_time revise_attachment.created_on.to_s %>
|
<span class="tit_fb">追加时间:</span><%=format_time revise_attachment.created_on.to_s %><br />
|
||||||
|
<% unless revise_attachment.description == "" %>
|
||||||
|
<span class="tit_fb">追加理由:</span><p class="showHworkP"><%=revise_attachment.description %></p>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="mb10">
|
<div class="cl"></div>
|
||||||
|
<div class="mb10 mt5">
|
||||||
<a href="javascript:void(0);" onclick="show_upload();" class="blueCir ml5" title="请选择文件上传">上传附件</a>
|
<a href="javascript:void(0);" onclick="show_upload();" class="blueCir ml5" title="请选择文件上传">上传附件</a>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -113,9 +113,21 @@
|
||||||
$('#ajax-modal').parent().addClass("resourceUploadPopup");
|
$('#ajax-modal').parent().addClass("resourceUploadPopup");
|
||||||
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
||||||
}
|
}
|
||||||
function submit_files(){
|
function regex_des() {
|
||||||
|
if ($.trim($("#attachment_des").val()) == "") {
|
||||||
|
$("#hint_message").text("附件描述不能为空");
|
||||||
|
$("#hint_message").css('color','#ff0000');
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
$("#hint_message").text("");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function submit_revise_files(){
|
||||||
|
if (regex_des()) {
|
||||||
$("#upload_form").submit();
|
$("#upload_form").submit();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
function closeModal(){
|
function closeModal(){
|
||||||
hideModal($(".uploadBoxContainer"));
|
hideModal($(".uploadBoxContainer"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="uploadBox" id="uploadReviseBox">
|
<div class="uploadBox" id="uploadReviseBox">
|
||||||
<input type="hidden" name="attachment_type" value="7">
|
<input type="hidden" name="attachment_type" value="7">
|
||||||
<a href="javascript:void(0);" class="uploadIcon f14" name="button" id="choose_revise_attach" onclick="_file.click();" onmouseover="" style="<%= ie8? ? 'display:none' : ''%>">
|
<a href="javascript:void(0);" class="uploadIcon f14" name="button" id="choose_revise_attach" onclick="_file.click();" style="<%= ie8? ? 'display:none' : ''%>">
|
||||||
<span class="chooseFile">选择文件</span></a>
|
<span class="chooseFile">选择文件</span></a>
|
||||||
<%= file_field_tag 'attachments[dummy][file]',
|
<%= file_field_tag 'attachments[dummy][file]',
|
||||||
:id => '_file',
|
:id => '_file',
|
||||||
|
@ -37,9 +37,16 @@
|
||||||
<div class="uploadResourceName">最多只能上传一个小于<span class="c_red">50MB</span>的附件</div>
|
<div class="uploadResourceName">最多只能上传一个小于<span class="c_red">50MB</span>的附件</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
<div class="mt10">
|
||||||
|
<textarea class="reUploadDetail" id="attachment_des" name="description" placeholder="请在此输入您追加附件的理由(必填)"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<p id="hint_message"></p>
|
||||||
|
<div class="cl"></div>
|
||||||
<div style="margin-top: 10px" >
|
<div style="margin-top: 10px" >
|
||||||
<div class="courseSendSubmit">
|
<div class="courseSendSubmit">
|
||||||
<%= submit_tag '确定',:onclick=>'submit_files();',:onfocus=>'this.blur()',:id=>'upload_files_submit_btn',:class=>'sendSourceText' %>
|
<a href="javascript:void(0);" id="upload_files_submit_btn" class="sendSourceText" onclick="submit_revise_files();">确定</a>
|
||||||
|
<%#= submit_tag '确定',:onclick=>'submit_revise_files();',:onfocus=>'this.blur()',:id=>'upload_files_submit_btn',:class=>'sendSourceText' %>
|
||||||
</div>
|
</div>
|
||||||
<div class="courseSendCancel">
|
<div class="courseSendCancel">
|
||||||
<a href="javascript:void(0);" id="upload_files_cancle_btn" class="sendSourceText" onclick="closeModal();">取消</a>
|
<a href="javascript:void(0);" id="upload_files_cancle_btn" class="sendSourceText" onclick="closeModal();">取消</a>
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div class="ni_btn mt10">
|
<div class="ni_btn mt10">
|
||||||
<a href="javascript:" class="tijiao" onclick="clickOK();" style="margin-bottom: 15px;margin-top:15px;" >
|
<a href="javascript:" class="tijiao" onclick="clickOK();" style="margin-bottom: 15px;margin-top:15px;" >
|
||||||
确 定
|
确 定
|
||||||
</a>
|
</a>
|
||||||
<%= link_to("重试", retry_work_student_work_path(@student_work.id),:class => "tijiao",:style =>"margin-bottom: 15px;margin-top:15px;",:remote => true)%>
|
<%= link_to("重 试", retry_work_student_work_path(@student_work.id),:class => "tijiao",:style =>"margin-bottom: 15px;margin-top:15px;",:remote => true)%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -135,7 +135,11 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="grey_homework_btn_cir ml5">匿评已禁用</span>
|
<span class="grey_homework_btn_cir ml5">匿评已禁用</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") >= Time.now.strftime("%Y-%m-%d")%>
|
||||||
<span class="green_homework_btn_cir ml5">作品提交中</span>
|
<span class="green_homework_btn_cir ml5">作品提交中</span>
|
||||||
|
<% elsif Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.now.strftime("%Y-%m-%d") %>
|
||||||
|
<span class="red_homework_btn_cir ml5">作品补交中</span>
|
||||||
|
<% end %>
|
||||||
<% elsif @homework.homework_detail_manual.comment_status == 2%>
|
<% elsif @homework.homework_detail_manual.comment_status == 2%>
|
||||||
<% if @homework.anonymous_comment == 0%>
|
<% if @homework.anonymous_comment == 0%>
|
||||||
<span class="green_homework_btn_cir ml5">匿评中</span>
|
<span class="green_homework_btn_cir ml5">匿评中</span>
|
||||||
|
|
|
@ -102,18 +102,22 @@
|
||||||
<div class="homepagePostDeadline">
|
<div class="homepagePostDeadline">
|
||||||
迟交扣分:<%= activity.late_penalty%>分
|
迟交扣分:<%= activity.late_penalty%>分
|
||||||
</div>
|
</div>
|
||||||
|
<% if activity.anonymous_comment == 0%>
|
||||||
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_start_time_<%=user_activity_id %>">
|
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_start_time_<%=user_activity_id %>">
|
||||||
匿评开启时间:<%= activity.homework_detail_manual.evaluation_start%> 00:00
|
匿评开启时间:<%= activity.homework_detail_manual.evaluation_start%> 00:00
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div>
|
<div>
|
||||||
<div class="homepagePostDeadline">
|
<div class="homepagePostDeadline">
|
||||||
缺评扣分:<%= activity.homework_detail_manual.absence_penalty%>分/作品
|
缺评扣分:<%= activity.homework_detail_manual.absence_penalty%>分/作品
|
||||||
</div>
|
</div>
|
||||||
|
<% if activity.anonymous_comment == 0%>
|
||||||
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_end_time_<%=user_activity_id %>">
|
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_end_time_<%=user_activity_id %>">
|
||||||
匿评关闭时间:<%= activity.homework_detail_manual.evaluation_end%> 23:59
|
匿评关闭时间:<%= activity.homework_detail_manual.evaluation_end%> 23:59
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -123,31 +127,34 @@
|
||||||
<% if activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 1 %>
|
<% if activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 1 %>
|
||||||
<div class="mt10">
|
<div class="mt10">
|
||||||
<% projects = activity.student_work_projects.where("is_leader = 1") %>
|
<% projects = activity.student_work_projects.where("is_leader = 1") %>
|
||||||
<div class="fl mr5 fontGrey3">
|
<div class="mb10 mr5 fontGrey3">
|
||||||
已关联项目:<%='各小组尚未将小组项目关联到本次作业。' if projects.empty? %>
|
已关联项目:<%='各小组尚未将小组项目关联到本次作业。' if projects.empty? %>
|
||||||
</div>
|
</div>
|
||||||
<% projects.each do |pro| %>
|
<% projects.each do |pro| %>
|
||||||
<% project = Project.find pro.project_id %>
|
<% project = Project.find pro.project_id %>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#project_img_<%=project.id %>").mouseover(function(){
|
$("#project_img_<%=project.id %>_<%=activity.id %>").mouseover(function(){
|
||||||
$("#relatePInfo_<%=project.id %>").css("display","block");
|
$("#relatePInfo_<%=project.id %>_<%=activity.id %>").css("display","block");
|
||||||
}).mouseout(function(){
|
}).mouseout(function(){
|
||||||
$("#relatePInfo_<%=project.id %>").css("display","none");
|
$("#relatePInfo_<%=project.id %>_<%=activity.id %>").css("display","none");
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div class="mr20 mb10 fl">
|
|
||||||
|
<div class="mr20 mb10 fl w80" style="text-align: center;">
|
||||||
<% if project.is_public || User.current.member_of?(project) || User.current.admin? %>
|
<% if project.is_public || User.current.member_of?(project) || User.current.admin? %>
|
||||||
<%= link_to image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius"),project_path(project.id,:host=>Setting.host_name),:id=>"project_img_"+project.id.to_s,:alt =>"项目头像" %>
|
<%= link_to image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius"),project_path(project.id,:host=>Setting.host_name),:id=>"project_img_"+project.id.to_s+"_"+activity.id.to_s,:alt =>"项目头像" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius",:id=>"project_img_"+project.id.to_s,:alt =>"项目头像") %>
|
<%= image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius",:id=>"project_img_"+project.id.to_s+"_"+activity.id.to_s,:alt =>"项目头像") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="relatePInfo" id="relatePInfo_<%=project.id %>">
|
|
||||||
项目名称:<%=project.name %><br />
|
|
||||||
创建者:<%=(User.find project.user_id).show_name %>(组长)<br />
|
|
||||||
<% time=project.updated_on %>
|
<% time=project.updated_on %>
|
||||||
<% time=ForgeActivity.where("project_id=?",project.id).last.updated_at if ForgeActivity.where("project_id=?",project.id).last %>
|
<% time=ForgeActivity.where("project_id=?",project.id).last.updated_at if ForgeActivity.where("project_id=?",project.id).last %>
|
||||||
|
<p><span class="captainName"><%=(User.find project.user_id).show_name %></span><span style="vertical-align: top;">(组长)</span></p>
|
||||||
|
<p><%=time_from_now time %></p>
|
||||||
|
<div class="relatePInfo" id="relatePInfo_<%=project.id %>_<%=activity.id %>">
|
||||||
|
项目名称:<%=project.name %><br />
|
||||||
|
创建者:<%=(User.find project.user_id).show_name %>(组长)<br />
|
||||||
更新时间:<%=time_from_now time %>
|
更新时间:<%=time_from_now time %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
<%= format_time(attachment.created_on) %>
|
<%= format_time(attachment.created_on) %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -109,12 +109,15 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if user_activities.count == 10%>
|
<% if user_activities.count == 10%>
|
||||||
<div id="show_more_activities" class="loadMore mt10 f_grey">展开更多<%=link_to "", user_activities_path(@user.id,:type => type,:page => page),:id => "more_activities_link",:remote => "true",:class => "none" %></div>
|
<!--
|
||||||
<%#= link_to "点击展开更多",user_activities_path(@user.id,:type => type,:page => page),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
<div id="show_more_activities" class="loadMore mt10 f_grey">点击展开更多<%#=link_to "", user_activities_path(@user.id,:type => type,:page => page),:id => "more_activities_link",:remote => "true",:class => "none" %></div>
|
||||||
|
-->
|
||||||
|
<%= link_to "点击展开更多",user_activities_path(@user.id,:type => type,:page => page),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
||||||
|
<!--
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("#show_more_activities").mouseover(function(){
|
$("#show_more_activities").mouseover(function(){
|
||||||
$("#more_activities_link").click();
|
$("#more_activities_link").click();
|
||||||
});
|
});
|
||||||
</script>
|
</script>-->
|
||||||
|
|
|
@ -107,18 +107,22 @@
|
||||||
<div class="homepagePostDeadline">
|
<div class="homepagePostDeadline">
|
||||||
迟交扣分:<%= homework_common.late_penalty%>分
|
迟交扣分:<%= homework_common.late_penalty%>分
|
||||||
</div>
|
</div>
|
||||||
|
<% if homework_common.anonymous_comment == 0%>
|
||||||
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_start_time_<%=homework_common.id %>">
|
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_start_time_<%=homework_common.id %>">
|
||||||
匿评开启时间:<%= homework_common.homework_detail_manual.evaluation_start%> 00:00
|
匿评开启时间:<%= homework_common.homework_detail_manual.evaluation_start%> 00:00
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div>
|
<div>
|
||||||
<div class="homepagePostDeadline">
|
<div class="homepagePostDeadline">
|
||||||
缺评扣分:<%= homework_common.homework_detail_manual.absence_penalty%>分/作品
|
缺评扣分:<%= homework_common.homework_detail_manual.absence_penalty%>分/作品
|
||||||
</div>
|
</div>
|
||||||
|
<% if homework_common.anonymous_comment == 0%>
|
||||||
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_end_time_<%=homework_common.id %>">
|
<div class="homepagePostDeadline" style="float: right; margin-right: 220px;" id="evaluation_end_time_<%=homework_common.id %>">
|
||||||
匿评关闭时间:<%= homework_common.homework_detail_manual.evaluation_end%> 23:59
|
匿评关闭时间:<%= homework_common.homework_detail_manual.evaluation_end%> 23:59
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -135,24 +139,26 @@
|
||||||
<% project = Project.find pro.project_id %>
|
<% project = Project.find pro.project_id %>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#project_img_<%=project.id %>").mouseover(function(){
|
$("#project_img_<%=project.id %>_<%=homework_common.id %>").mouseover(function(){
|
||||||
$("#relatePInfo_<%=project.id %>").css("display","block");
|
$("#relatePInfo_<%=project.id %>_<%=homework_common.id %>").css("display","block");
|
||||||
}).mouseout(function(){
|
}).mouseout(function(){
|
||||||
$("#relatePInfo_<%=project.id %>").css("display","none");
|
$("#relatePInfo_<%=project.id %>_<%=homework_common.id %>").css("display","none");
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div class="mr20 mb10 fl">
|
<div class="mr20 mb10 fl w80" style="text-align: center;">
|
||||||
<% if project.is_public || User.current.member_of?(project) || User.current.admin? %>
|
<% if project.is_public || User.current.member_of?(project) || User.current.admin? %>
|
||||||
<%= link_to image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius"),project_path(project.id,:host=>Setting.host_name),:id=>"project_img_"+project.id.to_s,:alt =>"项目头像" %>
|
<%= link_to image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius"),project_path(project.id,:host=>Setting.host_name),:id=>"project_img_"+project.id.to_s+"_"+homework_common.id.to_s,:alt =>"项目头像" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius",:id=>"project_img_"+project.id.to_s,:alt =>"项目头像") %>
|
<%= image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius",:id=>"project_img_"+project.id.to_s+"_"+homework_common.id.to_s,:alt =>"项目头像") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="relatePInfo" id="relatePInfo_<%=project.id %>">
|
|
||||||
项目名称:<%=project.name %><br />
|
|
||||||
创建者:<%=(User.find project.user_id).show_name %>(组长)<br />
|
|
||||||
<% time=project.updated_on %>
|
<% time=project.updated_on %>
|
||||||
<% time=ForgeActivity.where("project_id=?",project.id).last.updated_at if ForgeActivity.where("project_id=?",project.id).last %>
|
<% time=ForgeActivity.where("project_id=?",project.id).last.updated_at if ForgeActivity.where("project_id=?",project.id).last %>
|
||||||
|
<p><span class="captainName"><%=(User.find project.user_id).show_name %></span><span style="vertical-align: top;">(组长)</span></p>
|
||||||
|
<p><%=time_from_now time %></p>
|
||||||
|
<div class="relatePInfo" id="relatePInfo_<%=project.id %>_<%=homework_common.id %>">
|
||||||
|
项目名称:<%=project.name %><br />
|
||||||
|
创建者:<%=(User.find project.user_id).show_name %>(组长)<br />
|
||||||
更新时间:<%=time_from_now time %>
|
更新时间:<%=time_from_now time %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,11 +4,23 @@
|
||||||
<%= javascript_include_tag 'homework','baiduTemplate' %>
|
<%= javascript_include_tag 'homework','baiduTemplate' %>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
if($.trim($("#anonymous_comment").val()) == 1) {
|
||||||
|
$("#anonymous_comment").attr('checked',false);
|
||||||
|
} else {
|
||||||
|
$("#anonymous_comment").attr('checked',true);
|
||||||
|
}
|
||||||
$("#BluePopupBox a.BlueCirBtn").click();
|
$("#BluePopupBox a.BlueCirBtn").click();
|
||||||
<% if edit_mode && homework.is_group_homework? %>
|
<% if edit_mode && homework.is_group_homework? %>
|
||||||
$("#GroupPopupBox a.group_btn").click();
|
$("#GroupPopupBox a.group_btn").click();
|
||||||
<% end %>
|
<% end %>
|
||||||
});
|
});
|
||||||
|
function checked_val() {
|
||||||
|
if ($("#anonymous_comment").is(":checked")) {
|
||||||
|
$("#anonymous_comment").val(0);
|
||||||
|
} else {
|
||||||
|
$("#anonymous_comment").val(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
@ -39,6 +51,12 @@
|
||||||
<%= calendar_for('homework_publish_time')%>
|
<%= calendar_for('homework_publish_time')%>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<% if !edit_mode || edit_mode && homework.homework_detail_manual.comment_status < 2 %>
|
||||||
|
<div class="fl f14 ml10" style="margin-top: 4px;">
|
||||||
|
<input type="checkbox" name="homework_common[anonymous_comment]" checked="checked" value="<%=edit_mode ? homework.anonymous_comment : 0 %>" id="anonymous_comment"/>
|
||||||
|
<span class="f14 c_grey mr10">启用匿评</span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p id="homework_end_time_span" class="c_red mt5"></p>
|
<p id="homework_end_time_span" class="c_red mt5"></p>
|
||||||
|
@ -68,12 +86,12 @@
|
||||||
|
|
||||||
<div class="mt5">
|
<div class="mt5">
|
||||||
<% if edit_mode %>
|
<% if edit_mode %>
|
||||||
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="submit_homework('edit_homework_common_<%= homework.id%>');">确定</a>
|
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="checked_val();submit_homework('edit_homework_common_<%= homework.id%>');">确定</a>
|
||||||
<span class="fr mr10 mt3">或</span>
|
<span class="fr mr10 mt3">或</span>
|
||||||
<%#= link_to "取消",user_homeworks_user_path(User.current.id),:class => "fr mr10 mt3"%>
|
<%#= link_to "取消",user_homeworks_user_path(User.current.id),:class => "fr mr10 mt3"%>
|
||||||
<a href="javascript:void(0);" class="fr mr10 mt3" onclick="cancel_edit();">取消</a>
|
<a href="javascript:void(0);" class="fr mr10 mt3" onclick="cancel_edit();">取消</a>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="submit_homework('new_homework_common');">发送</a>
|
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="checked_val();submit_homework('new_homework_common');">发送</a>
|
||||||
<span class="fr mr10 mt3">或</span>
|
<span class="fr mr10 mt3">或</span>
|
||||||
<a href="javascript:void(0);" class=" fr mr10 mt3" onclick="reset_homework();">取消</a>
|
<a href="javascript:void(0);" class=" fr mr10 mt3" onclick="reset_homework();">取消</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<%= form_tag(words_create_reply_path, :remote => true,:id=>"form_#{journal.id}") do %>
|
<%= form_tag(words_create_reply_path, :remote => true) do %>
|
||||||
<%= text_area_tag 'user_notes', "", :class => 'w520 h50 mb5',
|
<%= text_area_tag 'user_notes', "", :class => 'w520 h50 mb5',
|
||||||
:style => "resize: none;overflow: hidden;",:rows => 4,
|
:style => "resize: none;overflow: hidden;",:rows => 4,
|
||||||
:placeholder => l(:label_feedback_respond_content)#,
|
:placeholder => l(:label_feedback_respond_content)#,
|
||||||
|
@ -13,20 +13,6 @@
|
||||||
|
|
||||||
<div class="fl" style="padding-top:5px;" nhname="toolbar_container"></div>
|
<div class="fl" style="padding-top:5px;" nhname="toolbar_container"></div>
|
||||||
<%= submit_tag l(:button_feedback_respond), :name => nil ,
|
<%= submit_tag l(:button_feedback_respond), :name => nil ,
|
||||||
:class => "reply_btn" ,:onclick=>"form_sub_#{ journal.id}($(this),event)"%>
|
:class => "reply_btn"%>
|
||||||
<input nhname="cancel_btn" type="button" style="display:none;"/>
|
<input nhname="cancel_btn" type="button" style="display:none;"/>
|
||||||
<% end %>
|
<% end %>
|
||||||
<script>
|
|
||||||
var flag_<%= journal.id %> = false;
|
|
||||||
function form_sub_<%= journal.id%>(dom,event){
|
|
||||||
if(flag_<%= journal.id %> == true){
|
|
||||||
//dom.attr('disabled','disabled');
|
|
||||||
return;
|
|
||||||
}else{
|
|
||||||
//dom.removeAttr('disabled');
|
|
||||||
}
|
|
||||||
flag_<%= journal.id %> = true;
|
|
||||||
$("#form_<%= journal.id%>").submit();
|
|
||||||
event.preventDefault();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -703,6 +703,7 @@ zh:
|
||||||
label_search_by_login: 登录名
|
label_search_by_login: 登录名
|
||||||
label_search_by_name: 名字
|
label_search_by_name: 名字
|
||||||
label_search_by_email: 邮箱
|
label_search_by_email: 邮箱
|
||||||
|
label_search_by_occupation: 单位
|
||||||
label_result_plural: 结果
|
label_result_plural: 结果
|
||||||
label_all_words: 所有单词
|
label_all_words: 所有单词
|
||||||
label_wiki: Wiki
|
label_wiki: Wiki
|
||||||
|
|
|
@ -438,6 +438,8 @@ RedmineApp::Application.routes.draw do
|
||||||
|
|
||||||
post '/courses/:id/course_activity', :to => 'courses#show', :as => 'course_activity'
|
post '/courses/:id/course_activity', :to => 'courses#show', :as => 'course_activity'
|
||||||
get '/boards/:id/boards_topic', :to =>'boards#show', :as => 'boards_topic'
|
get '/boards/:id/boards_topic', :to =>'boards#show', :as => 'boards_topic'
|
||||||
|
match 'courses/:course_id/news/index', :to => 'news#index', :via => [:get, :post], :as => 'new_course_news'
|
||||||
|
match 'courses/:course_id/news/new', :to => 'news#new', :via => [:get, :post]
|
||||||
|
|
||||||
#added by young
|
#added by young
|
||||||
resources :users do
|
resources :users do
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
class DeleteJournalsMessage < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
count = JournalsForMessage.all.count / 30 + 2
|
||||||
|
transaction do
|
||||||
|
for i in 1 ... count do
|
||||||
|
JournalsForMessage.page(i).per(30).each do |message|
|
||||||
|
if !message.m_parent_id.nil? and message.parent.nil?
|
||||||
|
message.destroy
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20151218110033) do
|
ActiveRecord::Schema.define(:version => 20151224090313) do
|
||||||
|
|
||||||
create_table "activities", :force => true do |t|
|
create_table "activities", :force => true do |t|
|
||||||
t.integer "act_id", :null => false
|
t.integer "act_id", :null => false
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.1 KiB |
|
@ -1209,7 +1209,7 @@ a:hover.blueCir{ background:#3598db; color:#fff;}
|
||||||
.proHelp {background:url(/images/course/hwork_icon.png) -5px -124px no-repeat; display:inline-block; width:15px; height:15px; display:inline-block;}
|
.proHelp {background:url(/images/course/hwork_icon.png) -5px -124px no-repeat; display:inline-block; width:15px; height:15px; display:inline-block;}
|
||||||
.hworkPrName {width:110px; max-width:110px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; float:left; height:18px; line-height:18px; font-size:12px; color:#888888; text-align:center;}
|
.hworkPrName {width:110px; max-width:110px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; float:left; height:18px; line-height:18px; font-size:12px; color:#888888; text-align:center;}
|
||||||
.mr150 {margin-right:150px;}
|
.mr150 {margin-right:150px;}
|
||||||
.relatePInfo {position:absolute; background-color:#ffffff; padding:3px 8px; white-space:nowrap; box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5); z-index:999; color:#585858; cursor:pointer; display:none;}
|
.relatePInfo {text-align: left; position:absolute; background-color:#ffffff; padding:3px 8px; white-space:nowrap; box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5); z-index:999; color:#585858; cursor:pointer; display:none;}
|
||||||
|
|
||||||
/*上传资源弹窗*/
|
/*上传资源弹窗*/
|
||||||
.resourceUploadPopup {width:400px; height:auto; border:3px solid #269ac9 !important; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-200px; z-index:1000;}
|
.resourceUploadPopup {width:400px; height:auto; border:3px solid #269ac9 !important; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-200px; z-index:1000;}
|
||||||
|
@ -1227,6 +1227,7 @@ a.uploadIcon {background:url(images/resource_icon_list.png) 8px -60px no-repeat;
|
||||||
.mb10 {margin-bottom: 10px}
|
.mb10 {margin-bottom: 10px}
|
||||||
.mb15 {margin-bottom: 15px}
|
.mb15 {margin-bottom: 15px}
|
||||||
div.disable_link {background-color: #c1c1c1 !important;}
|
div.disable_link {background-color: #c1c1c1 !important;}
|
||||||
|
.reUploadDetail{border:1px solid #dddddd; float:left; resize:none; width:400px; height:80px; overflow-y:auto;outline: none;}
|
||||||
|
|
||||||
/*新课程资源库*/
|
/*新课程资源库*/
|
||||||
.reCon{ margin:5px; width:710px;}
|
.reCon{ margin:5px; width:710px;}
|
||||||
|
|
|
@ -119,6 +119,7 @@ a.linkGrey6:hover {color:#ffffff !important;}
|
||||||
.w50 {width:50px;}
|
.w50 {width:50px;}
|
||||||
.w60{ width:60px;}
|
.w60{ width:60px;}
|
||||||
.w70{ width:70px;}
|
.w70{ width:70px;}
|
||||||
|
.w80{ width:80px;}
|
||||||
.w90{ width:90px;}
|
.w90{ width:90px;}
|
||||||
.w210{ width:210px;}
|
.w210{ width:210px;}
|
||||||
.w150{ width:150px;}
|
.w150{ width:150px;}
|
||||||
|
@ -860,7 +861,8 @@ a.postRouteLink:hover {text-decoration:underline;}
|
||||||
.footerAboutContainer {width:auto; border-bottom:1px solid #efefef;}
|
.footerAboutContainer {width:auto; border-bottom:1px solid #efefef;}
|
||||||
.footerAbout{ width:365px; margin:0 auto;height:35px; line-height:35px; padding-top: 10px; }
|
.footerAbout{ width:365px; margin:0 auto;height:35px; line-height:35px; padding-top: 10px; }
|
||||||
.languageBox {width:55px; height:20px; margin-left:5px; outline:none; color:#666666; border:1px solid #d9d9d9;}
|
.languageBox {width:55px; height:20px; margin-left:5px; outline:none; color:#666666; border:1px solid #d9d9d9;}
|
||||||
.departments{ width:890px; margin:5px auto 0 auto;height:30px;line-height:30px;}
|
.departments{ width:855px; margin:5px auto;height:40px;line-height:40px;}
|
||||||
|
.departments li {height:40px; line-height:40px;}
|
||||||
.copyright{ width:375px; margin:0 auto;height:20px;line-height:20px;}
|
.copyright{ width:375px; margin:0 auto;height:20px;line-height:20px;}
|
||||||
a.f_grey {color:#666666;}
|
a.f_grey {color:#666666;}
|
||||||
a.f_grey:hover {color:#000000;}
|
a.f_grey:hover {color:#000000;}
|
||||||
|
@ -1381,10 +1383,12 @@ a:hover.blueCir{ background:#3598db; color:#fff;}
|
||||||
.proHelp {background:url(/images/course/hwork_icon.png) -5px -124px no-repeat; display:inline-block; width:15px; height:15px; display:inline-block;}
|
.proHelp {background:url(/images/course/hwork_icon.png) -5px -124px no-repeat; display:inline-block; width:15px; height:15px; display:inline-block;}
|
||||||
.hworkPrName {width:110px; max-width:110px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; float:left; height:18px; line-height:18px; font-size:12px; color:#888888; text-align:center;}
|
.hworkPrName {width:110px; max-width:110px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; float:left; height:18px; line-height:18px; font-size:12px; color:#888888; text-align:center;}
|
||||||
.mr150 {margin-right:150px;}
|
.mr150 {margin-right:150px;}
|
||||||
|
.captainName {max-width:40px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: inline-block;}
|
||||||
|
|
||||||
/* @功能 定义 */
|
/* @功能 定义 */
|
||||||
span.at {color:#269ac9;}
|
span.at {color:#269ac9;}
|
||||||
|
|
||||||
.relatePInfo {position:absolute; background-color:#ffffff; padding:3px 8px; white-space:nowrap; box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5); z-index:999; color:#585858; cursor:pointer; display:none;}
|
.relatePInfo {text-align: left; position:absolute; background-color:#ffffff; padding:3px 8px; white-space:nowrap; box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5); z-index:999; color:#585858; cursor:pointer; display:none;}
|
||||||
/*问题状态图片*/
|
/*问题状态图片*/
|
||||||
.issues{ background:url(../images/public_icon.png) -66px 5px no-repeat; width:18px; height:21px;}
|
.issues{ background:url(../images/public_icon.png) -66px 5px no-repeat; width:18px; height:21px;}
|
||||||
.duty{ background:url(../images/public_icon.png) -66px -18px no-repeat; width:18px; height:21px;}
|
.duty{ background:url(../images/public_icon.png) -66px -18px no-repeat; width:18px; height:21px;}
|
||||||
|
|
|
@ -67,7 +67,8 @@ a.linkGrey8:hover {color:#585858;}
|
||||||
.orgListRow {border-bottom:1px solid #e4e4e4; padding-bottom:5px; color:#555555;}
|
.orgListRow {border-bottom:1px solid #e4e4e4; padding-bottom:5px; color:#555555;}
|
||||||
.orgMenuArrow {background:url(../images/nav_icon.png) -10px -165px no-repeat; position:relative; display:inline-block; width:20px; height:30px;}
|
.orgMenuArrow {background:url(../images/nav_icon.png) -10px -165px no-repeat; position:relative; display:inline-block; width:20px; height:30px;}
|
||||||
.orgMenuArrow2 {background:url(../images/nav_icon.png) -10px -132px no-repeat; position:relative; display:inline-block; width:20px; height:30px;}
|
.orgMenuArrow2 {background:url(../images/nav_icon.png) -10px -132px no-repeat; position:relative; display:inline-block; width:20px; height:30px;}
|
||||||
.org_login_list{ border:1px solid #eaeaea; background:#fff; padding-left:10px; padding-bottom:10px; padding-top:8px; width:60px; left:-53px; position:absolute; z-index:9999; line-height:2; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); margin-top: 30px;}
|
.org_login_list{ border:1px solid #eaeaea; background:#fff; padding-left:10px; padding-bottom:10px; padding-top:8px; width:60px; left:-53px;
|
||||||
|
position:absolute; z-index:9999; line-height:2; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); margin-top: 30px;}
|
||||||
#orgUserName {max-width:50px; overflow:hidden; white-space: nowrap; text-overflow: ellipsis; display:inline-block;}
|
#orgUserName {max-width:50px; overflow:hidden; white-space: nowrap; text-overflow: ellipsis; display:inline-block;}
|
||||||
|
|
||||||
.orgListStatus {width:55px; float:left;}
|
.orgListStatus {width:55px; float:left;}
|
||||||
|
@ -85,4 +86,6 @@ a.linkGrey8:hover {color:#585858;}
|
||||||
.re_con_top span{ color:#999999; font-weight:bold;}
|
.re_con_top span{ color:#999999; font-weight:bold;}
|
||||||
ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; }
|
ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; }
|
||||||
|
|
||||||
.popbox_polls{width:300px;height:100px;position:fixed !important;z-index:100;left:50%;top:50%;margin:-100px 0 0 -150px; background:#fff; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; box-shadow:0px 0px 8px #194a81; overflow:auto;}
|
.popbox_polls{width:300px;height:100px;position:fixed !important;z-index:100;left:50%;top:50%;margin:-100px 0 0 -150px;
|
||||||
|
background:#fff; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; box-shadow:0px 0px 8px #194a81; overflow:auto;}
|
||||||
|
.org_login_list a {color:#269ac9;}
|
|
@ -1092,3 +1092,6 @@ a:hover.link_file_a{ background:url(../images/pic_file.png) 0 -25px no-repeat; c
|
||||||
.support{ background:url(../images/public_icon.png) -66px -45px no-repeat; width:18px; height:21px;}
|
.support{ background:url(../images/public_icon.png) -66px -45px no-repeat; width:18px; height:21px;}
|
||||||
.function{ background:url(../images/public_icon.png) -66px -70px no-repeat; width:18px; height:21px;}
|
.function{ background:url(../images/public_icon.png) -66px -70px no-repeat; width:18px; height:21px;}
|
||||||
.weekly{ background:url(../images/public_icon.png) -66px -95px no-repeat; width:18px; height:21px;}
|
.weekly{ background:url(../images/public_icon.png) -66px -95px no-repeat; width:18px; height:21px;}
|
||||||
|
|
||||||
|
.upload_img img{max-width: 100%;}
|
||||||
|
.table_maxWidth table {max-width: 642px;}
|
|
@ -581,7 +581,7 @@ a.postReplyCancel:hover {color:#ffffff;}
|
||||||
.homepagePostReplyContent {font-size:12px; color:#484848; margin-bottom:12px;}
|
.homepagePostReplyContent {font-size:12px; color:#484848; margin-bottom:12px;}
|
||||||
.table_maxWidth table {max-width: 642px;}
|
.table_maxWidth table {max-width: 642px;}
|
||||||
.homepagePostProjectState {width:42px; height:20px; line-height:20px; border-radius:1px; background-color:#28be6c; color:#ffffff; text-align:center; vertical-align:middle; font-size:12px; display:inline-block; margin-left:5px;}
|
.homepagePostProjectState {width:42px; height:20px; line-height:20px; border-radius:1px; background-color:#28be6c; color:#ffffff; text-align:center; vertical-align:middle; font-size:12px; display:inline-block; margin-left:5px;}
|
||||||
.homepagePostAssignTo {float:left; font-size:14px; color:#15bccf; height:30px; line-height:30px; vertical-align:middle;}
|
.homepagePostAssignTo {float:left; font-size:14px; color:#15bccf;}
|
||||||
.homepagePostFileAtt {height:22px; line-height:22px; vertical-align:middle; background:url(../images/homepage_icon.png) -85px -150px no-repeat; padding-left:35px; font-size:14px;}
|
.homepagePostFileAtt {height:22px; line-height:22px; vertical-align:middle; background:url(../images/homepage_icon.png) -85px -150px no-repeat; padding-left:35px; font-size:14px;}
|
||||||
.homepagePostImageAtt {height:22px; line-height:22px; vertical-align:middle; background:url(../images/homepage_icon.png) -86px -195px no-repeat; padding-left:35px; font-size:14px; margin-right:25px;}
|
.homepagePostImageAtt {height:22px; line-height:22px; vertical-align:middle; background:url(../images/homepage_icon.png) -86px -195px no-repeat; padding-left:35px; font-size:14px; margin-right:25px;}
|
||||||
.postAttSize {color:#888888; font-size:12px; margin-left: 5px;}
|
.postAttSize {color:#888888; font-size:12px; margin-left: 5px;}
|
||||||
|
@ -917,3 +917,4 @@ a.resourcesTypeUser {background:url(images/homepage_icon.png) -178px -453px no-r
|
||||||
|
|
||||||
/* @功能 定义 */
|
/* @功能 定义 */
|
||||||
span.at {color:#269ac9;}
|
span.at {color:#269ac9;}
|
||||||
|
.del_line{text-decoration:line-through !important;}
|
|
@ -287,3 +287,4 @@ li.commit .commit-row-info .committed_ago {
|
||||||
.rep_history_grey{
|
.rep_history_grey{
|
||||||
color: #7F7F7F;
|
color: #7F7F7F;
|
||||||
}
|
}
|
||||||
|
.rep_mail_name{max-width: 150px; overflow: hidden; text-overflow: ellipsis;}
|
Loading…
Reference in New Issue