Merge branch 'develop' into cxt_course
Conflicts: app/controllers/homework_common_controller.rb app/views/student_work/show.js.erb public/javascripts/application.js public/stylesheets/base.css public/stylesheets/public_new.css
This commit is contained in:
commit
d72aa3a93c
|
@ -51,6 +51,37 @@ class AdminController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#管理员界面精品课程列表
|
||||||
|
def excellent_courses
|
||||||
|
@courses = Course.where("is_excellent =? or excellent_option =?", 1, 1 )
|
||||||
|
respond_to do |format|
|
||||||
|
format.html
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#管理员界面课程资源列表
|
||||||
|
def course_resource_list
|
||||||
|
@resource = Attachment.where(:container_type => 'Course')
|
||||||
|
@resource = paginateHelper @resource,30
|
||||||
|
@page = (params['page'] || 1).to_i - 1
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#管理员界面項目资源列表
|
||||||
|
def project_resource_list
|
||||||
|
@pro_resource = Attachment.where(:container_type => 'Project')
|
||||||
|
@pro_resource = paginateHelper @pro_resource,30
|
||||||
|
@page = (params['page'] || 1).to_i - 1
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
def users
|
def users
|
||||||
sort_init 'login', 'asc'
|
sort_init 'login', 'asc'
|
||||||
sort_update %w(login firstname lastname mail admin created_on last_login_on)
|
sort_update %w(login firstname lastname mail admin created_on last_login_on)
|
||||||
|
|
|
@ -91,8 +91,12 @@ class BlogCommentsController < ApplicationController
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
@article = BlogComment.find(params[:id])
|
@article = BlogComment.find(params[:id])
|
||||||
|
if User.current.admin? || User.current.id == @article.author_id
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {render :layout=>'new_base_user'}
|
format.html { render :layout => 'new_base_user' }
|
||||||
|
end
|
||||||
|
else
|
||||||
|
render_403
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -850,6 +850,8 @@ class CoursesController < ApplicationController
|
||||||
# render_403
|
# render_403
|
||||||
# return
|
# return
|
||||||
# end
|
# end
|
||||||
|
# 统计访问量
|
||||||
|
@course.update_attribute(:visits, @course.visits.to_i + 1)
|
||||||
#更新创建课程消息状态
|
#更新创建课程消息状态
|
||||||
create_course_messages = @course.course_messages.where("user_id =? and course_message_type =? and course_id =? and viewed =?", User.current.id, 'Course', @course.id, 0)
|
create_course_messages = @course.course_messages.where("user_id =? and course_message_type =? and course_id =? and viewed =?", User.current.id, 'Course', @course.id, 0)
|
||||||
create_course_messages.update_all(:viewed => true)
|
create_course_messages.update_all(:viewed => true)
|
||||||
|
|
|
@ -854,9 +854,7 @@ class FilesController < ApplicationController
|
||||||
@result = visable_attachemnts @result
|
@result = visable_attachemnts @result
|
||||||
if params[:other]
|
if params[:other]
|
||||||
@result = @result.select{|attachment|
|
@result = @result.select{|attachment|
|
||||||
attachment.tag_list.exclude?('软件') &&
|
attachment.tag_list.index{|tag|tag != '软件' and tag != '媒体' and tag != '代码'}.present?
|
||||||
attachment.tag_list.exclude?('媒体') &&
|
|
||||||
attachment.tag_list.exclude?('代码')
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@result = @result.select{|attachment| attachment.tag_list.include?(@tag_name)} unless @tag_name.blank?
|
@result = @result.select{|attachment| attachment.tag_list.include?(@tag_name)} unless @tag_name.blank?
|
||||||
|
|
|
@ -107,32 +107,18 @@ class NewsController < ApplicationController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
# 更新news对应的forge_messages的消息viewed字段
|
# 更新news对应的forge_messages的消息viewed字段
|
||||||
|
ids = @news.comments.map { |comment| comment.id }.join(",") unless @news.comments.nil?
|
||||||
if @project
|
if @project
|
||||||
query_message_news = @news.forge_messages
|
# 更新新闻
|
||||||
|
query_message_news = ForgeMessage.where("forge_message_id =? and user_id =? and viewed =?", @news.id, User.current.id, 0).first
|
||||||
|
# 更新新闻的时候一并更新回复
|
||||||
|
ForgeMessage.where("forge_message_id in (#{ids}) and forge_message_type = 'Comment' and user_id = #{User.current.id}").update_all(:viewed => true) unless ids.blank?
|
||||||
else
|
else
|
||||||
query_message_news = @news.course_messages
|
query_message_news = CourseMessage.where("course_message_id =? and user_id =? and viewed =?", @news.id, User.current.id, 0).first
|
||||||
|
CourseMessage.where("course_message_id in (#{ids}) and course_message_type = 'Comment' and user_id = #{User.current.id}").update_all(:viewed => true) unless ids.blank?
|
||||||
end
|
end
|
||||||
query_message_news.each do |query|
|
query_message_news.update_attribute(:viewed, true) unless query_message_news.nil?
|
||||||
if User.current.id == query.user_id
|
# over
|
||||||
query.update_attributes(:viewed => true)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# 更新项目新闻的评阅的消息viewed字段
|
|
||||||
current_message_comments = @news.comments
|
|
||||||
current_message_comments.each do |current_message_comment|
|
|
||||||
if @project
|
|
||||||
query_message_comment = current_message_comment.forge_messages
|
|
||||||
else
|
|
||||||
query_message_comment = current_message_comment.course_messages
|
|
||||||
end
|
|
||||||
query_message_comment.each do |query|
|
|
||||||
if User.current.id == query.user_id
|
|
||||||
query.update_attributes(:viewed => true)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
# end
|
|
||||||
|
|
||||||
cs = CoursesService.new
|
cs = CoursesService.new
|
||||||
result = cs.show_course_news params,User.current
|
result = cs.show_course_news params,User.current
|
||||||
@news = result[:news]
|
@news = result[:news]
|
||||||
|
|
|
@ -69,6 +69,8 @@ class OrganizationsController < ApplicationController
|
||||||
def show
|
def show
|
||||||
if @organization.is_public? || User.current.admin? || User.current.member_of_org?(@organization)
|
if @organization.is_public? || User.current.admin? || User.current.member_of_org?(@organization)
|
||||||
@organization = Organization.find(params[:id])
|
@organization = Organization.find(params[:id])
|
||||||
|
# 统计访问量
|
||||||
|
@organization.update_attribute(:visits, @organization.visits.to_i + 1)
|
||||||
if params[:org_subfield_id]
|
if params[:org_subfield_id]
|
||||||
@org_subfield = OrgSubfield.find(params[:org_subfield_id])
|
@org_subfield = OrgSubfield.find(params[:org_subfield_id])
|
||||||
@org_subfield_ids = @org_subfield.org_document_comments.map(&:id) << 0
|
@org_subfield_ids = @org_subfield.org_document_comments.map(&:id) << 0
|
||||||
|
|
|
@ -298,6 +298,8 @@ class ProjectsController < ApplicationController
|
||||||
if params[:jump] && redirect_to_project_menu_item(@project, params[:jump])
|
if params[:jump] && redirect_to_project_menu_item(@project, params[:jump])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
# 统计访问量
|
||||||
|
@project.update_attribute(:visits, @project.visits.to_i + 1)
|
||||||
=begin
|
=begin
|
||||||
cond = @project.project_condition(Setting.display_subprojects_issues?)
|
cond = @project.project_condition(Setting.display_subprojects_issues?)
|
||||||
has = {
|
has = {
|
||||||
|
|
|
@ -425,7 +425,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def choose_user_course
|
def choose_user_course
|
||||||
homework = HomeworkCommon.find params[:homework].to_i
|
homework = HomeworkCommon.find params[:send_id].to_i
|
||||||
if !params[:search].nil?
|
if !params[:search].nil?
|
||||||
search = "%#{params[:search].to_s.strip.downcase}%"
|
search = "%#{params[:search].to_s.strip.downcase}%"
|
||||||
@course = @user.courses.where("is_delete = 0 and #{Course.table_name}.id != #{homework.course_id} and #{Course.table_name}.id = #{params[:search].to_i } or #{Course.table_name}.name like :p",:p=>search).select { |course| @user.allowed_to?(:as_teacher,course)}
|
@course = @user.courses.where("is_delete = 0 and #{Course.table_name}.id != #{homework.course_id} and #{Course.table_name}.id = #{params[:search].to_i } or #{Course.table_name}.name like :p",:p=>search).select { |course| @user.allowed_to?(:as_teacher,course)}
|
||||||
|
@ -1199,6 +1199,10 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
# 统计访问量
|
||||||
|
unless User.current == @user
|
||||||
|
@user.update_attribute(:visits, @user.visits.to_i + 1)
|
||||||
|
end
|
||||||
#更新用户申请成为课程老师或教辅消息的状态
|
#更新用户申请成为课程老师或教辅消息的状态
|
||||||
if params[:course_id] != nil
|
if params[:course_id] != nil
|
||||||
join_course_messages = CourseMessage.where("course_id =? and course_message_type =? and user_id =? and course_message_id =? and viewed =?",
|
join_course_messages = CourseMessage.where("course_id =? and course_message_type =? and user_id =? and course_message_id =? and viewed =?",
|
||||||
|
@ -1568,7 +1572,7 @@ class UsersController < ApplicationController
|
||||||
@user = User.find(params[:id])
|
@user = User.find(params[:id])
|
||||||
#@user.save_attachments(params[:attachments],User.current)
|
#@user.save_attachments(params[:attachments],User.current)
|
||||||
# Container_type为Principal
|
# Container_type为Principal
|
||||||
Attachment.attach_filesex(@user, params[:attachments], params[:attachment_type])
|
attach = Attachment.attach_filesex_public(@user, params[:attachments], params[:attachment_type], is_public = true)
|
||||||
if(params[:type].blank? || params[:type] == "1") # 我的资源
|
if(params[:type].blank? || params[:type] == "1") # 我的资源
|
||||||
# 修正:我的资源库的话,那么应该是我上传的所有资源加上,我加入的课程、项目、组织的所有资源
|
# 修正:我的资源库的话,那么应该是我上传的所有资源加上,我加入的课程、项目、组织的所有资源
|
||||||
if params[:status] == 2
|
if params[:status] == 2
|
||||||
|
@ -2353,9 +2357,7 @@ class UsersController < ApplicationController
|
||||||
|
|
||||||
# 获取公共资源
|
# 获取公共资源
|
||||||
def get_public_resources user_course_ids, user_project_ids
|
def get_public_resources user_course_ids, user_project_ids
|
||||||
attachments = Attachment.where("(is_publish = 1 and container_id is not null and container_type in('Project','OrgSubfield','Principal','Course')) "+
|
attachments = Attachment.where("(is_publish = 1 and is_public =1 and container_id is not null and container_type in('Project','OrgSubfield','Principal','Course')) ").order("created_on desc")
|
||||||
"or (container_type = 'Course' and container_id in (#{user_course_ids.empty? ? '0': user_course_ids.join(',')}) and is_publish = 1 and container_id is not null)" +
|
|
||||||
"or (container_type = 'Project' and container_id in (#{user_project_ids.empty? ? '0': user_project_ids.join(',')}) and is_publish = 1 and container_id is not null)" ).order("created_on desc")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# 获取我的资源
|
# 获取我的资源
|
||||||
|
@ -2372,7 +2374,7 @@ class UsersController < ApplicationController
|
||||||
|
|
||||||
# 获取公共资源课程
|
# 获取公共资源课程
|
||||||
def get_course_resources_public user_course_ids
|
def get_course_resources_public user_course_ids
|
||||||
attchments = Attachment.where("(container_type = 'Course' and is_publish = 1) or (container_type = 'Course' and container_id in (#{user_course_ids.empty? ? '0': user_course_ids.join(',')}) and is_publish = 1) ").order("created_on desc")
|
attchments = Attachment.where("(container_type = 'Course'and container_id is not null and is_publish = 1 and is_public =1)").order("created_on desc")
|
||||||
end
|
end
|
||||||
|
|
||||||
# 获取我的项目资源
|
# 获取我的项目资源
|
||||||
|
@ -2382,7 +2384,7 @@ class UsersController < ApplicationController
|
||||||
|
|
||||||
# 获取公共资源的项目资源
|
# 获取公共资源的项目资源
|
||||||
def get_project_resources_public user_project_ids
|
def get_project_resources_public user_project_ids
|
||||||
attchments = Attachment.where("(container_type = 'Project') or (container_type = 'Project' and container_id in (#{user_project_ids.empty? ? '0': user_project_ids.join(',')}) and is_publish = 1) ").order("created_on desc")
|
attchments = Attachment.where("container_type = 'Project' and container_id is not null and is_public =1").order("created_on desc")
|
||||||
end
|
end
|
||||||
|
|
||||||
# 获取我上传的附件
|
# 获取我上传的附件
|
||||||
|
@ -2392,7 +2394,7 @@ class UsersController < ApplicationController
|
||||||
|
|
||||||
# 获取公共资源中我上传的附件
|
# 获取公共资源中我上传的附件
|
||||||
def get_attch_resources_public
|
def get_attch_resources_public
|
||||||
attchments = Attachment.where("container_type in('Issue','Document','Message','News','StudentWorkScore','HomewCommon','OrgSubfield','Principal')").order("created_on desc")
|
attchments = Attachment.where("container_type in('Issue','Document','Message','News','StudentWorkScore','HomewCommon','OrgSubfield','Principal') and container_id is not null and is_public =1").order("created_on desc")
|
||||||
end
|
end
|
||||||
|
|
||||||
# 获取我的用户类型资源
|
# 获取我的用户类型资源
|
||||||
|
@ -2402,7 +2404,7 @@ class UsersController < ApplicationController
|
||||||
|
|
||||||
# 获取我的用户类型资源
|
# 获取我的用户类型资源
|
||||||
def get_principal_resources_public
|
def get_principal_resources_public
|
||||||
attchments = Attachment.where("container_type = 'Principal'").order("created_on desc")
|
attchments = Attachment.where("container_type = 'Principal'and container_id is not null and is_public =1").order("created_on desc")
|
||||||
end
|
end
|
||||||
|
|
||||||
# 资源库 分为全部 课程资源 项目资源 附件
|
# 资源库 分为全部 课程资源 项目资源 附件
|
||||||
|
@ -2634,9 +2636,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
elsif params[:type] == "6" #全部资源
|
elsif params[:type] == "6" #全部资源
|
||||||
# 公共资源库:所有公开资源或者我上传的私有资源
|
# 公共资源库:所有公开资源或者我上传的私有资源
|
||||||
@attachments = Attachment.where("((is_publish = 1 and container_id is not null and container_type in('Project','OrgSubfield','Principal','Course')) "+
|
@attachments = Attachment.where("is_publish = 1 and is_public = 1 and container_id is not null and container_type in('Project','OrgSubfield','Principal','Course') and (filename like :p)" ,:p => search).order("created_on desc")
|
||||||
"or (container_type = 'Course' and container_id in (#{user_course_ids.empty? ? '0': user_course_ids.join(',')}) and is_publish = 1 and container_id is not null)" +
|
|
||||||
"or (container_type = 'Project' and container_id in (#{user_project_ids.empty? ? '0': user_project_ids.join(',')}) and is_publish = 1 and container_id is not null)) and (filename like :p)" ,:p => search).order("created_on desc")
|
|
||||||
end
|
end
|
||||||
@type = params[:type]
|
@type = params[:type]
|
||||||
@limit = 25
|
@limit = 25
|
||||||
|
|
|
@ -2945,9 +2945,35 @@ end
|
||||||
def user_url_in_org(user_id)
|
def user_url_in_org(user_id)
|
||||||
if Rails.env.development?
|
if Rails.env.development?
|
||||||
return "http://localhost:3000/users/" + user_id.to_s
|
return "http://localhost:3000/users/" + user_id.to_s
|
||||||
elsif Rails.env.test?
|
|
||||||
return "https://www.test.forge.trustie.net/users/" + user_id.to_s
|
|
||||||
else
|
else
|
||||||
return "https://www.trustie.net/users/" + user_id.to_s
|
return "https://" + Setting.host_name + "/users/" + user_id.to_s
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def logout_url_without_domain
|
||||||
|
if Rails.env.development?
|
||||||
|
return "http://localhost:3000/logout"
|
||||||
|
else
|
||||||
|
return "https://" + Setting.host_name + "/logout"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def signin_url_without_domain
|
||||||
|
if Rails.env.development?
|
||||||
|
return "http://localhost:3000/login?login=true"
|
||||||
|
elsif Rails.env.test?
|
||||||
|
return "https://test.forge.trustie.net/login?login=true"
|
||||||
|
else
|
||||||
|
return "https://www.trustie.net/login?login=true"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def register_url_without_domain
|
||||||
|
if Rails.env.development?
|
||||||
|
return "http://localhost:3000/login?login=false"
|
||||||
|
elsif Rails.env.test?
|
||||||
|
return "https://test.forge.trustie.net/login?login=false"
|
||||||
|
else
|
||||||
|
return "https://www.trustie.net/login?login=false"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -71,6 +71,11 @@ module CoursesHelper
|
||||||
project.members.count
|
project.members.count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# 统计课程中作品的数量
|
||||||
|
def student_works_num course
|
||||||
|
StudentWork.find_by_sql("SELECT * FROM student_works WHERE homework_common_id IN (SELECT id FROM homework_commons WHERE course_id = '#{course.id}')").count
|
||||||
|
end
|
||||||
|
|
||||||
# 返回教师数量,即roles表中定义的Manager
|
# 返回教师数量,即roles表中定义的Manager
|
||||||
def teacherCount project
|
def teacherCount project
|
||||||
project ? project.members.count - studentCount(project).to_i : 0
|
project ? project.members.count - studentCount(project).to_i : 0
|
||||||
|
|
|
@ -499,6 +499,12 @@ class Attachment < ActiveRecord::Base
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.attach_filesex_public(obj, attachments,attachment_type, is_public)
|
||||||
|
result = obj.save_attachmentsex_public(attachments, User.current,attachment_type, is_public)
|
||||||
|
obj.attach_saved_attachments
|
||||||
|
result
|
||||||
|
end
|
||||||
|
|
||||||
def self.latest_attach(attachments, filename)
|
def self.latest_attach(attachments, filename)
|
||||||
attachments.sort_by(&:created_on).reverse.detect {
|
attachments.sort_by(&:created_on).reverse.detect {
|
||||||
|att| att.filename.downcase == filename.downcase
|
|att| att.filename.downcase == filename.downcase
|
||||||
|
|
|
@ -71,7 +71,8 @@ class CourseActivity < ActiveRecord::Base
|
||||||
name = lead_message.subject
|
name = lead_message.subject
|
||||||
content = lead_message.content
|
content = lead_message.content
|
||||||
# message的status状态为0为正常,为1表示创建课程时发送的message
|
# message的status状态为0为正常,为1表示创建课程时发送的message
|
||||||
message = Message.create(:subject => name, :content => content, :board_id => self.course.boards.first.id, :author_id => self.course.tea_id , :sticky => true, :status => true )
|
# author_id 默认为课程使者创建
|
||||||
|
message = Message.create(:subject => name, :content => content, :board_id => self.course.boards.first.id, :author_id => 1 , :sticky => true, :status => true )
|
||||||
# 更新的目的是为了排序,因为该条动态的时间可能与课程创建的动态创建时间一直
|
# 更新的目的是为了排序,因为该条动态的时间可能与课程创建的动态创建时间一直
|
||||||
message.course_acts.first.update_attribute(:updated_at, message.course_acts.first.updated_at + 1) if message.course_acts.first
|
message.course_acts.first.update_attribute(:updated_at, message.course_acts.first.updated_at + 1) if message.course_acts.first
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
<h3><%=l(:label_course_resource_list)%></h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="autoscroll">
|
||||||
|
<table class="list" style="width: 100%;table-layout: fixed">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th style="width: 60px;">
|
||||||
|
资源名称
|
||||||
|
</th>
|
||||||
|
<th style="width: 30px;">
|
||||||
|
资源大小
|
||||||
|
</th>
|
||||||
|
<th style="width: 25px;">
|
||||||
|
资源类型
|
||||||
|
</th>
|
||||||
|
<th style="width: 23px;">
|
||||||
|
上传时间
|
||||||
|
</th>
|
||||||
|
<th style="width: 15px;">
|
||||||
|
下载次数
|
||||||
|
</th>
|
||||||
|
<th style="width: 20px;">
|
||||||
|
上传者
|
||||||
|
</th>
|
||||||
|
<th style="width: 35px;">
|
||||||
|
所属课程
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% @resource.each do |resource| %>
|
||||||
|
<tr class="<%= cycle("odd", "even") %>">
|
||||||
|
<td style="text-align: left;">
|
||||||
|
<%= link_to truncate(resource.filename, :length => 18), download_named_attachment_path(resource.id, resource.filename ), :title => resource.filename,:class=>'resourcesBlack'%>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= number_to_human_size(resource.filesize)%>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
课程资源
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= format_date(resource.created_on)%>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= resource.downloads %>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= link_to(User.find(resource.author_id).realname, user_path(User.find(resource.author_id)) ) %>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%=link_to truncate(Course.find(resource.container_id).name, :length => 10), course_path(Course.find(resource.container_id)), :title => Course.find(resource.container_id).name, :class => "hidden fl w170" %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pagination">
|
||||||
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||||||
|
</div>
|
|
@ -0,0 +1,75 @@
|
||||||
|
<h3>
|
||||||
|
<%=l(:label_excellent_courses_list)%>
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<div class="autoscroll">
|
||||||
|
<table class="list" style="width: 100%;table-layout: fixed">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 25px;">
|
||||||
|
序号
|
||||||
|
</th>
|
||||||
|
<th style="width: 120px;">
|
||||||
|
课程名
|
||||||
|
</th>
|
||||||
|
<th style="width: 50px;">
|
||||||
|
主讲老师
|
||||||
|
</th>
|
||||||
|
<th style="width: 30px;">
|
||||||
|
学生数
|
||||||
|
</th>
|
||||||
|
<th style="width: 25px;">
|
||||||
|
作业数
|
||||||
|
</th>
|
||||||
|
<th style="width: 25px;">
|
||||||
|
作品数
|
||||||
|
</th>
|
||||||
|
<th style="width: 25px;">
|
||||||
|
资源数
|
||||||
|
</th>
|
||||||
|
<th style="width: 70px;">
|
||||||
|
帖子数
|
||||||
|
</th>
|
||||||
|
<th style="width: 70px;">
|
||||||
|
动态数
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% @courses.each do |course| %>
|
||||||
|
<tr class="<%= cycle("odd", "even") %>">
|
||||||
|
<td style="text-align: center;">
|
||||||
|
<%= course.id %>
|
||||||
|
</td>
|
||||||
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=course.name%>'>
|
||||||
|
<span>
|
||||||
|
<%= link_to(course.name, course_path(course.id)) %>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<%= link_to(course.try(:teacher).try(:realname).truncate(6, omission: '...'), user_path(course.teacher)) %>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<%= studentCount(course) %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= course.homework_commons.count%>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= student_works_num(course) %>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= visable_attachemnts_incourse(course).count%>
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= course.boards.first.topics.count + Message.where("board_id =? and parent_id is not ?", course.boards.first.id, nil).count %>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="center">
|
||||||
|
<%= course.course_activities.count%>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
|
@ -0,0 +1,64 @@
|
||||||
|
<h3><%=l(:label_project_resource_list)%></h3>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="autoscroll">
|
||||||
|
<table class="list" style="width: 100%;table-layout: fixed">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th style="width: 60px;">
|
||||||
|
资源名称
|
||||||
|
</th>
|
||||||
|
<th style="width: 30px;">
|
||||||
|
资源大小
|
||||||
|
</th>
|
||||||
|
<th style="width: 25px;">
|
||||||
|
资源类型
|
||||||
|
</th>
|
||||||
|
<th style="width: 23px;">
|
||||||
|
上传时间
|
||||||
|
</th>
|
||||||
|
<th style="width: 15px;">
|
||||||
|
下载次数
|
||||||
|
</th>
|
||||||
|
<th style="width: 20px;">
|
||||||
|
上传者
|
||||||
|
</th>
|
||||||
|
<th style="width: 35px;">
|
||||||
|
所属项目
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% @pro_resource.each do |pro_resource| %>
|
||||||
|
<tr class="<%= cycle("odd", "even") %>">
|
||||||
|
<td style="text-align: left;">
|
||||||
|
<%= link_to truncate(pro_resource.filename, :length => 18), download_named_attachment_path(pro_resource.id, pro_resource.filename ), :title => pro_resource.filename,:class=>'resourcesBlack'%>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= number_to_human_size(pro_resource.filesize)%>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
项目资源
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= format_date(pro_resource.created_on)%>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= pro_resource.downloads %>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%= link_to(User.find(pro_resource.author_id).realname, user_path(User.find(pro_resource.author_id)) ) %>
|
||||||
|
</td>
|
||||||
|
<td style=" text-align: center;">
|
||||||
|
<%=link_to truncate(Project.find(pro_resource.container_id).name, :length => 10), project_path(Project.find(pro_resource.container_id)), :title => Project.find(pro_resource.container_id).name, :class => "hidden fl w170" %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pagination">
|
||||||
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||||||
|
</div>
|
|
@ -10,7 +10,7 @@
|
||||||
<input type="hidden" name="blog_comment[title]" id="reply_subject">
|
<input type="hidden" name="blog_comment[title]" id="reply_subject">
|
||||||
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="blog_comment[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="blog_comment[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= reply.id%>'></p>
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<% if User.current.logged? && User.current.id == @user.id %>
|
|
||||||
<%= form_for @article, :url =>{:controller=>'blog_comments',:action => 'update',:user_id=>@user.id , :blog_id => @article.id, :is_homepage => params[:is_homepage],:in_act => params[:in_act]},:method=>'PUT',
|
<%= form_for @article, :url =>{:controller=>'blog_comments',:action => 'update',:user_id=>@user.id , :blog_id => @article.id, :is_homepage => params[:is_homepage],:in_act => params[:in_act]},:method=>'PUT',
|
||||||
:html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
:html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
||||||
<%= render :partial => 'blog_comments/edit', :locals => {:f => f, :article => @article, :edit_mode => true, :user => @user} %>
|
<%= render :partial => 'blog_comments/edit', :locals => {:f => f, :article => @article, :edit_mode => true, :user => @user} %>
|
||||||
<% end %>
|
|
||||||
<% end %>
|
<% end %>
|
|
@ -38,7 +38,7 @@
|
||||||
<%= link_to image_tag(url_to_avatar(@article.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@article.author) %>
|
<%= link_to image_tag(url_to_avatar(@article.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@article.author) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="postThemeWrap">
|
<div class="postThemeWrap">
|
||||||
<% if @article.author.id == User.current.id%>
|
<% if @article.author.id == User.current.id || User.current.admin? %>
|
||||||
<div class="homepagePostSetting" id="message_setting_<%= @article.id%>" style="display: none">
|
<div class="homepagePostSetting" id="message_setting_<%= @article.id%>" style="display: none">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="homepagePostSettingIcon">
|
<li class="homepagePostSettingIcon">
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
l(:button_edit),
|
l(:button_edit),
|
||||||
{:action => 'edit', :id => @article.id,:in_act => params[:in_act]},
|
{:action => 'edit', :id => @article.id,:in_act => params[:in_act]},
|
||||||
:class => 'postOptionLink'
|
:class => 'postOptionLink'
|
||||||
) if User.current && User.current.id == @article.author.id %>
|
) if User.current.admin? || User.current.id == @article.author.id %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to(
|
<%= link_to(
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
:method => :delete,
|
:method => :delete,
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
:class => 'postOptionLink'
|
:class => 'postOptionLink'
|
||||||
) if User.current && User.current.id == @article.author.id %>
|
) if User.current.admin? || User.current.id == @article.author.id %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<% if @article.id == @article.blog.homepage_id %>
|
<% if @article.id == @article.blog.homepage_id %>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostDes">
|
<div class="homepagePostDes">
|
||||||
<% if activity.author.id == User.current.id%>
|
<% if activity.author.id == User.current.id || User.current.admin? %>
|
||||||
<div class="homepagePostSetting" id="message_setting_<%= activity.id%>" style="display: none">
|
<div class="homepagePostSetting" id="message_setting_<%= activity.id%>" style="display: none">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="homepagePostSettingIcon">
|
<li class="homepagePostSettingIcon">
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
l(:button_edit),
|
l(:button_edit),
|
||||||
{:controller => 'blog_comments',:action => 'edit',:user_id=>activity.author_id,:blog_id=>activity.blog_id, :id => activity.id},
|
{:controller => 'blog_comments',:action => 'edit',:user_id=>activity.author_id,:blog_id=>activity.blog_id, :id => activity.id},
|
||||||
:class => 'postOptionLink'
|
:class => 'postOptionLink'
|
||||||
) if User.current && User.current.id == activity.author.id %>
|
) if User.current.admin? || User.current.id == activity.author.id %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to(
|
<%= link_to(
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
:method => :delete,
|
:method => :delete,
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
:class => 'postOptionLink'
|
:class => 'postOptionLink'
|
||||||
) if User.current && User.current.id == activity.author.id %>
|
) if User.current.admin? || User.current.id == activity.author.id %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<% if activity.id == activity.blog.homepage_id %>
|
<% if activity.id == activity.blog.homepage_id %>
|
||||||
|
@ -200,7 +200,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="blog_comment[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="blog_comment[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -192,7 +192,7 @@
|
||||||
<input type="hidden" name="blog_comment[locked]" value="0">
|
<input type="hidden" name="blog_comment[locked]" value="0">
|
||||||
<div nhname='toolbar_container_<%= @article.id%>'></div>
|
<div nhname='toolbar_container_<%= @article.id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= @article.id%>' name="blog_comment[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= @article.id%>' name="blog_comment[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= @article.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
<a id="new_message_submit_btn_<%= @article.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= @article.id%>'></p>
|
<p nhname='contentmsg_<%= @article.id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostDes">
|
<div class="homepagePostDes">
|
||||||
<div class="homepagePostTitle break_word mt-4">
|
<div class="homepagePostTitle break_word mt-4">
|
||||||
<%= link_to file.is_public? ? truncate(file.filename, length: 70) : truncate(file.filename,length: 50, omission: '...'),
|
<%= link_to file.is_public? ? truncate(file.filename, length: 45) : truncate(file.filename,length: 35, omission: '...'),
|
||||||
download_named_attachment_path(file.id, file.filename),
|
download_named_attachment_path(file.id, file.filename),
|
||||||
:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14 f_l" %>
|
:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "linkGrey3 f_14 f_l" %>
|
||||||
<%= file_preview_eye(file, class: 'preview') %>
|
<%= file_preview_eye(file, class: 'preview') %>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<div class="mb5">
|
<div class="mb5">
|
||||||
<label class="fl c_dark f14" style="margin-top: 4px;">附件描述:</label>
|
<label class="fl c_dark f14" style="margin-top: 4px;">附件描述:</label>
|
||||||
<div class="fl">
|
<div class="fl">
|
||||||
<input type="text" name="description" placeholder="文件描述" class="fl W120 ">
|
<input type="text" name="description" placeholder="文件描述" class="InputBox fl W160">
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
<%= render :partial => 'attachments/issue_reply', :locals => {:container => @issue} %>
|
<%= render :partial => 'attachments/issue_reply', :locals => {:container => @issue} %>
|
||||||
</div>
|
</div>
|
||||||
<span nhname='contentmsg_<%= @issue.id %>' class="fl"></span>
|
<span nhname='contentmsg_<%= @issue.id %>' class="fl"></span>
|
||||||
<a id="new_message_submit_btn_<%= @issue.id %>" href="javascript:void(0)" class="blue_n_btn fr mt5" style="display:none;">发送</a>
|
<a id="new_message_submit_btn_<%= @issue.id %>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr mt5" style="display:none;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= @issue.id%>' name="notes"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= @issue.id%>' name="notes"></textarea>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<span nhname='contentmsg_<%= @issue.id%>' class="fl"></span>
|
<span nhname='contentmsg_<%= @issue.id%>' class="fl"></span>
|
||||||
<a id="new_message_submit_btn_<%= @issue.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= @issue.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
</li>
|
</li>
|
||||||
<!--<li><a href="javascript:void(0);" class="menuGrey">账号设置</a> </li>-->
|
<!--<li><a href="javascript:void(0);" class="menuGrey">账号设置</a> </li>-->
|
||||||
<li>
|
<li>
|
||||||
<%= link_to "退出",signout_path,:class => "menuGrey",:method => "post"%>
|
<%= link_to "退出",logout_url_without_domain,:class => "menuGrey",:method => "post"%>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -77,10 +77,10 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="loginInButton" class="fr ml20">
|
<div id="loginInButton" class="fr ml20">
|
||||||
<a href="<%= signin_path(:login=>true) %>" class="c_white db">登录</a>
|
<a href="<%= signin_url_without_domain %>" class="c_white db">登录</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="loginSignButton" class="fr">
|
<div id="loginSignButton" class="fr">
|
||||||
<a href="<%= signin_path(:login=>false) %>" class="c_white db">注册</a>
|
<a href="<%= register_url_without_domain %>" class="c_white db">注册</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -250,7 +250,7 @@
|
||||||
</div><!--项目标签 end-->
|
</div><!--项目标签 end-->
|
||||||
<!--课程推荐-->
|
<!--课程推荐-->
|
||||||
<%= render :partial => 'courses/recommendation', :locals => {:course => @course} %>
|
<%= render :partial => 'courses/recommendation', :locals => {:course => @course} %>
|
||||||
<div class="fontGrey5 mt10 ml10 mb10">访问计数 100</div>
|
<div class="fontGrey5 mt10 ml10 mb10">访问计数 <%= @course.visits.to_i %></div>
|
||||||
</div><!--LSide end-->
|
</div><!--LSide end-->
|
||||||
|
|
||||||
<div id="RSide" class="fl">
|
<div id="RSide" class="fl">
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
<li class="navOrgMenu fr" id="orgUser" style="cursor:pointer;">
|
<li class="navOrgMenu fr" id="orgUser" style="cursor:pointer;">
|
||||||
<%= link_to image_tag(url_to_avatar(User.current),:width => '23',:height => '23'), request.local? ? user_path(User.current):("https://www.trustie.net/users/" + User.current.id.to_s),:alt => '用户头像', :target => '_blank',:style=>'border-radius:3px; vertical-align:top; margin-top:3px; display:inline-block; margin-right:3px;' %>
|
<%= link_to image_tag(url_to_avatar(User.current),:width => '23',:height => '23'), request.local? ? user_path(User.current):("https://www.trustie.net/users/" + User.current.id.to_s),:alt => '用户头像', :target => '_blank',:style=>'border-radius:3px; vertical-align:top; margin-top:3px; display:inline-block; margin-right:3px;' %>
|
||||||
<%= link_to User.current, (request.local? || request.subdomain.blank?) ? user_path(User.current):("https://www.trustie.net/users/" + User.current.id.to_s),:id => "orgUserName",:class => 'fontGrey2 f14 mr5',:target => '_blank' %>
|
<%= link_to User.current, (request.local? || request.subdomain.blank?) ? user_path(User.current):("https://www.trustie.net/users/" + User.current.id.to_s),:id => "orgUserName",:class => 'fontGrey2 f14 mr5',:target => '_blank' %>
|
||||||
<%= link_to "退出",(request.local? || request.subdomain.blank?) ? signout_path():"https://www.trustie.net/logout", :class =>"menuGrey", :method => 'post', :rel => "nofollow" %>
|
<%= link_to "退出",logout_url_without_domain, :class =>"menuGrey", :method => 'post', :rel => "nofollow" %>
|
||||||
</li>
|
</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 %>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
<div class="homepageLeftMenuContainer" id="sub_field_left_lists">
|
<div class="homepageLeftMenuContainer" id="sub_field_left_lists">
|
||||||
<%= render :partial => "organizations/org_left_subfield_list", :locals => {:organization => @organization} %>
|
<%= render :partial => "organizations/org_left_subfield_list", :locals => {:organization => @organization} %>
|
||||||
</div>
|
</div>
|
||||||
<div class="fontGrey5 mt10 ml20">访问计数 100</div>
|
<div class="fontGrey5 mt10 ml20">访问计数 <%= @organization.visits.to_i %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepageRight" style="margin-top:<%= (params[:show_homepage].nil? && User.current.logged?) ? '10px':'0px' %>;">
|
<div class="homepageRight" style="margin-top:<%= (params[:show_homepage].nil? && User.current.logged?) ? '10px':'0px' %>;">
|
||||||
<%= render_flash_messages %>
|
<%= render_flash_messages %>
|
||||||
|
|
|
@ -159,7 +159,7 @@
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div><!--项目标签 end-->
|
</div><!--项目标签 end-->
|
||||||
|
|
||||||
<div class="fontGrey5 mt10 ml10 mb10">访问计数 100</div>
|
<div class="fontGrey5 mt10 ml10 mb10">访问计数 <%= @project.visits.to_i %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,7 @@
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fontGrey5 mt10 ml20">访问计数 100</div>
|
<div class="fontGrey5 mt10 ml20">访问计数 <%= @user.visits.to_i %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepageRight">
|
<div class="homepageRight">
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<%= link_to @memo.author.name, user_path(@memo.author), :class => "linkBlue2", :target=> "_blank"%></div>
|
<%= link_to @memo.author.name, user_path(@memo.author), :class => "linkBlue2", :target=> "_blank"%></div>
|
||||||
<div class="postDetailDate mb5"><%= format_date( @memo.created_at)%></div>
|
<div class="postDetailDate mb5"><%= format_date( @memo.created_at)%></div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div class="homepagePostIntro memo-content" id="message_description_<%= @memo.id %>" style="word-break: break-all; word-wrap:break-word;margin-bottom: 0px !important;" >
|
<div class="homepagePostIntro memo-content" id="activity_description_<%= @memo.id %>" style="word-break: break-all; word-wrap:break-word;margin-bottom: 0px !important;" >
|
||||||
<%= @memo.content.html_safe%>
|
<%= @memo.content.html_safe%>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
@ -95,8 +95,21 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostReplyDes">
|
<div class="homepagePostReplyDes">
|
||||||
<div class="homepagePostReplyPublisher mt-4"><a href="<%=user_path(reply.author)%>" class="newsBlue mr10 f14"><%= reply.author.name%></a><%= format_date(reply.created_at) %></div>
|
<div class="homepagePostReplyPublisher mt-4"><a href="<%=user_path(reply.author)%>" class="newsBlue mr10 f14"><%= reply.author.name%></a><%= format_date(reply.created_at) %></div>
|
||||||
<div class="homepagePostReplyContent"><%= reply.content.html_safe%></div>
|
<div class="homepagePostReplyContent" id="activity_description_<%= reply.id %>"><%= reply.content.html_safe%></div>
|
||||||
</div>
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
$("#activity_description_<%= reply.id %> p,#activity_description__<%= reply.id %> span,#activity_description_<%= reply.id %> em").each(function(){
|
||||||
|
var postContent = $(this).html();
|
||||||
|
postContent = postContent.replace(/ /g," ");
|
||||||
|
postContent= postContent.replace(/ {2}/g," ");
|
||||||
|
postContent=postContent.replace(/ /g," ");
|
||||||
|
postContent=postContent.replace(/ /g," ");
|
||||||
|
$(this).html(postContent);
|
||||||
|
});
|
||||||
|
description_show_hide(<%= reply.id %>);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -113,7 +126,7 @@
|
||||||
<%= hidden_field_tag :quote,"",:required => false,:style => 'display:none' %>
|
<%= hidden_field_tag :quote,"",:required => false,:style => 'display:none' %>
|
||||||
<div nhname='toolbar_container_<%= @memo.id%>'></div>
|
<div nhname='toolbar_container_<%= @memo.id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= @memo.id%>' name="memo[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= @memo.id%>' name="memo[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= @memo.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= @memo.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= @memo.id%>'></p>
|
<p nhname='contentmsg_<%= @memo.id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
@ -126,7 +139,7 @@
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#message_description_<%= @memo.id %> p,#message_description_<%= @memo.id %> span,#message_description_<%= @memo.id %> em").each(function(){
|
$("#activity_description_<%= @memo.id %> p,#activity_description__<%= @memo.id %> span,#activity_description_<%= @memo.id %> em").each(function(){
|
||||||
var postContent = $(this).html();
|
var postContent = $(this).html();
|
||||||
postContent = postContent.replace(/ /g," ");
|
postContent = postContent.replace(/ /g," ");
|
||||||
postContent= postContent.replace(/ {2}/g," ");
|
postContent= postContent.replace(/ {2}/g," ");
|
||||||
|
@ -134,5 +147,6 @@
|
||||||
postContent=postContent.replace(/ /g," ");
|
postContent=postContent.replace(/ /g," ");
|
||||||
$(this).html(postContent);
|
$(this).html(postContent);
|
||||||
});
|
});
|
||||||
|
description_show_hide(<%= @memo.id %>);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
|
@ -34,11 +34,7 @@
|
||||||
<div class="postRightContainer ml10" onmouseover="$('#message_setting_<%= @topic.id%>').show();" onmouseout="$('#message_setting_<%= @topic.id%>').hide();">
|
<div class="postRightContainer ml10" onmouseover="$('#message_setting_<%= @topic.id%>').show();" onmouseout="$('#message_setting_<%= @topic.id%>').hide();">
|
||||||
<div class="postThemeContainer">
|
<div class="postThemeContainer">
|
||||||
<div class="postDetailPortrait">
|
<div class="postDetailPortrait">
|
||||||
<% if @topic.status == 1 %>
|
|
||||||
<%= image_tag("/images/trustie_logo1.png", width: "50px", height: "50px") %>
|
|
||||||
<% else %>
|
|
||||||
<%= link_to image_tag(url_to_avatar(@topic.author), :width => 50, :height => 50,:alt=>'图像' ), user_path(@topic.author) %>
|
<%= link_to image_tag(url_to_avatar(@topic.author), :width => 50, :height => 50,:alt=>'图像' ), user_path(@topic.author) %>
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="postThemeWrap">
|
<div class="postThemeWrap">
|
||||||
<% if User.current.logged? %>
|
<% if User.current.logged? %>
|
||||||
|
@ -74,17 +70,12 @@
|
||||||
<a href="javascript:void(0);" class="f14 linkGrey4 fb" style="overflow:hidden;">主题: <%= @topic.subject%></a>
|
<a href="javascript:void(0);" class="f14 linkGrey4 fb" style="overflow:hidden;">主题: <%= @topic.subject%></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
||||||
<div class="postDetailCreater">
|
<div class="postDetailCreater">
|
||||||
<% if @topic.status == 1 %>
|
|
||||||
<span class="fontBlue2">确实团队</span>
|
|
||||||
<% else %>
|
|
||||||
<% if @topic.try(:author).try(:realname) == ' ' %>
|
<% if @topic.try(:author).try(:realname) == ' ' %>
|
||||||
<%= link_to @topic.try(:author), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
<%= link_to @topic.try(:author), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to @topic.try(:author).try(:realname), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
<%= link_to @topic.try(:author).try(:realname), user_path(@topic.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="postDetailDate mb5"><%= format_time( @topic.created_on)%></div>
|
<div class="postDetailDate mb5"><%= format_time( @topic.created_on)%></div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<input type="hidden" name="reply[subject]" id="reply_subject">
|
<input type="hidden" name="reply[subject]" id="reply_subject">
|
||||||
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="reply[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="reply[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= reply.id%>'></p>
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<input type="hidden" name="org_document_comment[title]" id="reply_subject">
|
<input type="hidden" name="org_document_comment[title]" id="reply_subject">
|
||||||
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
<div nhname='toolbar_container_<%= reply.id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="org_document_comment[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= reply.id%>' name="org_document_comment[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
<a id="new_message_submit_btn_<%= reply.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:2px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= reply.id%>'></p>
|
<p nhname='contentmsg_<%= reply.id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -356,7 +356,7 @@
|
||||||
<%= hidden_field_tag 'course_activity',params[:course_activity],:value =>course_activity %>
|
<%= hidden_field_tag 'course_activity',params[:course_activity],:value =>course_activity %>
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="homework_message"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="homework_message"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -144,7 +144,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="notes"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="notes"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -147,7 +147,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
<input type="hidden" name="org_activity_id" value="<%= act.id %>"/>
|
<input type="hidden" name="org_activity_id" value="<%= act.id %>"/>
|
||||||
<div nhname='toolbar_container_<%= act.id %>'></div>
|
<div nhname='toolbar_container_<%= act.id %>'></div>
|
||||||
<textarea placeholder="有问题或建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= act.id %>' name="org_content"></textarea>
|
<textarea placeholder="有问题或建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= act.id %>' name="org_content"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= act.id %>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;line-height:18px;">发送</a>
|
<a id="new_message_submit_btn_<%= act.id %>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;line-height:18px;">发送</a>
|
||||||
|
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= act.id %>'></p>
|
<p nhname='contentmsg_<%= act.id %>'></p>
|
||||||
|
|
|
@ -110,7 +110,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -356,7 +356,7 @@
|
||||||
<%= hidden_field_tag 'course_activity',params[:course_activity],:value =>course_activity %>
|
<%= hidden_field_tag 'course_activity',params[:course_activity],:value =>course_activity %>
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="homework_message"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="homework_message"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>user_activity_id %>
|
<%= hidden_field_tag 'user_activity_id',params[:user_activity_id],:value =>user_activity_id %>
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="user_notes"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="user_notes"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -1,24 +1,16 @@
|
||||||
<div class="resources mt10" id="user_activity_<%= user_activity_id%>" onmouseover="$('#message_setting_<%= user_activity_id%>').show();" onmouseout="$('#message_setting_<%= user_activity_id%>').hide();">
|
<div class="resources mt10" id="user_activity_<%= user_activity_id%>" onmouseover="$('#message_setting_<%= user_activity_id%>').show();" onmouseout="$('#message_setting_<%= user_activity_id%>').hide();">
|
||||||
<div class="homepagePostBrief">
|
<div class="homepagePostBrief">
|
||||||
<div class="homepagePostPortrait">
|
<div class="homepagePostPortrait">
|
||||||
<% if activity.status == 1 %>
|
|
||||||
<%= image_tag("/images/trustie_logo1.png", width: "50px", height: "50px") %>
|
|
||||||
<% else %>
|
|
||||||
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
||||||
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostDes">
|
<div class="homepagePostDes">
|
||||||
<div class="homepagePostTo break_word mt-4">
|
<div class="homepagePostTo break_word mt-4">
|
||||||
<% if activity.status == 1 %>
|
|
||||||
<span class="fontBlue2">确实团队</span>
|
|
||||||
<% else %>
|
|
||||||
<% if activity.try(:author).try(:realname) == ' ' %>
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
||||||
<%= link_to activity.try(:author), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
<%= link_to activity.try(:author), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
TO
|
TO
|
||||||
<%= link_to activity.course.name.to_s+" | 课程问答区", course_boards_path(activity.course,:host=> Setting.host_course), :class => "newsBlue ml15 mr5"%>
|
<%= link_to activity.course.name.to_s+" | 课程问答区", course_boards_path(activity.course,:host=> Setting.host_course), :class => "newsBlue ml15 mr5"%>
|
||||||
</div>
|
</div>
|
||||||
|
@ -178,7 +170,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="notes"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="notes"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="reply[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="comment"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="userCard boxShadow" style="<%= User.current == user ? 'top:-153px;':'' %>">
|
<div class="userCard boxShadow" style="<%= User.current == user ? 'top:-153px;':'' %>">
|
||||||
<div class="userAvatarWrap fl">
|
<div class="userAvatarWrap fl">
|
||||||
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_url_in_org(user), :alt => "用户头像", :target => '_blank' %>
|
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_url_in_org(user.id), :alt => "用户头像", :target => '_blank' %>
|
||||||
<%#= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
|
<%#= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
|
||||||
<!--<img src="images/homepageImage.jpg" width="50" height="50" alt="个人头像" />-->
|
<!--<img src="images/homepageImage.jpg" width="50" height="50" alt="个人头像" />-->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
<input type="hidden" name="user_activity_id" value="<%=user_activity_id%>">
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="blog_comment[content]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="blog_comment[content]"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -360,7 +360,7 @@
|
||||||
<%= hidden_field_tag 'is_in_course',params[:is_in_course],:value =>is_in_course %>
|
<%= hidden_field_tag 'is_in_course',params[:is_in_course],:value =>is_in_course %>
|
||||||
<div nhname='toolbar_container_<%= homework_common.id%>'></div>
|
<div nhname='toolbar_container_<%= homework_common.id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= homework_common.id%>' name="homework_message"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= homework_common.id%>' name="homework_message"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= homework_common.id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= homework_common.id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= homework_common.id%>'></p>
|
<p nhname='contentmsg_<%= homework_common.id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -139,7 +139,7 @@
|
||||||
<%= hidden_field_tag 'is_activity',params[:is_activity],:value =>is_activity %>
|
<%= hidden_field_tag 'is_activity',params[:is_activity],:value =>is_activity %>
|
||||||
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
<div nhname='toolbar_container_<%= user_activity_id%>'></div>
|
||||||
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="user_notes"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='new_message_textarea_<%= user_activity_id%>' name="user_notes"></textarea>
|
||||||
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
<a id="new_message_submit_btn_<%= user_activity_id%>" href="javascript:void(0)" onclick="this.style.display='none'" class="blue_n_btn fr" style="display:none;margin-top:6px;">发送</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
<p nhname='contentmsg_<%= user_activity_id%>'></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
<%=link_to ma.journals_for_message.user, user_path(ma.journals_for_message.user), :class => "newsBlue homepageNewsPublisher" %>
|
<%=link_to ma.journals_for_message.user, user_path(ma.journals_for_message.user), :class => "newsBlue homepageNewsPublisher" %>
|
||||||
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ma.journals_for_message.reply_id == 0 ? "给你留言了:" : "回复了你的留言:" %></span>
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ma.journals_for_message.reply_id == 0 ? "给你留言了:" : "回复了你的留言:" %></span>
|
||||||
</li>
|
</li>
|
||||||
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
<li class="homepageNewsContent fl">
|
||||||
<%= link_to ma.journals_for_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, feedback_path(ma.journals_for_message.jour_id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
|
<%= link_to ma.journals_for_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, feedback_path(ma.journals_for_message.jour_id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
|
||||||
:onmouseover =>"message_titile_show($(this),event)",
|
:onmouseover =>"message_titile_show($(this),event)",
|
||||||
:onmouseout => "message_titile_hide($(this))" %></a>
|
:onmouseout => "message_titile_hide($(this))" %>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style" >
|
<div style="display: none" class="message_title_red system_message_style" >
|
||||||
<% if ma.journals_for_message.reply_id == 0 %>
|
<% if ma.journals_for_message.reply_id == 0 %>
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="pageRoll">
|
<div class="pageRoll">
|
||||||
<%= paginate attachments,:params => {:controller => 'welcome', :action => 'search',:search_type=>'attachment'}%>
|
<!%= paginate attachments,:params => {:controller => 'welcome', :action => 'search',:search_type=>'attachment'}%>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
|
@ -1520,6 +1520,9 @@ en:
|
||||||
label_submit_comments: Submit_comments
|
label_submit_comments: Submit_comments
|
||||||
label_course_empty_select: You have not selected course!
|
label_course_empty_select: You have not selected course!
|
||||||
label_enterprise_page_made: enterprise_page
|
label_enterprise_page_made: enterprise_page
|
||||||
|
label_excellent_courses_list: excellent_courses
|
||||||
|
label_course_resource_list: course_resource_list
|
||||||
|
label_project_resource_list: project_resource_list
|
||||||
|
|
||||||
#api
|
#api
|
||||||
label_recently_updated_notification: Recently updated notification
|
label_recently_updated_notification: Recently updated notification
|
||||||
|
|
|
@ -483,6 +483,9 @@ zh:
|
||||||
label_requirement: 需求
|
label_requirement: 需求
|
||||||
label_new_course: 课程列表
|
label_new_course: 课程列表
|
||||||
label_course_all: 课程列表
|
label_course_all: 课程列表
|
||||||
|
label_excellent_courses_list: 精品课程列表
|
||||||
|
label_course_resource_list: 课程资源列表
|
||||||
|
label_project_resource_list: 項目资源列表
|
||||||
label_teacher_all: 所有教师
|
label_teacher_all: 所有教师
|
||||||
label_requirement_enterprise_list: 众包列表
|
label_requirement_enterprise_list: 众包列表
|
||||||
label_new_homework: 作业
|
label_new_homework: 作业
|
||||||
|
|
|
@ -939,6 +939,9 @@ RedmineApp::Application.routes.draw do
|
||||||
match 'admin', :to => 'admin#index', :via => :get
|
match 'admin', :to => 'admin#index', :via => :get
|
||||||
match 'admin/projects', :via => :get
|
match 'admin/projects', :via => :get
|
||||||
get 'admin/courses'
|
get 'admin/courses'
|
||||||
|
get 'admin/excellent_courses'
|
||||||
|
get 'admin/course_resource_list'
|
||||||
|
get 'admin/project_resource_list'
|
||||||
match 'admin/users', :via => :get
|
match 'admin/users', :via => :get
|
||||||
match 'admin/messages', :via => :get
|
match 'admin/messages', :via => :get
|
||||||
match 'admin/first_page_made', as: :first_page_made
|
match 'admin/first_page_made', as: :first_page_made
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddVisitsToUser < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :users, :visits, :integer, :default => 0
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddVisitsToProject < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :projects, :visits, :integer, :default => 0
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddVisitsToCourse < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :courses, :visits, :integer, :default => 0
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddVisitsToOrganization < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :organizations, :visits, :integer, :default => 0
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,8 @@
|
||||||
|
class UpdateCourseLead < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
Message.where("status =? ", 1).update_all(:author_id => 1)
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,8 +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 => 20160310033019) do
|
ActiveRecord::Schema.define(:version => 20160225031230) 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
|
||||||
t.string "act_type", :null => false
|
t.string "act_type", :null => false
|
||||||
|
@ -508,6 +507,7 @@ ActiveRecord::Schema.define(:version => 20160310033019) do
|
||||||
t.integer "is_excellent", :default => 0
|
t.integer "is_excellent", :default => 0
|
||||||
t.integer "excellent_option", :default => 0
|
t.integer "excellent_option", :default => 0
|
||||||
t.integer "is_copy", :default => 0
|
t.integer "is_copy", :default => 0
|
||||||
|
t.integer "visits", :default => 0
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "custom_fields", :force => true do |t|
|
create_table "custom_fields", :force => true do |t|
|
||||||
|
@ -1284,6 +1284,7 @@ ActiveRecord::Schema.define(:version => 20160310033019) do
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
t.boolean "allow_guest_download", :default => true
|
t.boolean "allow_guest_download", :default => true
|
||||||
|
t.integer "visits", :default => 0
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "phone_app_versions", :force => true do |t|
|
create_table "phone_app_versions", :force => true do |t|
|
||||||
|
@ -1443,6 +1444,7 @@ ActiveRecord::Schema.define(:version => 20160310033019) do
|
||||||
t.integer "acts_count", :default => 0
|
t.integer "acts_count", :default => 0
|
||||||
t.integer "journals_count", :default => 0
|
t.integer "journals_count", :default => 0
|
||||||
t.integer "boards_reply_count", :default => 0
|
t.integer "boards_reply_count", :default => 0
|
||||||
|
t.integer "visits", :default => 0
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "projects", ["lft"], :name => "index_projects_on_lft"
|
add_index "projects", ["lft"], :name => "index_projects_on_lft"
|
||||||
|
@ -1902,6 +1904,7 @@ ActiveRecord::Schema.define(:version => 20160310033019) do
|
||||||
t.string "mail_notification", :default => "", :null => false
|
t.string "mail_notification", :default => "", :null => false
|
||||||
t.string "salt", :limit => 64
|
t.string "salt", :limit => 64
|
||||||
t.integer "gid"
|
t.integer "gid"
|
||||||
|
t.integer "visits", :default => 0
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["auth_source_id"], :name => "index_users_on_auth_source_id"
|
add_index "users", ["auth_source_id"], :name => "index_users_on_auth_source_id"
|
||||||
|
|
|
@ -99,6 +99,13 @@ module Redmine
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def save_attachmentsex_public(attachments, author=User.current,attachment_type, is_public)
|
||||||
|
@curattachment_type = attachment_type
|
||||||
|
@is_public = true
|
||||||
|
result = save_attachments(attachments,author)
|
||||||
|
result
|
||||||
|
end
|
||||||
|
|
||||||
def save_attachments(attachments, author=User.current)
|
def save_attachments(attachments, author=User.current)
|
||||||
# 清除临时文件
|
# 清除临时文件
|
||||||
if attachments
|
if attachments
|
||||||
|
@ -142,7 +149,11 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
if a && !attachment['is_public_checkbox']
|
if a && !attachment['is_public_checkbox']
|
||||||
|
if @is_public
|
||||||
|
a.is_public = true
|
||||||
|
else
|
||||||
a.is_public = false
|
a.is_public = false
|
||||||
|
end
|
||||||
elsif a && attachment['is_public_checkbox']
|
elsif a && attachment['is_public_checkbox']
|
||||||
a.is_public = true
|
a.is_public = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -391,6 +391,9 @@ Redmine::MenuManager.map :admin_menu do |menu|
|
||||||
menu.push :messages_list, {:controller => 'admin', :action => 'messages_list'}, :caption => :label_message_plural
|
menu.push :messages_list, {:controller => 'admin', :action => 'messages_list'}, :caption => :label_message_plural
|
||||||
menu.push :notices, {:controller => 'admin', :action => 'notices'}, :caption => :label_notification_list
|
menu.push :notices, {:controller => 'admin', :action => 'notices'}, :caption => :label_notification_list
|
||||||
menu.push :latest_login_users, {:controller => 'admin', :action => 'latest_login_users'}, :caption => :label_latest_login_user_list
|
menu.push :latest_login_users, {:controller => 'admin', :action => 'latest_login_users'}, :caption => :label_latest_login_user_list
|
||||||
|
menu.push :excellent_courses, {:controller => 'admin', :action => 'excellent_courses'}, :caption => :label_excellent_courses_list
|
||||||
|
menu.push :course_resource_list, {:controller => 'admin', :action => 'course_resource_list'}, :caption => :label_course_resource_list
|
||||||
|
menu.push :project_resource_list, {:controller => 'admin', :action => 'project_resource_list'}, :caption => :label_project_resource_list
|
||||||
menu.push :homework, {:controller => 'admin', :action => 'homework'}, :caption => :label_user_homework
|
menu.push :homework, {:controller => 'admin', :action => 'homework'}, :caption => :label_user_homework
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -40,6 +40,11 @@ module Trustie
|
||||||
username: user.login,
|
username: user.login,
|
||||||
confirm: "true")
|
confirm: "true")
|
||||||
user.gid = u.id
|
user.gid = u.id
|
||||||
|
user.save
|
||||||
|
end
|
||||||
|
if user.gid.nil?
|
||||||
|
user.gid = u.id
|
||||||
|
user.save
|
||||||
end
|
end
|
||||||
change_password(u.id, user.hashed_password, user.salt)
|
change_password(u.id, user.hashed_password, user.salt)
|
||||||
rescue => e
|
rescue => e
|
||||||
|
|
|
@ -929,13 +929,34 @@ function _mediaClass(type) {
|
||||||
function _mediaAttrs(srcTag) {
|
function _mediaAttrs(srcTag) {
|
||||||
return _getAttrList(unescape(srcTag));
|
return _getAttrList(unescape(srcTag));
|
||||||
}
|
}
|
||||||
function _mediaEmbed(attrs) {
|
function _mediaEmbed(attrs,target) {
|
||||||
var html = '<embed ';
|
if(target && target === "media"){
|
||||||
|
var html = [[],"<img class=\"mediaIco\" src=\"../../images/video.png\" "],_ww = window.screen.width,_wh = window.screen.height;//_docHeight(window.document);
|
||||||
|
_each(attrs, function(key, val) {
|
||||||
|
if(key === "src"){
|
||||||
|
html[0].push("<a class=\"mediaIcobox\" href=\"javascript:window.open('"+ val+"','newwindow','");
|
||||||
|
}else{
|
||||||
|
if(key === "width"){
|
||||||
|
html[0].push("width="+val,",left="+(_ww-val)/2 + ",");
|
||||||
|
}else if(key === "height"){
|
||||||
|
html[0].push("height="+val,",top="+(_wh-val)/2);
|
||||||
|
}else{
|
||||||
|
html.push(key, "=\"" , val , "\" ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
html[0].push("')\">");
|
||||||
|
html[0] = html[0].join("");
|
||||||
|
html.push("/></a>");
|
||||||
|
return html.join("");
|
||||||
|
}else{
|
||||||
|
var html = '<img ';
|
||||||
_each(attrs, function(key, val) {
|
_each(attrs, function(key, val) {
|
||||||
html += key + '="' + val + '" ';
|
html += key + '="' + val + '" ';
|
||||||
});
|
});
|
||||||
html += '/>';
|
html += '/>';
|
||||||
return html;
|
return html;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function _mediaImg(blankPath, attrs) {
|
function _mediaImg(blankPath, attrs) {
|
||||||
var width = attrs.width,
|
var width = attrs.width,
|
||||||
|
@ -2765,7 +2786,7 @@ _extend(KCmd, {
|
||||||
sel.addRange(rng);
|
sel.addRange(rng);
|
||||||
if (doc !== document) {
|
if (doc !== document) {
|
||||||
var pos = K(rng.endContainer).pos();
|
var pos = K(rng.endContainer).pos();
|
||||||
win.scrollTo(pos.x, pos.y);
|
//win.scrollTo(pos.x, pos.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
win.focus();
|
win.focus();
|
||||||
|
@ -5646,8 +5667,29 @@ _plugin('core', function(K) {
|
||||||
}else{
|
}else{
|
||||||
//TODO 暂时什么也不做
|
//TODO 暂时什么也不做
|
||||||
}
|
}
|
||||||
|
var _bod = $(self.cmd.doc.body);
|
||||||
|
var body = self.cmd.doc.body;
|
||||||
|
var _bw = _bod.width(),_bh = Math.max((K.IE ? body.scrollHeight : (K.GECKO ? body.offsetHeight+26:body.offsetHeight)));
|
||||||
|
var _bsh = 0;
|
||||||
|
_bod.children().each(function(){
|
||||||
|
_bsh += $(this).height();
|
||||||
|
});
|
||||||
|
var _imgbase = _bod.find("img");
|
||||||
|
_imgbase[0].onload = function(){
|
||||||
|
var _iw=_imgbase.width(),_ih = _imgbase.height();
|
||||||
|
var _alh = _bsh + _ih;
|
||||||
|
var _rhig = _alh > _bh ? _alh : _bh;
|
||||||
|
switch(self.resizeType){
|
||||||
|
case 1:
|
||||||
|
var _defh = self.toolbar.div.height() + self.statusbar.height();
|
||||||
|
_defh = _defh > 0 ? _defh + 6 : _defh;
|
||||||
|
self.resize(null,_rhig + _defh);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
alert(data.message);
|
//alert(data.message);
|
||||||
|
alert("仅支持如下图片格式:bmp,jpeg,jpg,png,gif,BMP,JPEG,JPG,PNG,GIF");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
afterError : function(str) {
|
afterError : function(str) {
|
||||||
|
@ -6018,7 +6060,7 @@ _plugin('core', function(K) {
|
||||||
}
|
}
|
||||||
attrs.width = _undef(imgAttrs.width, width);
|
attrs.width = _undef(imgAttrs.width, width);
|
||||||
attrs.height = _undef(imgAttrs.height, height);
|
attrs.height = _undef(imgAttrs.height, height);
|
||||||
return _mediaEmbed(attrs);
|
return _mediaEmbed(attrs,"media");
|
||||||
})
|
})
|
||||||
.replace(/<img[^>]*class="?ke-anchor"?[^>]*>/ig, function(full) {
|
.replace(/<img[^>]*class="?ke-anchor"?[^>]*>/ig, function(full) {
|
||||||
var imgAttrs = _getAttrList(full);
|
var imgAttrs = _getAttrList(full);
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
.ke-content {
|
.ke-content {
|
||||||
font-size: 10pt;
|
font-size: 12px;
|
||||||
|
font: 14px/1.5 "sans serif",tahoma,verdana,helvetica;font-family: ΢ÈíÑźÚ, ËÎÌå;
|
||||||
|
font-family:Tahoma;
|
||||||
}
|
}
|
||||||
.ke-content pre {
|
.ke-content pre {
|
||||||
font-size:9pt;
|
font-size:9pt;
|
||||||
|
|
|
@ -98,6 +98,9 @@ KindEditor.plugin('image', function(K) {
|
||||||
yesBtn : {
|
yesBtn : {
|
||||||
name : self.lang('yes'),
|
name : self.lang('yes'),
|
||||||
click : function(e) {
|
click : function(e) {
|
||||||
|
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(self.edit.html())){
|
||||||
|
self.edit.html('');
|
||||||
|
}
|
||||||
// Bugfix: http://code.google.com/p/kindeditor/issues/detail?id=319
|
// Bugfix: http://code.google.com/p/kindeditor/issues/detail?id=319
|
||||||
if (dialog.isLoading) {
|
if (dialog.isLoading) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -29,6 +29,8 @@ KindEditor.plugin('lineheight', function(K) {
|
||||||
});
|
});
|
||||||
self.updateState();
|
self.updateState();
|
||||||
self.addBookmark();
|
self.addBookmark();
|
||||||
|
//curVal = key;
|
||||||
|
//self.cmd.doc.body.style.lineHeight = key;
|
||||||
self.hideMenu();
|
self.hideMenu();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -47,6 +47,9 @@ KindEditor.plugin('media', function(K) {
|
||||||
yesBtn : {
|
yesBtn : {
|
||||||
name : self.lang('yes'),
|
name : self.lang('yes'),
|
||||||
click : function(e) {
|
click : function(e) {
|
||||||
|
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(self.edit.html())){
|
||||||
|
self.edit.html('');
|
||||||
|
}
|
||||||
var url = K.trim(urlBox.val()),
|
var url = K.trim(urlBox.val()),
|
||||||
width = widthBox.val(),
|
width = widthBox.val(),
|
||||||
height = heightBox.val();
|
height = heightBox.val();
|
||||||
|
|
|
@ -25,7 +25,7 @@ KindEditor.plugin('preview', function(K) {
|
||||||
doc.open();
|
doc.open();
|
||||||
doc.write(self.fullHtml());
|
doc.write(self.fullHtml());
|
||||||
doc.close();
|
doc.close();
|
||||||
K(doc.body).css('background-color', '#FFF');
|
K(doc.body).css({'background-color': '#FFF','word-break':'break-all','word-wrap':'wrap-all'});
|
||||||
iframe[0].contentWindow.focus();
|
iframe[0].contentWindow.focus();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -129,6 +129,9 @@ KindEditor.plugin('table', function(K) {
|
||||||
yesBtn : {
|
yesBtn : {
|
||||||
name : self.lang('yes'),
|
name : self.lang('yes'),
|
||||||
click : function(e) {
|
click : function(e) {
|
||||||
|
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(self.edit.html())){
|
||||||
|
self.edit.html('');
|
||||||
|
}
|
||||||
var rows = rowsBox.val(),
|
var rows = rowsBox.val(),
|
||||||
cols = colsBox.val(),
|
cols = colsBox.val(),
|
||||||
width = widthBox.val(),
|
width = widthBox.val(),
|
||||||
|
@ -225,8 +228,10 @@ KindEditor.plugin('table', function(K) {
|
||||||
}
|
}
|
||||||
if (borderColor !== '') {
|
if (borderColor !== '') {
|
||||||
table.attr('borderColor', borderColor);
|
table.attr('borderColor', borderColor);
|
||||||
|
table.css("border-color",borderColor);
|
||||||
} else {
|
} else {
|
||||||
table.removeAttr('borderColor');
|
table.removeAttr('borderColor');
|
||||||
|
table.css("border-color","none");
|
||||||
}
|
}
|
||||||
self.hideDialog().focus();
|
self.hideDialog().focus();
|
||||||
self.cmd.range.moveToBookmark(bookmark);
|
self.cmd.range.moveToBookmark(bookmark);
|
||||||
|
@ -248,7 +253,10 @@ KindEditor.plugin('table', function(K) {
|
||||||
if (border !== ''){
|
if (border !== ''){
|
||||||
style += 'border:'+border+'px solid;';
|
style += 'border:'+border+'px solid;';
|
||||||
}
|
}
|
||||||
|
if (borderColor !== ''){
|
||||||
|
style += 'border-color:'+borderColor+';';
|
||||||
|
}
|
||||||
|
style += 'table-layout: '+'fixed;';
|
||||||
var html = '<table';
|
var html = '<table';
|
||||||
if (style !== '') {
|
if (style !== '') {
|
||||||
html += ' style="' + style + '"';
|
html += ' style="' + style + '"';
|
||||||
|
@ -275,7 +283,7 @@ KindEditor.plugin('table', function(K) {
|
||||||
for (var i = 0; i < rows; i++) {
|
for (var i = 0; i < rows; i++) {
|
||||||
html += '<tr>';
|
html += '<tr>';
|
||||||
for (var j = 0; j < cols; j++) {
|
for (var j = 0; j < cols; j++) {
|
||||||
html += '<td style="border:solid windowtext 1.0px;" >' + (K.IE ? ' ' : '<br />') + '</td>';
|
html += '<td style="border:solid windowtext 1.0px;text-overflow:inherit;overflow: hidden;white-space: nowrap" >' + (K.IE ? ' ' : '<br />') + '</td>';
|
||||||
}
|
}
|
||||||
html += '</tr>';
|
html += '</tr>';
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
|
@ -1011,6 +1011,13 @@ function showNormalImage(id) {
|
||||||
if (description_images.length>0) {
|
if (description_images.length>0) {
|
||||||
for (var i=0; i<description_images.length; i++){
|
for (var i=0; i<description_images.length; i++){
|
||||||
var image=$(description_images[i]);
|
var image=$(description_images[i]);
|
||||||
|
var _path = getRootPath();
|
||||||
|
//如果图片是视频图片,不处理。
|
||||||
|
if($(image).hasClass("mediaIco")){
|
||||||
|
var _src = _path+"/"+$(image).attr('src');
|
||||||
|
$(image).attr('src',_src);
|
||||||
|
return;
|
||||||
|
}
|
||||||
var element=$("<a></a>").attr("href",image.attr('src'));
|
var element=$("<a></a>").attr("href",image.attr('src'));
|
||||||
image.wrap(element);
|
image.wrap(element);
|
||||||
$(image).parent().colorbox({rel:'nofollow', close: "关闭", returnFocus: false});
|
$(image).parent().colorbox({rel:'nofollow', close: "关闭", returnFocus: false});
|
||||||
|
@ -1020,6 +1027,7 @@ function showNormalImage(id) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//文件、帖子、通知分享
|
//文件、帖子、通知分享
|
||||||
function org_id_click(){
|
function org_id_click(){
|
||||||
var sendText = $("input[name='org_id']:checked").next().text();
|
var sendText = $("input[name='org_id']:checked").next().text();
|
||||||
|
@ -1153,6 +1161,19 @@ function disable_down(source, des, hint){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getRootPath(){
|
||||||
|
//获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp
|
||||||
|
var curWwwPath=window.document.location.href;
|
||||||
|
//获取主机地址之后的目录,如: uimcardprj/share/meun.jsp
|
||||||
|
var pathName=window.document.location.pathname;
|
||||||
|
var pos=curWwwPath.indexOf(pathName);
|
||||||
|
//获取主机地址,如: http://localhost:8083
|
||||||
|
var localhostPaht=curWwwPath.substring(0,pos);
|
||||||
|
//获取带"/"的项目名,如:/uimcardprj
|
||||||
|
// var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);
|
||||||
|
var projectName="";
|
||||||
|
return(localhostPaht+projectName);
|
||||||
|
}
|
||||||
//自动保存草稿
|
//自动保存草稿
|
||||||
var editor2;
|
var editor2;
|
||||||
function elocalStorage(editor,mdu){
|
function elocalStorage(editor,mdu){
|
||||||
|
|
|
@ -11,10 +11,16 @@ function sd_create_editor(params){
|
||||||
height:"33px",// == undefined ? "30px":paramsHeight+"px",
|
height:"33px",// == undefined ? "30px":paramsHeight+"px",
|
||||||
minHeight:"33px",// == undefined ? "30px":paramsHeight+"px",
|
minHeight:"33px",// == undefined ? "30px":paramsHeight+"px",
|
||||||
width:params.width,
|
width:params.width,
|
||||||
|
/*
|
||||||
items:['emoticons','fontname',
|
items:['emoticons','fontname',
|
||||||
'forecolor', 'hilitecolor', 'bold', '|', 'justifyleft', 'justifycenter', 'insertorderedlist','insertunorderedlist', '|',
|
'forecolor', 'hilitecolor', 'bold', '|', 'justifyleft', 'justifycenter', 'insertorderedlist','insertunorderedlist', '|',
|
||||||
'formatblock', 'fontsize', '|','indent', 'outdent',
|
'formatblock', 'fontsize', '|','indent', 'outdent',
|
||||||
'|','imagedirectupload','more'],
|
'|','imagedirectupload','more'],*/
|
||||||
|
items : ['code','emoticons','fontname',
|
||||||
|
'forecolor', 'hilitecolor', 'bold', '|', 'justifyleft', 'justifycenter', 'insertorderedlist','insertunorderedlist', '|',
|
||||||
|
'formatblock', 'fontsize', '|','indent', 'outdent',
|
||||||
|
'|','imagedirectupload','table', 'media', 'preview',"more"
|
||||||
|
],
|
||||||
afterChange:function(){//按键事件
|
afterChange:function(){//按键事件
|
||||||
var edit = this.edit;
|
var edit = this.edit;
|
||||||
var body = edit.doc.body;
|
var body = edit.doc.body;
|
||||||
|
|
|
@ -32,9 +32,9 @@ table{ background:#fff;}
|
||||||
.min_search{ width:150px; height:20px; border:1px solid #d0d0d0; color:#666; background:url(../images/public_icon.png) 135px -193px no-repeat; cursor:pointer;}
|
.min_search{ width:150px; height:20px; border:1px solid #d0d0d0; color:#666; background:url(../images/public_icon.png) 135px -193px no-repeat; cursor:pointer;}
|
||||||
.db {display:block;}
|
.db {display:block;}
|
||||||
/* font & color */
|
/* font & color */
|
||||||
h2{ font-size:18px; color:#269ac9;}
|
h2{ font-size:18px; } /*color:#269ac9;*/
|
||||||
h3{ font-size:14px; color:#e8770d;}
|
h3{ font-size:14px;}/* color:#e8770d;*/
|
||||||
h4{ font-size:14px; color:#3b3b3b;}
|
h4{ font-size:14px; }/*color:#3b3b3b;*/
|
||||||
.f12{font-size:12px; font-weight:normal;}
|
.f12{font-size:12px; font-weight:normal;}
|
||||||
.f14{font-size:14px;}
|
.f14{font-size:14px;}
|
||||||
.f16{font-size:16px;}
|
.f16{font-size:16px;}
|
||||||
|
@ -703,7 +703,7 @@ a.postOptionLink:hover {color:#ffffff; background-color:#269ac9;}
|
||||||
.imageFuzzy {filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity:0.5;opacity: 0.5;}
|
.imageFuzzy {filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity:0.5;opacity: 0.5;}
|
||||||
.homepagePostReplyDes {float:left; width:642px; margin-left:15px;}
|
.homepagePostReplyDes {float:left; width:642px; margin-left:15px;}
|
||||||
.homepagePostReplyPublisher {font-size:12px; color:#888888; margin-bottom:5px;}
|
.homepagePostReplyPublisher {font-size:12px; color:#888888; margin-bottom:5px;}
|
||||||
.homepagePostReplyContent {font-size:12px; color:#484848; margin-bottom:12px;}
|
.homepagePostReplyContent {font-size:12px; color:#484848; margin:3px 5px 12px 5px;font: 14px/1.5 "sans serif",tahoma,verdana,helvetica;font-family: 微软雅黑, 宋体;}
|
||||||
.table_maxWidth table {max-width: 642px;}
|
.table_maxWidth table {max-width: 642px;}
|
||||||
.homepagePostProjectState {width:52px; 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:52px; 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:#269ac9;}
|
.homepagePostAssignTo {float:left; font-size:14px; color:#269ac9;}
|
||||||
|
@ -845,7 +845,7 @@ a.sortArrowActiveU {background:url(images/post_image_list.png) -17px -20px no-re
|
||||||
.postDetailTitle {width:580px; max-width:580px; margin-bottom:5px;}
|
.postDetailTitle {width:580px; max-width:580px; margin-bottom:5px;}
|
||||||
.postDetailDes {width:580px; max-width:580px; margin-bottom:6px; color:#888888;display:block;overflow:hidden;word-break:keep-all;text-overflow:ellipsis;}
|
.postDetailDes {width:580px; max-width:580px; margin-bottom:6px; color:#888888;display:block;overflow:hidden;word-break:keep-all;text-overflow:ellipsis;}
|
||||||
.postDetailDes p,div,em{word-break: break-all;word-wrap: break-word;}
|
.postDetailDes p,div,em{word-break: break-all;word-wrap: break-word;}
|
||||||
.homepagePostIntro p,.homepagePostIntro div,.homepagePostIntro em, .homepagePostIntro span{text-align: justify; text-justify:inter-ideograph; word-break: normal !important; word-wrap: break-word !important; line-height: 18px !important;}
|
.homepagePostIntro p,.homepagePostIntro div,.homepagePostIntro em, .homepagePostIntro span{text-align: justify; text-justify:inter-ideograph; word-break: normal !important; word-wrap: break-word !important; line-height: 23px !important;}
|
||||||
.postDetailCreater {color:#888888; font-size:12px; float:left; margin-right:25px;}
|
.postDetailCreater {color:#888888; font-size:12px; float:left; margin-right:25px;}
|
||||||
.postDetailDate {color:#888888; font-size:12px; float:left;}
|
.postDetailDate {color:#888888; font-size:12px; float:left;}
|
||||||
.postDetailReply { margin-top:28px; color:#888888; float:right;display: inline}
|
.postDetailReply { margin-top:28px; color:#888888; float:right;display: inline}
|
||||||
|
@ -1481,6 +1481,8 @@ a.choose-active {background-color:#269ac9; color:#ffffff;}
|
||||||
.subject-list-count {width:60px; text-align:center;}
|
.subject-list-count {width:60px; text-align:center;}
|
||||||
.subject-list-from {width:145px; text-align:center;}
|
.subject-list-from {width:145px; text-align:center;}
|
||||||
|
|
||||||
|
/*视频播放默认图标*/
|
||||||
|
.mediaIco{margin: 30px 0 30px 20px;}
|
||||||
a.st_up{ display: block; width:8px; float:left; height:13px; background:url(../images/pic_up.png) 0 0 no-repeat; margin-top:5px; margin-left:3px;}
|
a.st_up{ display: block; width:8px; float:left; height:13px; background:url(../images/pic_up.png) 0 0 no-repeat; margin-top:5px; margin-left:3px;}
|
||||||
a.st_down{ display: block; width:8px; float:left; height:13px; background:url(../images/pic_up.png) 0 -22px no-repeat; margin-top:5px; margin-left:3px;}
|
a.st_down{ display: block; width:8px; float:left; height:13px; background:url(../images/pic_up.png) 0 -22px no-repeat; margin-top:5px; margin-left:3px;}
|
||||||
a.st_img { display:block;width:32px; height:32px; border:1px solid #CCC; padding:1px;}
|
a.st_img { display:block;width:32px; height:32px; border:1px solid #CCC; padding:1px;}
|
||||||
|
|
|
@ -218,7 +218,7 @@ a.talk_btn{ background:#64bdd9; width:50px; height:20px; color:#fff; text-align:
|
||||||
a:hover.talk_btn{ background:#2a9dc1;}
|
a:hover.talk_btn{ background:#2a9dc1;}
|
||||||
/****讨论区内页***/
|
/****讨论区内页***/
|
||||||
.mt0{ margin-top:0px;}
|
.mt0{ margin-top:0px;}
|
||||||
.talk_info{ color:#7d7d7d; margin-left:60px; margin-top:10px;}
|
.talk_info{ margin-left:60px; margin-top:10px;}
|
||||||
.issue_desc li{list-style-type: decimal;margin-left: 20px;}
|
.issue_desc li{list-style-type: decimal;margin-left: 20px;}
|
||||||
.talk_info img {max-width:100%;}
|
.talk_info img {max-width:100%;}
|
||||||
a.talk_edit{ color:#426e9a; margin-right:5px;}
|
a.talk_edit{ color:#426e9a; margin-right:5px;}
|
||||||
|
|
|
@ -1132,3 +1132,5 @@ a.resource-tab-active {color:#fff; background-color:#269ac9; border-bottom:1px s
|
||||||
a.group-btn{ background: url(../images/course/hwork_icon.png) -2px -58px no-repeat !important; height:20px; display:block; padding-left:23px; color:#888888; -moz-transition :all 0s linear 0s; -webkit-transition :all 0s linear 0s; -o-transition:all 0s linear 0s; transition:all 0s linear 0s;}
|
a.group-btn{ background: url(../images/course/hwork_icon.png) -2px -58px no-repeat !important; height:20px; display:block; padding-left:23px; color:#888888; -moz-transition :all 0s linear 0s; -webkit-transition :all 0s linear 0s; -o-transition:all 0s linear 0s; transition:all 0s linear 0s;}
|
||||||
a.program-btn{background: url(../images/homepage_icon.png) -86px -393px no-repeat; width:30px; height:20px; display:block; padding-left:23px; color:#888888;}
|
a.program-btn{background: url(../images/homepage_icon.png) -86px -393px no-repeat; width:30px; height:20px; display:block; padding-left:23px; color:#888888;}
|
||||||
|
|
||||||
|
/*视频播放默认图标*/
|
||||||
|
.mediaIco{margin: 30px 0 30px 20px;width: 200px;}
|
||||||
|
|
Loading…
Reference in New Issue