From 338a7d3dedafa47d9cf587e0055453d02c73627f Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Fri, 24 Apr 2015 16:05:32 +0800
Subject: [PATCH 01/21] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=8E=BB=E6=8E=89code?=
=?UTF-8?q?=20icon?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/assets/kindeditor/kindeditor.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/assets/kindeditor/kindeditor.js b/public/assets/kindeditor/kindeditor.js
index 7d74752f1..ea6a5b1c7 100644
--- a/public/assets/kindeditor/kindeditor.js
+++ b/public/assets/kindeditor/kindeditor.js
@@ -257,7 +257,7 @@ K.options = {
minHeight : 100,
minChangeSize : 50,
zIndex : 811213,
- items : [ 'emoticons','code',
+ items : [ 'emoticons',
'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|',
'formatblock', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link'
From cde4a892e0c7ec98a2cf63ab523a2d8f07b18496 Mon Sep 17 00:00:00 2001
From: whimlex
Date: Fri, 24 Apr 2015 17:11:36 +0800
Subject: [PATCH 02/21] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E4=B8=BB=E9=A1=B5?=
=?UTF-8?q?=E7=AB=9E=E8=B5=9B=E9=80=9A=E7=9F=A5=E6=9D=A1=E6=95=B0=E5=AF=B9?=
=?UTF-8?q?=E4=B8=BB=E9=A1=B5=E6=A0=B7=E5=BC=8F=E7=9A=84=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/welcome/contest.html.erb | 175 +++++++++++++++++++++--------
app/views/welcome/course.html.erb | 3 -
2 files changed, 131 insertions(+), 47 deletions(-)
diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb
index fa23f3843..201afe574 100644
--- a/app/views/welcome/contest.html.erb
+++ b/app/views/welcome/contest.html.erb
@@ -256,60 +256,143 @@
<% end %>
+<% if @contest_notifications.count < 5%>
+
+
+ <%=l(:label_issue_feedback_activities)%>
+ <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
+ <%= link_to l(:label_my_feedback), suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
+
+
<%= link_to l(:label_more_information), forums_path %>
+
+
+ <% find_new_forum_topics(9 - @contest_notifications.count).each do |topic|%>
+ -
+
+
+ <%= link_to '['+topic.forum.name + ']',forum_path(topic.forum),:class => 'memo_Bar_title' %>
+ <%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;" %>
+
+
+
+ <%= "#{l(:label_updated_time, value: time_tag_welcome(topic_last_time topic))}".html_safe %>
+
+
+ <%=l(:label_question_sponsor)%> <%= link_to topic.author.login.truncate(10, omission: '...'),user_path(topic.author),title: topic.author.login %>
+
+
+ <% unless (topic.last_reply.nil? || topic.last_reply.author.nil?) %>
+ <%=l(:label_final_reply)%>
+ <%=link_to topic.last_reply.author.login.truncate(10, omission: '...'),user_path(topic.last_reply.author),title: topic.last_reply.author.login%>
+ <% end %>
+
+
+ <%=l(:label_reply)%>
+ (<%= link_to topic.try(:replies_count), topic.event_url %>)
+
+
+
+
+ <% end %>
+
+
+
-
-
<%=l(:label_current_attendingcontest_work)%>
-
- <% if Softapplication.count > 0%>
-
- <% find_all_hot_softapplication.map do |softapplication| break if(softapplication == find_all_hot_softapplication[5]) %>
-
-
-
- <%= image_tag('/images/app1.png')%>
-
-
- <%= link_to(softapplication.name, softapplication_path(softapplication.id), :class => "d-g-blue d-p-project-name", :title => "#{softapplication.name}", :target => "_blank") %>
-
-
-
+
+
<%=l(:label_current_attendingcontest_work)%>
+
+ <% if Softapplication.count > 0%>
+
+ <% find_all_hot_softapplication.map do |softapplication| break if(softapplication == find_all_hot_softapplication[5]) %>
+
+
+
+ <%= image_tag('/images/app1.png')%>
+
+
+ <%= link_to(softapplication.name, softapplication_path(softapplication.id), :class => "d-g-blue d-p-project-name", :title => "#{softapplication.name}", :target => "_blank") %>
+
+
+
>
<%=softapplication.description.to_s.truncate(50, omission: '...')%>
-
+
-
+
<%=l(:label_release_time)%>:
<%=format_time softapplication.created_at %>
-
+
-
- <% end; reset_cycle %>
+
+ <% end; reset_cycle %>
-
- <% else %>
-
+
+ <% else %>
+
<%= l(:label_no_ftapplication) %>
- <% end %>
-
-
+ <% end %>
+
+
+<% else %>
+
+
<%=l(:label_current_attendingcontest_work)%>
+
+ <% if Softapplication.count > 0%>
+
+ <% find_all_hot_softapplication.map do |softapplication| break if(softapplication == find_all_hot_softapplication[5]) %>
+
+
+
+ <%= image_tag('/images/app1.png')%>
+
+
+ <%= link_to(softapplication.name, softapplication_path(softapplication.id), :class => "d-g-blue d-p-project-name", :title => "#{softapplication.name}", :target => "_blank") %>
+
+
+
+ >
+ <%=softapplication.description.to_s.truncate(50, omission: '...')%>
+
+
-
-
- <%=l(:label_issue_feedback_activities)%>
- <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
- <%= link_to l(:label_my_feedback), suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
-
-
<%= link_to l(:label_more_information), forums_path %>
-
+
+
+
+
+
+
+ <%=l(:label_issue_feedback_activities)%>
+ <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
+ <%= link_to l(:label_my_feedback), suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
+
+
<%= link_to l(:label_more_information), forums_path %>
+
+
+ <% find_new_forum_topics(9 - @contest_notifications.count).each do |topic|%>
+ -
+
<%= link_to '['+topic.forum.name + ']',forum_path(topic.forum),:class => 'memo_Bar_title' %>
<%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;" %>
@@ -333,11 +416,15 @@
-
- <% end %>
-
-
-
+
+ <% end %>
+
+
+
+<% end%>
+
+
+
diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb
index 5c57a5ba1..cbceec2c7 100644
--- a/app/views/welcome/course.html.erb
+++ b/app/views/welcome/course.html.erb
@@ -57,7 +57,6 @@
From 7e833a472785d0a4ace534af211f541c3fa3b7a7 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Fri, 24 Apr 2015 17:41:18 +0800
Subject: [PATCH 04/21] =?UTF-8?q?=E7=BC=BA=E9=99=B7=E5=9B=BE=E7=89=87?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/helpers/application_helper.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index fed074bdb..3feb49547 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -329,7 +329,7 @@ module ApplicationHelper
imagesize = attachment.thumbnail(:size => "50*50")
imagepath = named_attachment_path(attachment, attachment.filename)
if imagesize
- link_to image_tag(thumbnail_path(attachment,"50")),
+ link_to image_tag(thumbnail_path(attachment), height: '73', width: '100'),
imagepath,
:title => attachment.filename
else
From db8b79f3b4d2141129cf2c92d2af7955d6013935 Mon Sep 17 00:00:00 2001
From: huang
Date: Mon, 27 Apr 2015 11:42:01 +0800
Subject: [PATCH 05/21] =?UTF-8?q?=E9=80=80=E5=87=BA=E9=A1=B9=E7=9B=AE/?=
=?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B8=89=E7=A7=8D=E6=A8=A1=E5=BC=8F=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/layouts/_join_exit_project.html.erb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/app/views/layouts/_join_exit_project.html.erb b/app/views/layouts/_join_exit_project.html.erb
index 67744e4b8..1d302babf 100644
--- a/app/views/layouts/_join_exit_project.html.erb
+++ b/app/views/layouts/_join_exit_project.html.erb
@@ -10,6 +10,10 @@
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
<%= link_to "#{l(:button_configure)}".html_safe, settings_project_path(@project), :class => "pr_join_a" %>
+ <% end %>
+ <% if Member.where(:user_id => User.current.id, :project_id=>@project.id).first.roles.first.to_s.include?("Manager") || User.current.admin? %>
<%= link_to "#{text}".html_safe,"javascript:void(0)" ,:onClick => "show_window();", :class => "pr_join_a",:id => "setting_project_type"%>
+ <% else %>
+ <%= exit_project_link(@project) %>
<% end %>
From 020e544b38a0fb9bb48e97bb1682c1793c1593e8 Mon Sep 17 00:00:00 2001
From: huang
Date: Mon, 27 Apr 2015 14:34:37 +0800
Subject: [PATCH 06/21] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE--?=
=?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88--=E4=B8=A4=E5=B1=82?=
=?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/words/_new_respond.html.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/words/_new_respond.html.erb b/app/views/words/_new_respond.html.erb
index 34e7c1ccf..243f8b2c4 100644
--- a/app/views/words/_new_respond.html.erb
+++ b/app/views/words/_new_respond.html.erb
@@ -1,5 +1,5 @@
<%= form_tag(words_create_reply_path, :remote => true) do %>
- <%= text_area_tag 'user_notes', "", :class => 'noline',
+ <%= text_area_tag 'user_notes', "", :class => 'w520 h50 mb5',
:style => "resize: none;", :rows => 4,
:placeholder => l(:label_feedback_respond_content),
:maxlength => 250 %>
@@ -9,7 +9,7 @@
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
<%= submit_tag l(:button_feedback_respond), :name => nil ,
- :class => "enterprise",
+ :class => "reply_btn",
:style => "float: right; margin-top: 1px; margin-right: 4px;"%>
<% end %>
\ No newline at end of file
From eba638b42e32b5bb0ecf294cf46b08ad77cf7d9b Mon Sep 17 00:00:00 2001
From: whimlex
Date: Mon, 27 Apr 2015 14:41:27 +0800
Subject: [PATCH 07/21] =?UTF-8?q?=E9=97=AE=E9=A2=98=E8=B7=9F=E8=B8=AA?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E3=80=81=E6=9B=B4=E6=96=B0=E7=9A=84=E6=9D=83?=
=?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/issues/_action_menu.html.erb | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb
index 49ea0d57e..94f1c6556 100644
--- a/app/views/issues/_action_menu.html.erb
+++ b/app/views/issues/_action_menu.html.erb
@@ -3,8 +3,6 @@
<%#= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'icon icon-copy' if User.current.allowed_to?(:add_issues, @project) %>
<%= link_to l(:button_delete), issue_path(@issue.id), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'talk_edit fr' if User.current.allowed_to?(:delete_issues, @project) %>
-<% if (@issue.author == User.current) || (User.current.admin?) %>
- <%= link_to l(:button_edit), edit_issue_path(@issue), :onclick => 'showAndScrollTo("all_attributes", "issue_notes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? %>
-<% else %>
- <%= link_to l(:label_user_newfeedback), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? %>
-<% end %>
\ No newline at end of file
+
+ <%= link_to l(:button_edit), edit_issue_path(@issue), :onclick => 'showAndScrollTo("all_attributes", "issue_notes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? && User.current.allowed_to?(:edit_issues, @project) %>
+ <%= link_to l(:label_user_newfeedback), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? && User.current.allowed_to?(:add_issue_notes, @project) %>
From f9aaaf38f9c795e3992a0471c6c1822f3ed83394 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Mon, 27 Apr 2015 14:54:01 +0800
Subject: [PATCH 08/21] =?UTF-8?q?=E6=89=93=E7=88=86=E4=B8=8B=E8=BD=BD?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=97=E7=AC=A6=E9=9B=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/zipdown_controller.rb | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/app/controllers/zipdown_controller.rb b/app/controllers/zipdown_controller.rb
index df354f107..0b7357ff2 100644
--- a/app/controllers/zipdown_controller.rb
+++ b/app/controllers/zipdown_controller.rb
@@ -180,14 +180,17 @@ class ZipdownController < ApplicationController
def zipping(zip_name_refer, files_paths, output_path, is_attachment=false, not_exist_file=[])
+ ic = Iconv.new('GBK//IGNORE', 'UTF-8//IGNORE')
+
rename_zipfile = zip_name_refer ||= "#{Time.now.to_i.to_s}.zip"
zipfile_name = "#{output_path}/#{rename_zipfile}"
Dir.mkdir(File.dirname(zipfile_name)) unless File.exist?(File.dirname(zipfile_name))
Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile|
files_paths.each do |filename|
- rename_file = File.basename(filename)
- rename_file = filename_to_real( File.basename(filename)) if is_attachment
+ rename_file = ic.iconv( (File.basename(filename)) ).to_s
+ rename_file = ic.iconv( filename_to_real( File.basename(filename))).to_s if is_attachment
+
begin
zipfile.add(rename_file, filename)
rescue Exception => e
From a23231ea7b55286619e725bc626b29af820f92a4 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Mon, 27 Apr 2015 15:29:09 +0800
Subject: [PATCH 09/21] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=A6=E7=94=9F?=
=?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BD=9C=E5=93=81=E6=97=B6=E7=9A=84=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/homework_attach/new.html.erb | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/app/views/homework_attach/new.html.erb b/app/views/homework_attach/new.html.erb
index 8697ff7ab..cf182716e 100644
--- a/app/views/homework_attach/new.html.erb
+++ b/app/views/homework_attach/new.html.erb
@@ -72,7 +72,7 @@
<%= f.text_field "name", :required => true, :size => 60, :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称", :onkeyup => "regexName();" %>
-
+
<%= f.text_area "description", :class => "w620", :maxlength => 3000, :style => "width:430px", :placeholder => "最多3000个汉字", :onkeyup => "regexDescription();"%>
-
-
+
-
-
-
- <%= render :partial => 'attachments/form' %>
-
+
+
+ 添加附件 :
+
+ <%= render :partial => 'attachments/form' %>
+
+
-
+
<%= render :partial => 'breadcrumbs',
- :locals => { :path => @path, :kind => 'dir', :revision => @rev } %>
+ :locals => {:path => @path, :kind => 'dir', :revision => @rev} %>
<%= render :partial => 'navigation' %>
-
+
+
-
<%if @repository.type.to_s=="Repository::Git"%>
- <%= @repos_url%>
- <%else %>
- <%=h @repository.url %>
+
+ <% if @repository.type.to_s=="Repository::Git" %>
+ <%= @repos_url %>
+ <% else %>
+ <%= h @repository.url %>
<% end %>
-
- (<%= l(:label_all_revisions) %><%= @repositories.sort.collect {|repo|
+
+
+ (<%= l(:label_all_revisions) %><%= @repositories.sort.collect { |repo|
link_to h(repo.name),
{:controller => 'repositories', :action => 'show',
:id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
- :class => 'repository' + (repo == @repository ? ' selected' : '') ,
- :class => "mb10 word_break c_orange"}.join(' | ').html_safe %>)
+ :class => 'repository' + (repo == @repository ? ' selected' : ''),
+ :class => "mb10 break_word c_orange" }.join(' | ').html_safe %>)
-
项目代码请设置好正确的编码方式(utf-8),否则中文会出现乱码
-
建立版本库文件夹,打开命令行执行如下:
-
-
-
git init
-
git add *
-
git commit -m "first commit"
-
git remote add origin
- http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
-
-
git config http.postBuffer 524288000 #设置本地post缓存为500MB
-
git push -u origin master:master
-
-
-
已经有本地库,还没有配置远程地址,打开命令行执行如下:
-
-
-
git remote add origin http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
-
git add .
-
git commit -m "first commit"
-
git config http.postBuffer 524288000 #设置本地post缓存为500MB
-
git push -u origin master:master
-
-
-
已有远程地址,创建一个远程分支,并切换到该分支,打开命令行执行如下:
-
-
-
git clone http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
-
git push
-
git checkout -b branch_name
-
git push origin branch_name
-
-
-
从网上获取别人的开源版本库,转交到trustie网站上,打开命令行执行如下:
-
-
-
git remote add trustie
- http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
-
-
git add .
-
git commit -m "first commit"
-
git config http.postBuffer 524288000 #设置本地post缓存为500MB
-
git push -u trustie master:master
-
李海提供
+
+
+
+
+
+
项目代码请设置好正确的编码方式(utf-8),否则中文会出现乱码
-<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
- <%= render :partial => 'dir_list' %>
-<% end %>
+
建立版本库文件夹,打开命令行执行如下:
+
+
+
git init
+
+
git add *
+
+
git commit -m "first commit"
+
+
git remote add origin
+ http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
+
+
+
git config http.postBuffer 524288000 #设置本地post缓存为500MB
+
+
git push -u origin master:master
+
+
+
+
已经有本地库,还没有配置远程地址,打开命令行执行如下:
+
+
+
git remote add origin http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
+
+
git add .
+
+
git commit -m "first commit"
-<%= render_properties(@properties) %>
-<% if authorize_for('repositories', 'revisions') %>
- <% if @changesets && !@changesets.empty? %>
-
- <%= l(:label_latest_revision_plural) %>
-
- <%= render :partial => 'revisions',
- :locals => {:project => @project, :path => @path,
- :revisions => @changesets, :entry => nil }%>
+
git config http.postBuffer 524288000 #设置本地post缓存为500MB
+
+
git push -u origin master:master
+
+
+
+
已有远程地址,创建一个远程分支,并切换到该分支,打开命令行执行如下:
+
+
+
git clone http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
+
+
git push
+
+
git checkout -b branch_name
+
+
git push origin branch_name
+
+
+
+
从网上获取别人的开源版本库,转交到trustie网站上,打开命令行执行如下:
+
+
+
git remote add trustie
+ http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git
+
+
+
git add .
+
+
git commit -m "first commit"
+
+
git config http.postBuffer 524288000 #设置本地post缓存为500MB
+
+
git push -u trustie master:master
+
+
李海提供
+
+
+ <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
+ <%= render :partial => 'dir_list' %>
<% end %>
-
- <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
- sep = '' %>
- <% if @repository.supports_all_revisions? && @path.blank? %>
- <%= link_to l(:label_view_all_revisions), {:action => 'revisions', :id => @project,
- :repository_id => @repository.identifier_param},
- :class => "orange_u_btn" %>
- <% sep = '|' %>
+
+ <%= render_properties(@properties) %>
+ <% if authorize_for('repositories', 'revisions') %>
+ <% if @changesets && !@changesets.empty? %>
+
+ <%= l(:label_latest_revision_plural) %>
+
+ <%= render :partial => 'revisions',
+ :locals => {:project => @project, :path => @path,
+ :revisions => @changesets, :entry => nil} %>
<% end %>
- <% if @repository.supports_directory_revisions? && ( has_branches || !@path.blank? || !@rev.blank? ) %>
- <%= sep %>
- <%= link_to l(:label_view_revisions),
- {:action => 'changes',
- :path => to_path_param(@path),
- :id => @project,
- :repository_id => @repository.identifier_param,
- :rev => @rev},
- :class => "orange_u_btn" %>
+
+ <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
+ sep = '' %>
+ <% if @repository.supports_all_revisions? && @path.blank? %>
+ <%= link_to l(:label_view_all_revisions), {:action => 'revisions', :id => @project,
+ :repository_id => @repository.identifier_param},
+ :class => "orange_u_btn" %>
+ <% sep = '|' %>
+ <% end %>
+ <% if @repository.supports_directory_revisions? && (has_branches || !@path.blank? || !@rev.blank?) %>
+ <%= sep %>
+ <%= link_to l(:label_view_revisions),
+ {:action => 'changes',
+ :path => to_path_param(@path),
+ :id => @project,
+ :repository_id => @repository.identifier_param,
+ :rev => @rev},
+ :class => "orange_u_btn" %>
+ <% end %>
+
+ <% if @repository.supports_all_revisions? %>
+ <% content_for :header_tags do %>
+ <%= auto_discovery_link_tag(
+ :atom, params.merge(
+ {:format => 'atom', :action => 'revisions',
+ :id => @project, :page => nil, :key => User.current.rss_key})) %>
+ <% end %>
<% end %>
-
- <% if @repository.supports_all_revisions? %>
- <% content_for :header_tags do %>
- <%= auto_discovery_link_tag(
- :atom, params.merge(
- {:format => 'atom', :action => 'revisions',
- :id => @project, :page => nil, :key => User.current.rss_key})) %>
- <% end %>
<% end %>
-<% end %>
-
-查看如何提交代码:
- <%= link_to(l(:label_how_commit_code_chinese), ch_usage_path, :class => "c_blue") %>
- <%= link_to('English', en_usage_path, :class => "c_blue") %>
-
+
+ 查看如何提交代码:
+ <%= link_to(l(:label_how_commit_code_chinese), ch_usage_path, :class => "c_blue") %>
+ <%= link_to('English', en_usage_path, :class => "c_blue") %>
+
+
<% content_for :header_tags do %>
- <%= stylesheet_link_tag "scm" %>
+ <%= stylesheet_link_tag "scm" %>
<% end %>
<% html_title(l(:label_repository)) -%>
diff --git a/public/javascripts/project.js b/public/javascripts/project.js
index 0aef464f8..4d10df1c2 100644
--- a/public/javascripts/project.js
+++ b/public/javascripts/project.js
@@ -59,6 +59,27 @@ function show_more_msg() {
}
}
+function showhelpAndScrollTo(id, focus) {
+ var information = $("#showgithelp");
+ var val = information.attr("value");
+ if (val == "show_help") {
+ $("#showgithelp").text("收起Git操作指南");
+ information.attr("value", "hide_help");
+ $('#' + id).show();
+ if (focus !== null) {
+ $('#' + focus).focus();
+ }
+ $('html, body').animate({scrollTop: $('#' + id).offset().top}, 400);
+ }
+ else {
+ $("#showgithelp").text("显示Git操作指南");
+ information.attr("value", "show_help");
+ $('#' + id).hide();
+ }
+}
+
+
+
///////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////项目讨论区
function regexSubject() {
@@ -191,27 +212,22 @@ function project_setting(n) {
}
//配置-验证项目名称
-function regex_project_name()
-{
+function regex_project_name() {
var name = $.trim($("#project_name").val());
- if(name.length == 0)
- {
+ if (name.length == 0) {
$("#project_name_notice").show();
return false;
}
- else
- {
+ else {
$("#project_name_notice").hide();
return true;
}
}
//配置-信息提交
-function submit_edit_project(id)
-{
- if(regex_project_name())
- {
- $("#edit_project_"+id).submit();
+function submit_edit_project(id) {
+ if (regex_project_name()) {
+ $("#edit_project_" + id).submit();
}
}
@@ -233,12 +249,13 @@ $(document).ready(function () {
//issue_project_id
});
-function showAndScrollTo(id, focus) {
- $('#' + id).show();
- if (focus !== null) {
+ function showAndScrollTo(id, focus) {
+ $('#' + id).show();
+ if (focus !== null) {
$('#' + focus).focus();
+ }
+ $('html, body').animate({scrollTop: $('#' + id).offset().top}, 400);
}
- $('html, body').animate({scrollTop: $('#' + id).offset().top}, 400);
/*缺陷完成度决定缺陷状态*/
@@ -287,7 +304,4 @@ function showAndScrollTo(id, focus) {
$("pre").addClass("break_word");
}
- });
-
-
-}
\ No newline at end of file
+ });
\ No newline at end of file
diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css
index 6894e3382..b1d2bb021 100644
--- a/public/stylesheets/project.css
+++ b/public/stylesheets/project.css
@@ -177,7 +177,7 @@ a:hover.upload_btn_grey{background:#8a8a8a;}
a.link_file{ background:url(../images/pic_file.png) 0 2px no-repeat; padding-left:20px; color:#64bdd9; }
a:hover.link_file{ background:url(../images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
.r_txt_tit{width:510px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color:#15bccf; float:left; color:#09658c; font-size:14px;}
-
+.repos_more{height:23px; width:100%; border:1px solid #CCC; background:#F6F6F6; text-align:center; font-size:12px; padding-top:2px;}
/* 弹框 新样式还没设计出来,暂时用的课程那边的样式 */
.alert .close{width:26px;height:26px;overflow:hidden;position:absolute;top:-10px;right:-502px;background:url(images/close.png) no-repeat;cursor:pointer;}
From 8b6369a84f8c12d70bb9948b359ddde576fb0bc4 Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Mon, 27 Apr 2015 17:01:52 +0800
Subject: [PATCH 14/21] =?UTF-8?q?kindeditor=E5=A2=9E=E5=8A=A0=E6=9B=B4?=
=?UTF-8?q?=E5=A4=9A=E5=8A=9F=E8=83=BD=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/assets/kindeditor/kindeditor.js | 50 ++++++++++++++++---
public/assets/kindeditor/lang/zh_CN.js | 1 +
public/assets/kindeditor/plugins/more/more.js | 15 ++++++
.../kindeditor/themes/default/default.css | 5 ++
4 files changed, 64 insertions(+), 7 deletions(-)
create mode 100644 public/assets/kindeditor/plugins/more/more.js
diff --git a/public/assets/kindeditor/kindeditor.js b/public/assets/kindeditor/kindeditor.js
index ea6a5b1c7..1abc92ead 100644
--- a/public/assets/kindeditor/kindeditor.js
+++ b/public/assets/kindeditor/kindeditor.js
@@ -260,7 +260,7 @@ K.options = {
items : [ 'emoticons',
'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|',
'formatblock', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
- 'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link'
+ 'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link', 'fullscreen',"more"
],
noDisableItems : ['source', 'fullscreen'],
colorTable : [
@@ -3909,10 +3909,15 @@ _extend(KToolbar, KWidget, {
});
},
get : function(name) {
- if (this._itemMap[name]) {
- return this._itemMap[name];
- }
- return (this._itemMap[name] = K('span.ke-icon-' + name, this.div).parent());
+// if (this._itemMap[name]) {
+// return this._itemMap[name];
+// }
+ if($("#define").css('display') == 'block'){
+ pdiv = $("#define")
+ }else if($("#full").css('display') == 'block'){
+ pdiv = $("#full")
+ }
+ return (this._itemMap[name] = K('span.ke-icon-' + name, pdiv).parent());
},
select : function(name) {
_selectToolbar.call(this, name, function(knode) {
@@ -4915,6 +4920,7 @@ KEditor.prototype = {
self.srcElement.before(container);
}
var toolbarDiv = K('.toolbar', container),
+ toolBarDivFull = K('.toolbar', container),
editDiv = K('.edit', container),
statusbar = self.statusbar = K('.statusbar', container);
container.removeClass('container')
@@ -4959,9 +4965,36 @@ KEditor.prototype = {
htmlList.push('');
}
});
+ htmlList.unshift('')
+ htmlList.push('')
+ var htmlListFull = [];
+ var fullItems = [
+ 'emoticons',
+ 'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|',
+ 'formatblock', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
+ 'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link', 'fullscreen',"more",
+ '/',
+ 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'plainpaste',
+ 'justifyfull', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
+ 'superscript', 'clearhtml', 'quickformat', 'selectall', 'fontname',
+ 'strikethrough', 'lineheight', '|', 'imagedirectupload', 'hr', 'pagebreak',
+ 'anchor', 'unlink'
+ ]
+ K.each(fullItems, function(i, name) {
+ if (name == '|') {
+ htmlListFull.push('');
+ } else if (name == '/') {
+ htmlListFull.push('');
+ } else {
+ htmlListFull.push('');
+ htmlListFull.push('');
+ }
+ });
+ htmlListFull.unshift('')
+ htmlListFull.push('')
var toolbar = self.toolbar = _toolbar({
src : toolbarDiv,
- html : htmlList.join(''),
+ html : htmlList.join('')+htmlListFull.join(''),
noDisableItems : self.noDisableItems,
click : function(e, name) {
e.stop();
@@ -4975,6 +5008,7 @@ KEditor.prototype = {
self.clickToolbar(name);
}
});
+
var editHeight = _removeUnit(height) - toolbar.div.height();
var edit = self.edit = _edit({
height : editHeight > 0 && _removeUnit(height) > self.minHeight ? editHeight : self.minHeight,
@@ -5306,8 +5340,9 @@ KEditor.prototype = {
createMenu : function(options) {
var self = this,
name = options.name,
- knode = self.toolbar.get(name),
+ knode = self.toolbar.get(name),
pos = knode.pos();
+
options.x = pos.x;
options.y = pos.y + knode.height();
options.z = self.options.zIndex;
@@ -5992,4 +6027,5 @@ _plugin('core', function(K) {
});
});
});
+
})(window);
diff --git a/public/assets/kindeditor/lang/zh_CN.js b/public/assets/kindeditor/lang/zh_CN.js
index f2b474351..a2e1010ea 100644
--- a/public/assets/kindeditor/lang/zh_CN.js
+++ b/public/assets/kindeditor/lang/zh_CN.js
@@ -9,6 +9,7 @@
KindEditor.lang({
imagedirectupload:'本地图片',
+ more: '更多功能',
source : 'HTML代码',
preview : '预览',
undo : '后退(Ctrl+Z)',
diff --git a/public/assets/kindeditor/plugins/more/more.js b/public/assets/kindeditor/plugins/more/more.js
new file mode 100644
index 000000000..31eb8567f
--- /dev/null
+++ b/public/assets/kindeditor/plugins/more/more.js
@@ -0,0 +1,15 @@
+KindEditor.plugin('more', function(K) {
+ var self = this, name = 'more';
+ self.plugin.more = {
+ click : function(){
+ if($("#define").css('display') == 'block'){
+ $("#define").css('display','none')
+ $("#full").css('display','block')
+ }else if($("#full").css('display') == 'block'){
+ $("#full").css('display','none')
+ $("#define").css('display','block')
+ }
+ }
+ }
+ self.clickToolbar(name,self.plugin.more.click)
+});
\ No newline at end of file
diff --git a/public/assets/kindeditor/themes/default/default.css b/public/assets/kindeditor/themes/default/default.css
index fcadd4fa6..d8085582e 100644
--- a/public/assets/kindeditor/themes/default/default.css
+++ b/public/assets/kindeditor/themes/default/default.css
@@ -243,6 +243,11 @@
width: 16px;
height: 16px;
}
+.ke-icon-more {
+ background-position: 0px -672px;
+ width: 16px;
+ height: 16px;
+}
.ke-icon-plainpaste {
background-position: 0px -704px;
width: 16px;
From f3fb0115e417bcbec73b64208e9ed20c76d408a5 Mon Sep 17 00:00:00 2001
From: whimlex
Date: Mon, 27 Apr 2015 17:15:21 +0800
Subject: [PATCH 15/21] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93git=E6=93=8D?=
=?UTF-8?q?=E4=BD=9C=E6=96=87=E6=A1=A3=E9=BB=98=E8=AE=A4=E5=B1=95=E5=BC=80?=
=?UTF-8?q?=EF=BC=8C=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/repositories/show.html.erb | 4 ++--
public/javascripts/project.js | 2 ++
public/stylesheets/project.css | 2 ++
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index c3931cc9e..077bccdad 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -30,8 +30,8 @@
-
-
+
+
项目代码请设置好正确的编码方式(utf-8),否则中文会出现乱码
diff --git a/public/javascripts/project.js b/public/javascripts/project.js
index 4d10df1c2..795a56dd4 100644
--- a/public/javascripts/project.js
+++ b/public/javascripts/project.js
@@ -59,6 +59,8 @@ function show_more_msg() {
}
}
+
+//项目版本库git帮助文档显示
function showhelpAndScrollTo(id, focus) {
var information = $("#showgithelp");
var val = information.attr("value");
diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css
index b1d2bb021..a62bd0389 100644
--- a/public/stylesheets/project.css
+++ b/public/stylesheets/project.css
@@ -177,7 +177,9 @@ a:hover.upload_btn_grey{background:#8a8a8a;}
a.link_file{ background:url(../images/pic_file.png) 0 2px no-repeat; padding-left:20px; color:#64bdd9; }
a:hover.link_file{ background:url(../images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
.r_txt_tit{width:510px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color:#15bccf; float:left; color:#09658c; font-size:14px;}
+/* 版本库展示Git操作文档 */
.repos_more{height:23px; width:100%; border:1px solid #CCC; background:#F6F6F6; text-align:center; font-size:12px; padding-top:2px;}
+.lh23{line-height: 23px;}
/* 弹框 新样式还没设计出来,暂时用的课程那边的样式 */
.alert .close{width:26px;height:26px;overflow:hidden;position:absolute;top:-10px;right:-502px;background:url(images/close.png) no-repeat;cursor:pointer;}
From 0970182cd5c497dd477782f1d150a769fb70fde5 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Mon, 27 Apr 2015 17:25:42 +0800
Subject: [PATCH 16/21] =?UTF-8?q?=E5=BD=93=E6=95=99=E5=B8=88=E5=8F=AA?=
=?UTF-8?q?=E8=AF=84=E5=88=86=E4=B8=8D=E8=AF=84=E8=AE=BA=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=8F=AF=E4=BB=A5=E8=BF=9B=E8=A1=8C=E5=9B=9E?=
=?UTF-8?q?=E5=A4=8D=20=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A=E8=AF=84?=
=?UTF-8?q?=E8=AE=BA=E5=9B=9E=E5=A4=8D=E6=A1=86=E6=A0=B7=E5=BC=8F=E4=B8=8D?=
=?UTF-8?q?=E6=AD=A3=E7=A1=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?=
=?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88=E6=A1=86=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/homework_attach_controller.rb | 6 ++++--
app/models/journals_for_message.rb | 6 +++++-
app/views/words/_journal_reply_items.html.erb | 2 +-
app/views/words/_new_respond.html.erb | 4 ++--
4 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/app/controllers/homework_attach_controller.rb b/app/controllers/homework_attach_controller.rb
index ee95277ce..811b19ad6 100644
--- a/app/controllers/homework_attach_controller.rb
+++ b/app/controllers/homework_attach_controller.rb
@@ -473,8 +473,10 @@ class HomeworkAttachController < ApplicationController
#保存评论
@is_comprehensive_evaluation = @is_teacher ? 1 : (@is_anonymous_comments ? 2 : 3) #判断当前评论是老师评论?匿评?留言
- if params[:new_form] && params[:new_form][:user_message] && params[:new_form][:user_message] != "" #有没有留言
- @homework.addjours User.current.id, params[:new_form][:user_message],0,@is_comprehensive_evaluation
+ if params[:new_form] && params[:new_form][:user_message] #有没有留言
+ @homework.addjours(User.current.id, params[:new_form][:user_message],0,@is_comprehensive_evaluation) if @is_teacher
+ else
+ @homework.addjours User.current.id, "",0,@is_comprehensive_evaluation if @is_teacher
end
@teacher_stars = @stars_reates.where("is_teacher_score = 1") #老师评分列表
diff --git a/app/models/journals_for_message.rb b/app/models/journals_for_message.rb
index 396501862..0a6944e3b 100644
--- a/app/models/journals_for_message.rb
+++ b/app/models/journals_for_message.rb
@@ -56,7 +56,7 @@ class JournalsForMessage < ActiveRecord::Base
has_many :acts, :class_name => 'Activity', :as => :act, :dependent => :destroy
- validates :notes, presence: true
+ validates :notes, presence: true, if: :is_homework_jour?
after_create :act_as_activity #huang
after_create :reset_counters!
after_destroy :reset_counters!
@@ -88,6 +88,10 @@ class JournalsForMessage < ActiveRecord::Base
self.find(message_id).destroy
# self.destroy_all "id = #{message_id}"
end
+
+ def is_homework_jour?
+ self.jour_type != "HomeworkAttach"
+ end
def reference_user
User.find(reply_id)
diff --git a/app/views/words/_journal_reply_items.html.erb b/app/views/words/_journal_reply_items.html.erb
index 716a27ffe..d52f7cfe1 100644
--- a/app/views/words/_journal_reply_items.html.erb
+++ b/app/views/words/_journal_reply_items.html.erb
@@ -40,7 +40,7 @@
<% if reply_allow %>
- <% if journal.jour_type == "Course" %>
+ <% if journal.jour_type == "Course" || journal.jour_type == "Project" %>
<%= render :partial => "words/new_respond_course", :locals => {:journal => journal, :m_reply_id => m_reply_id,:show_name => show_name} %>
<% else %>
<%= render :partial => "words/new_respond", :locals => {:journal => journal, :m_reply_id => m_reply_id,:show_name => show_name} %>
diff --git a/app/views/words/_new_respond.html.erb b/app/views/words/_new_respond.html.erb
index 243f8b2c4..34e7c1ccf 100644
--- a/app/views/words/_new_respond.html.erb
+++ b/app/views/words/_new_respond.html.erb
@@ -1,5 +1,5 @@
<%= form_tag(words_create_reply_path, :remote => true) do %>
- <%= text_area_tag 'user_notes', "", :class => 'w520 h50 mb5',
+ <%= text_area_tag 'user_notes', "", :class => 'noline',
:style => "resize: none;", :rows => 4,
:placeholder => l(:label_feedback_respond_content),
:maxlength => 250 %>
@@ -9,7 +9,7 @@
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
<%= submit_tag l(:button_feedback_respond), :name => nil ,
- :class => "reply_btn",
+ :class => "enterprise",
:style => "float: right; margin-top: 1px; margin-right: 4px;"%>
<% end %>
\ No newline at end of file
From e5e0a5857a56051774ddd7c4c5d6ff14e548c853 Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Mon, 27 Apr 2015 17:38:05 +0800
Subject: [PATCH 17/21] =?UTF-8?q?kindeditor=E5=A2=9E=E5=8A=A0=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E5=88=B0=E7=AE=80=E5=8D=95=E5=8A=9F=E8=83=BD=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/assets/kindeditor/kindeditor.js | 2 +-
public/assets/kindeditor/lang/zh_CN.js | 3 ++-
public/assets/kindeditor/themes/default/default.css | 5 +++++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/public/assets/kindeditor/kindeditor.js b/public/assets/kindeditor/kindeditor.js
index 1abc92ead..a31284adf 100644
--- a/public/assets/kindeditor/kindeditor.js
+++ b/public/assets/kindeditor/kindeditor.js
@@ -4972,7 +4972,7 @@ KEditor.prototype = {
'emoticons',
'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|',
'formatblock', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
- 'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link', 'fullscreen',"more",
+ 'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link', 'fullscreen',"less",
'/',
'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'plainpaste',
'justifyfull', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
diff --git a/public/assets/kindeditor/lang/zh_CN.js b/public/assets/kindeditor/lang/zh_CN.js
index a2e1010ea..3889ce5c1 100644
--- a/public/assets/kindeditor/lang/zh_CN.js
+++ b/public/assets/kindeditor/lang/zh_CN.js
@@ -9,7 +9,8 @@
KindEditor.lang({
imagedirectupload:'本地图片',
- more: '更多功能',
+ more: '切换到更多功能',
+ less: '切换到简单功能',
source : 'HTML代码',
preview : '预览',
undo : '后退(Ctrl+Z)',
diff --git a/public/assets/kindeditor/themes/default/default.css b/public/assets/kindeditor/themes/default/default.css
index d8085582e..5de213f37 100644
--- a/public/assets/kindeditor/themes/default/default.css
+++ b/public/assets/kindeditor/themes/default/default.css
@@ -333,6 +333,11 @@
width: 16px;
height: 16px;
}
+.ke-icon-less {
+ background-position: 0px -976px;
+ width: 16px;
+ height: 16px;
+}
.ke-icon-baidumap {
background-position: 0px -976px;
width: 16px;
From d07a1b945f2c3a696f9d48c35f927cc04c712322 Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Mon, 27 Apr 2015 17:38:32 +0800
Subject: [PATCH 18/21] =?UTF-8?q?kindeditor=E5=A2=9E=E5=8A=A0=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E5=88=B0=E7=AE=80=E5=8D=95=E5=8A=9F=E8=83=BD=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/assets/kindeditor/plugins/less/less.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 public/assets/kindeditor/plugins/less/less.js
diff --git a/public/assets/kindeditor/plugins/less/less.js b/public/assets/kindeditor/plugins/less/less.js
new file mode 100644
index 000000000..b24d31723
--- /dev/null
+++ b/public/assets/kindeditor/plugins/less/less.js
@@ -0,0 +1,15 @@
+KindEditor.plugin('less', function(K) {
+ var self = this, name = 'less';
+ self.plugin.less = {
+ click : function(){
+ if($("#define").css('display') == 'block'){
+ $("#define").css('display','none')
+ $("#full").css('display','block')
+ }else if($("#full").css('display') == 'block'){
+ $("#full").css('display','none')
+ $("#define").css('display','block')
+ }
+ }
+ }
+ self.clickToolbar(name,self.plugin.less.click)
+});
\ No newline at end of file
From e30c44684727bd43ae2bd440ad548a88f4c09df6 Mon Sep 17 00:00:00 2001
From: whimlex
Date: Mon, 27 Apr 2015 17:49:05 +0800
Subject: [PATCH 19/21] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=A7=81=E6=9C=89?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/issues/_form.html.erb | 1 +
config/locales/projects/zh.yml | 1 +
2 files changed, 2 insertions(+)
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb
index f0e28a975..4cd370adc 100644
--- a/app/views/issues/_form.html.erb
+++ b/app/views/issues/_form.html.erb
@@ -17,6 +17,7 @@
<% if @issue.safe_attribute? 'is_private' %>
<%= f.check_box :is_private, :no_label => true, :class => "ml30" %>
+
<% end %>
diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml
index 49fe0e19a..3b125181e 100644
--- a/config/locales/projects/zh.yml
+++ b/config/locales/projects/zh.yml
@@ -188,6 +188,7 @@ zh:
field_priority: 优先级
field_done_ratio: "% 完成"
field_is_private: 私有
+ field_is_private_tips: (设置为“私有”后本问题将仅对项目成员可见)
field_watcher: 跟踪者
label_relates_to: 关联到
label_duplicates: 重复
From a64b3940dd2991370dc5a75eadd241e39a82ab96 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Mon, 27 Apr 2015 17:50:03 +0800
Subject: [PATCH 20/21] =?UTF-8?q?1=E3=80=81=E5=BD=93=E6=95=99=E5=B8=88?=
=?UTF-8?q?=E8=AF=84=E8=AE=BA=E4=B8=BA=E7=A9=BA=E6=97=B6=EF=BC=8C=E9=A2=84?=
=?UTF-8?q?=E7=95=99=E4=B8=80=E9=83=A8=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/homework_attach/_review.html.erb | 3 ++-
public/stylesheets/css.css | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/views/homework_attach/_review.html.erb b/app/views/homework_attach/_review.html.erb
index 1666d8a43..921f16c8e 100644
--- a/app/views/homework_attach/_review.html.erb
+++ b/app/views/homework_attach/_review.html.erb
@@ -36,7 +36,8 @@
<% end %>
- <%= textilizable jour.nil? ? "" : jour.notes%>
+ <% notes = textilizable(jour.nil? ? "" : jour.notes)%>
+ <%= notes.empty? ? "".html_safe : notes%>
<% unless jour.nil? %>
<% ids = 'project_respond_form_'+ jour.id.to_s%>
diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css
index 2efec2bbf..9bda2b7eb 100644
--- a/public/stylesheets/css.css
+++ b/public/stylesheets/css.css
@@ -118,7 +118,7 @@ a:hover.ping_sub{ background:#14a8b9;}
.ping_dispic img{ height:46px; width:46px;}
.ping_discon{ float:left; width:350px; margin-left:15px;}
.ping_distop span{ float:left;}
-.ping_distop p{ color:#5f5f5f;}
+.ping_distop p{ color:#5f5f5f;min-height: 24px;}
.ping_disfoot a{ float:right; color:#15bccf; margin-left:5px;}
.ping_distop span a{ float:right; /*width:20px;*/ height:20px; background:url(images/star.png) -24px 0 no-repeat; margin-right:3px;}
From d2f1f7d1421706ebb0db572c9a8e8e4938b0703c Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Mon, 27 Apr 2015 17:52:16 +0800
Subject: [PATCH 21/21] =?UTF-8?q?1=E3=80=81=E5=BD=93=E6=95=99=E5=B8=88?=
=?UTF-8?q?=E8=AF=84=E8=AE=BA=E4=B8=BA=E7=A9=BA=E6=97=B6=EF=BC=8C=E9=A2=84?=
=?UTF-8?q?=E7=95=99=E4=B8=80=E9=83=A8=E5=88=86=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/words/_new_respond.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/words/_new_respond.html.erb b/app/views/words/_new_respond.html.erb
index 34e7c1ccf..33c523c33 100644
--- a/app/views/words/_new_respond.html.erb
+++ b/app/views/words/_new_respond.html.erb
@@ -10,6 +10,6 @@
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
<%= submit_tag l(:button_feedback_respond), :name => nil ,
:class => "enterprise",
- :style => "float: right; margin-top: 1px; margin-right: 4px;"%>
+ :style => "float: right; margin-top: 1px; margin-right: 4px;margin-bottom: 5px;"%>
<% end %>
\ No newline at end of file