@@ -43,10 +43,10 @@
<% end %>
<% unless member.user_id == @project.user_id %>
-
<%= delete_link membership_path(member),
:remote => true,
- :class => "c_dblue ml30 fl",
+ :class => "c_setting_blue ml15 fl",
:data => (!User.current.admin? && member.include?(User.current) ? {:confirm => l(:text_own_membership_for_project_confirmation)} : {confirm: l(:label_delete_confirm)}) if member.deletable? %>
<% end%>
diff --git a/app/views/projects/settings/_new_repositories.html.erb b/app/views/projects/settings/_new_repositories.html.erb
index a5f476079..e6a0ac296 100644
--- a/app/views/projects/settings/_new_repositories.html.erb
+++ b/app/views/projects/settings/_new_repositories.html.erb
@@ -19,13 +19,13 @@
+
<%= 'shared' if version.project != @project %> <%= link_to_version version %>
|
<%= format_date(version.effective_date) %> |
- <%=h version.description %> |
+ <%=h version.description %> |
<%= l("version_status_#{version.status}") %> |
<%=h format_version_sharing(version.sharing) %> |
-
+ |
<%= link_to_if_authorized(h(truncate(version.wiki_page_title,:length=>20)), {:controller => 'wiki',
:action => 'show',
:project_id => version.project,
diff --git a/app/views/projects/settings/_versions.html.erb b/app/views/projects/settings/_versions.html.erb
index 2ca875681..5b0f27953 100644
--- a/app/views/projects/settings/_versions.html.erb
+++ b/app/views/projects/settings/_versions.html.erb
@@ -42,9 +42,9 @@
|
<%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki',
- :action => 'show',
- :project_id => version.project,
- :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %>
+ :action => 'show',
+ :project_id => version.project,
+ :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %>
|
<% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
diff --git a/app/views/wiki/_content.html.erb b/app/views/wiki/_content.html.erb
index 1f32f58d2..b37e4f970 100644
--- a/app/views/wiki/_content.html.erb
+++ b/app/views/wiki/_content.html.erb
@@ -1,5 +1,6 @@
<%= textAreailizable content, :text, :attachments => content.page.attachments,
- :edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
+ :edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title, :class =>"break_word_firefox"})
+ %>
<%#= content.text.html_safe %>
diff --git a/app/views/words/destroy.js.erb b/app/views/words/destroy.js.erb
index d00db0695..c3d339685 100644
--- a/app/views/words/destroy.js.erb
+++ b/app/views/words/destroy.js.erb
@@ -1,8 +1,10 @@
<% if @journal_destroyed.nil? %>
alert('<%=l(:notice_failed_delete)%>');
<% elsif (['Principal','Project','Course', 'Bid', 'Contest', 'Softapplication'].include? @journal_destroyed.jour_type)%>
- <% if @jours_count %>
+ <% if @bid && @@jours_count %>
$('#jours_count').html("<%= @jours_count %>");
+ <% elsif @course && @jours_count%>
+ $('#course_jour_count').html("(<%= @jours_count %>)");
<% end %>
var destroyedItem = $('#word_li_<%=@journal_destroyed.id%>')
destroyedItem.fadeOut(600,function(){
diff --git a/config/locales/commons/zh.yml b/config/locales/commons/zh.yml
index b506ce14b..366841e37 100644
--- a/config/locales/commons/zh.yml
+++ b/config/locales/commons/zh.yml
@@ -354,7 +354,7 @@ zh:
label_feedback_tips: "有什么想说的,尽管来咆哮吧~~"
label_technical_support: "技术支持:"
label_feedback_success: "您的意见已经反馈到公共贴吧的新手讨论吧,我们会第一时间解决您的问题,谢谢支持!"
- label_feedback_value: "用户意见反馈"
+ label_feedback_value: "用户反馈"
diff --git a/public/javascripts/feedback.js b/public/javascripts/feedback.js
index a3707b312..dfd3e10b2 100644
--- a/public/javascripts/feedback.js
+++ b/public/javascripts/feedback.js
@@ -5,17 +5,18 @@
minStatue : true,
skin : 'blue',
durationTime : 1000
- };
+ }
var options = $.extend(defaults, options);
this.each(function(){
+ //???????
var thisBox = $(this),
closeBtn = thisBox.find('.close_btn' ),
show_btn = thisBox.find('.show_btn' ),
sideContent = thisBox.find('.side_content'),
sideList = thisBox.find('.side_list')
;
- var defaultTop = thisBox.offset().top;
+ var defaultTop = thisBox.offset().top; //????????top
thisBox.css(options.float, 0);
if(options.minStatue == "true"){
@@ -24,34 +25,59 @@
show_btn.css('width', 25);
}
+ //close
closeBtn.bind("click",function(){
sideContent.animate({width: '0px'},"fast");
show_btn.stop(true, true).delay(300).animate({ width: '25px'},"fast");
- cookiesave('minStatue','false','','','');
+ cookiesave('minStatue','true','','','');
});
+ //show
show_btn.bind("click",function() {
$(this).animate({width: '0px'},"fast");
sideContent.stop(true, true).delay(200).animate({ width: '154px'},"fast");
- cookiesave('minStatue','true','','','');
+ cookiesave('minStatue','false','','','');
});
- });
+
+
+
+ }); //end this.each
};
})(jQuery);
+
+$(function(){
+ $("#button1").click(function(){
+ myTips("<%= l(:label_feedback_success) %>","success");
+ });
+
+});
+
+function f_submit()
+{
+ var subject = $("#memo_subject").val();
+ var content = $("#memo_content_1").val();
+ $("#memo_subject").val(subject+":"+ content.substr(0,18));
+ $("#new_memo").submit();
+}
+
function cookiesave(n, v, mins, dn, path)
{
if(n)
{
+
if(!mins) mins = 365 * 24 * 60;
if(!path) path = "/";
var date = new Date();
+
date.setTime(date.getTime() + (mins * 60 * 1000));
+
var expires = "; expires=" + date.toGMTString();
+
if(dn) dn = "domain=" + dn + "; ";
document.cookie = n + "=" + v + expires + "; " + dn + "path=" + path;
+
}
}
-
function cookieget(n)
{
var name = n + "=";
@@ -61,18 +87,11 @@ function cookieget(n)
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(name) == 0){
return c.substring(name.length,c.length);}
+
}
return false;
}
-$(function() {
- $("#scrollsidebar").fix({
- float : 'right', //default.left or right
- minStatue : cookieget('minStatue'),
- skin : 'green', //default.gray or blue
- durationTime : 600
- });
-});
$(function(){
$("#button1").click(function(){
@@ -86,4 +105,16 @@ function f_submit()
var content = $("#memo_content").val();
$("#memo_subject").val(subject+":"+ content.substr(0,18));
$("#new_memo").submit();
-}
\ No newline at end of file
+}
+
+
+$(document).ready(function () {
+ $(function () {
+ $("#scrollsidebar").fix({
+ float: 'right', //default.left or right
+ minStatue: cookieget('minStatue'),
+ skin: 'green', //default.gray or blue
+ durationTime: 600
+ });
+ });
+});
\ No newline at end of file
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 3e88bb30a..d00ad37e7 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -3152,6 +3152,18 @@ input[class~='m3p10'], .m3p10 {
.break_word{word-break: break-all;word-wrap: break-word;}
.break_word_firefox{white-space: pre-wrap;word-break: break-all;}
+/*日历选择图*/
+img.ui-datepicker-trigger {
+ display:block;
+ background:url(/images/public_icon.png) -31px 0 no-repeat;
+ cursor: pointer;
+ vertical-align: middle;
+ margin-left: 5px;
+ margin-top: 5px;
+ width:16px;
+ height:15px;
+ float:left;
+}
/*lizanle 日誌搜索結果樣式*/
.search_results {
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index 1fed23fc1..b8e23f4be 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -331,6 +331,7 @@ a:hover.st_add{ color:#ff8e15;}
.upbtn{ margin:40px 0 0 15px; display:block; padding:2px 5px; border:1px solid #eaeaea;}
.upbtn:hover{border:1px solid #64bdd9; color:#64bdd9;cursor: pointer;}
.upload_file{margin-left: -60px;margin-top: 40px;width: 50px;position: absolute;height: 24px;opacity: 0;cursor: pointer}
+
/* 功能倒计时*/
.w_img{ float:left; margin:10px 10px 15px 0px;}
.w_p{ float:left; color:#15bccf; font-size:16px; font-weight:bold; margin-top:70px; }
diff --git a/public/stylesheets/nyan.css b/public/stylesheets/nyan.css
index de4dcb65c..a6dfe3f90 100644
--- a/public/stylesheets/nyan.css
+++ b/public/stylesheets/nyan.css
@@ -734,7 +734,7 @@ div.actions input[type="text"] {
.replies {
overflow: hidden;
max-width: 100%;
- float: right;
+ float: left;
/*max-width: 90%;*/
}
diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css
index 2f6a4babe..6894e3382 100644
--- a/public/stylesheets/project.css
+++ b/public/stylesheets/project.css
@@ -55,6 +55,9 @@ a:hover.btn_free{ background:#d63502;}
a.invi_search_btn{ background:#15bccf; color:#fff; text-align: center; width:40px; height:22px;border:1px solid #15bccf; padding-top:2px; cursor:pointer;}
a:hover.invi_search_btn{ background:#0da1b2; border:1px solid #0da1b2;}
.rolebox{ margin:10px 0;}
+.w180_h{ width:180px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis; text-align:left;}
+.w140_h{ width:119px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;text-align:left; padding-left:5px;}
+
/*问题跟踪*/
.problem_top{ margin:10px 0 ;}
.problem_search_input{ border:1px solid #64bdd9; width:180px; height:24px; color:#9b9b9b; padding-left:5px; margin-bottom:5px;}
@@ -368,6 +371,7 @@ blockquote {
}
/*上传项目图片*/
.upload_file{margin-left: -60px;margin-top: 40px;width: 50px;position: absolute;height: 24px;opacity: 0;cursor: pointer}
+
/*配置*/
.pro_st_ttl{ height:24px;}
.pro_st_ctt{height:auto; clear:both;}
@@ -390,14 +394,14 @@ blockquote {
.box ul li{ line-height:1.9;}
.members_left{ float:left; width:410px; margin-right:20px; text-align:center;}
.members_left{}
-.members_left ul li{ height:30px; border-bottom:1px solid #E4E4E4; width:410px; padding-top:10px; }
-.members_left ul li a{ float:left; text-align:center;}
-.members_left ul li span{ float:left; text-align:center; color:#484747;}
+.members_left ul li{ height:22px; border-bottom:1px solid #E4E4E4; width:410px; padding-top:5px; }
+.members_left ul li a{ float:left; text-align:left;}
+.members_left ul li span{ float:left; text-align:center; color:#484747;text-align:left;}
.w150{ text-align:center; width:150px;}
.f_b{ font-weight: bold;}
.members_right{ float:left; width:240px;}
.members_right label{ margin-left:15px;}
-.members_jion{ background:#f0fbff; padding:10px; height:200px; margin-bottom:10px;}
+.members_jion{ background:#f0f0f0; padding:10px; height:200px; margin-bottom:10px;}
.members_add{ padding-left:10px; }
.member_search_input{ border:1px solid #15bccf; background:#fff; width:170px; height:24px; color:#9b9b9b; padding-left:5px; margin-bottom:10px;}
.member_search_btn{ background:#15bccf; color:#fff; text-align: center; width:40px; height:22px;border:1px solid #15bccf; padding-top:2px; cursor:pointer;}
@@ -471,6 +475,7 @@ img.ui-datepicker-trigger {
.wiki_con_tit{ font-size:14px; color:#09658c; font-weight:bold;width:630px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis; float:left; margin-bottom:10px;}
.wiki_con_box{ line-height:1.9; color:#2d2d2d;}
.wiki_page_con{ border-bottom:1px dashed #CCC; margin-bottom:10px; padding-bottom:10px;}
+.wiki_page p{word-break: break-all;word-wrap: break-word;}
#wiki_new_box{ display:none;}
/*wiki显示附加*/
.wiki-page {font-size: 14px;color: #09658C !important; font-weight: bold;width: 630px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;margin-bottom: 10px;}
diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css
index 2f45bbd69..e07efadd5 100644
--- a/public/stylesheets/public.css
+++ b/public/stylesheets/public.css
@@ -105,6 +105,7 @@ a:hover.c_orange{color: #d33503;}
a.c_lorange{color:#ff9900;}
a:hover.c_lorange{color:#fff;}
a.c_blue{ color:#15bccf;}
+a.c_setting_blue{color: #0781B4}
a.c_dblue{ color:#09658c;}
a:hover.c_dblue{ color:#15bccf;}
a.c_white{ color:#fff;}
@@ -131,6 +132,7 @@ a.c_green{ color:#28be6c;}
.c_blue{ color:#15bccf;}
.c_red{ color:#F00;}
.c_green{ color:#28be6c;}
+.c_grey{color:#999;}
.c_dblue{ color:#09658c;}
.b_blue{background:#64bdd9;}
.b_green{background:#28be6c;}
@@ -213,14 +215,15 @@ div#menu {height:41px; font-size:14px; font-weight:bold; }
div#menu ul {float: left;}
div#menu ul.menu { padding-left: 30px; }
div#menu li {position: relative; z-index: 9; margin: 0; display: block; float: left; }
-div#menu li:hover>ul { left: -2px;}
+/*div#menu li:hover>ul { right: 5px;}*/
div#menu a {position: relative;z-index: 10; height: 41px; display: block; float: left;line-height: 41px; text-decoration: none; font-size:14px; }
div#menu a:hover, div#menu a:hover span { color: #a1ebff; }
div#menu li.current a {}
div#menu {display: block; cursor: pointer; background-repeat: no-repeat;background-position: 95% 0;padding-right: 15px; _padding-right: 20px;}
-div#menu ul a.parent {background: url(../images/item.png) -20px -30px no-repeat; width:60px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
-div#menu ul a.parent:hover {background: url(../images/item.png) -20px -60px no-repeat;}
-div#menu ul ul a.parent {background: url(../images/item.png) -20px 6px no-repeat;}
+div#menu ul a.user_name { width:170px; text-align:right; margin:0; }
+.pic_triangle{background: url(../images/item.png) -90px -48px no-repeat; float:right; display:block; width:10px; height:10px; margin-top:12px; margin-left:7px;}
+.pic_triangle:hover{background: url(../images/item.png) -90px -78px no-repeat; }
+div#menu ul ul a.parent {background: url(../images/item.png) -20px 6px no-repeat;width:60px;}
div#menu ul ul a.parent:hover {background: url(../images/item.png) -20px -11px no-repeat;}
/* menu::level1 */
div#menu a { padding: 5px 12px 0 10px;line-height: 30px; color: #fff;}
@@ -228,13 +231,13 @@ div#menu a { padding: 5px 12px 0 10px;line-height: 30px; color: #fff;}
div#menu li.last { background: none; }
/* menu::level2 */
div#menu ul ul li { background: none; }
-div#menu ul ul { position: absolute;top: 38px; left: -999em; width: 90px; padding: 5px 0 0 0; background:#fff; border:1px solid #15bccf; margin-top:1px;}
+div#menu ul ul { position: absolute;top: 38px; width: 90px; padding: 5px 0 0 0; background:#fff; border:1px solid #15bccf; margin-top:1px;}
div#menu ul ul a {padding: 0 0 0 15px; height: auto; float: none;display: block; line-height: 24px; font-size:12px; font-weight:normal;color:#15bccf;}
div#menu ul ul a:hover { color:#ff9900;}
div#menu ul ul li.last { margin-left:15px; }
div#menu ul ul li {width: 100%;}
/* menu::level3 */
-div#menu ul ul ul {padding: 0;margin: -38px 0 0 92px !important; width:200px; }
+div#menu ul ul ul {padding: 0;margin: -38px 0 0 90px !important; width:200px; }
div#menu ul ul ul li a{ width:185px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color:#15bccf;}
/*主类容*/
@@ -288,6 +291,7 @@ a.close_btn {background-position:-44px 0;}
a:hover.close_btn {background-position:-66px 0;}
.show_btn {background-position:-119px 0;}
.msgserver a {color:#15bccf; }
+.msgserver a:hover { text-decoration:underline; }
.hiddent{ overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
@@ -404,8 +408,10 @@ div.flash.warning, .conflict {
/*弹出框*/
.black_overlay{display:none;position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:black;z-index:1001;-moz-opacity:0.8;opacity:.80;filter:alpha(opacity=80);}
.white_content{display:none;position:fixed;top:15%;left:30%;width:420px;height: auto; margin-bottom:20px;padding:16px;border:3px solid #15bccf;background-color:white;z-index:1002;overflow:auto;}
-.white_content02{display:none;position:fixed;top:15%;left:30%;width:200px;height: auto; margin-bottom:20px;padding:10px;border:3px solid #15bccf;background-color:white;z-index:1002;overflow:auto;}
+.white_content02{display:none;position:fixed;top:15%;left:30%;width:310px;height: auto; margin-bottom:20px;padding:10px;border:3px solid #15bccf;background-color:white;z-index:1002;overflow:auto;}
.floatbox{ width:420px; border:3px solid #15bccf; background:#fff; padding:5px;}
a.box_close{ display:block; float:right; width:16px; height:16px; background:url(../images/img_floatbox.png) 0 0 no-repeat;}
a.box_close{background:url(../images/img_floatbox.png) -22px 0 no-repeat;}
+/*文本左对齐*/
+.tl{text-align: left;}
|