Merge branch 'dev_hjq' of http://repository.trustie.net/xianbo/trustie2 into dev_hjq

This commit is contained in:
huang 2015-04-11 14:26:03 +08:00
commit e3d815b51d
6 changed files with 638 additions and 139 deletions

View File

@ -1,129 +1,69 @@
<%
btn_tips = l(:label_news_new)
label_tips = l(:label_news)
%>
<div class="project_r_h">
<h2 class="project_h2"><%= l(:label_news) %></h2>
<h2 class="project_h2"><%= label_tips %></h2>
</div>
<script type="text/javascript">
function regexTitle()
{
var name = $("#news_title").val();
if(name.length ==0)
{
$("#title_notice_span").text("标题不能为空");
$("#title_notice_span").css('color','#ff0000');
$("#title_notice_span").focus();
return false;
}
else if(name.length <= 60)
{
$("#title_notice_span").text("填写正确");
$("#title_notice_span").css('color','#008000');
return true;
}
else
{
$("#title_notice_span").text("标题超过60个字符");
$("#title_notice_span").css('color','#ff0000');
$("#title_notice_span").focus();
return false;
}
}
<div class="talk_top">
<p class="fl"><%= l(:label_total_news) %><span><%= @news_count %></span><%= l(:label_project_new_list) %></p>
<% if @project && User.current.allowed_to?(:manage_news, @project) %>
<%= link_to(btn_tips, new_project_news_path(@project),
:class => 'problem_new_btn fl c_dorange') %>
<div class="cl"></div>
function submitComment()
{
$("#add_comment_form").submit();
}
<% end %>
<div class="cl"></div>
</div>
function regexDescription()
{
var name = $("#news_description").val();
if(name.length ==0)
{
$("#description_notice_span").text("描述不能为空");
$("#description_notice_span").css('color','#ff0000');
$("#description_notice_span").focus();
return false;
}
else
{
$("#description_notice_span").text("填写正确");
$("#description_notice_span").css('color','#008000');
return true;
}
}
<div>
<% if @newss.empty? %>
<p class="nodata">
<%= l(:label_no_data) %>
</p>
<% else %>
<% @newss.each do |news| %>
<div class="problem_main">
<%= link_to image_tag(url_to_avatar(news.author),:width => 42,:height => 42), user_path(news.author), :class => "problem_pic fl" %>
<div class="problem_txt fl mt5">
<%= link_to_user_header(news.author,false,{:class=> 'problem_name c_orange fl'}) if news.respond_to?(:author) %>
<span class="fl"> <%= l(:label_release_news) %></span><%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %><br />
<div class="cl mb5"></div>
<p id="news_description_<%= news.id %>" class="news_description mt5"><%= news.description %><br /> <%= l(:label_create_time) %> <%= format_time(news.created_on) %></p>
<div class="news_foot" style="display: none;" onclick="news_show_more_des(<%= news.id %>);" id="news_foot_<%= news.id %>"><%= l(:label_expend_information) %> <span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span></div>
</div>
<div class="cl"></div>
</div><!--problem_main end-->
function submitNews()
{
if(regexTitle() && regexDescription())
{
$("#news-form").submit();
}
}
</script>
<% if authorize_for('news', 'edit') %>
<div id="edit-news" style="display:none;">
<%= labelled_form_for :news, @news, :url => news_path(@news),
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'project_form', :locals => { :f => f, :is_new => false } %>
<% end %>
<div id="preview" class="wiki"></div>
</div>
<% end %>
</div>
<!--end-->
<ul class="wlist">
<%= pagination_links_full @news_pages, @news_count, :per_page_links => false, :remote => false, :flag => true%>
</ul>
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %>
<% end %>
<div class="problem_main">
<%= link_to image_tag(url_to_avatar(@news.author),:width => 42,:height => 42), user_path(@news.author), :class => "problem_pic fl" %>
<div class="problem_txt fl mt5">
<h4 class="r_txt_tit mb5"> <%=h @news.title %></h4>
<%#= watcher_link(@news, User.current) %>
<%= link_to(l(:button_edit),
edit_news_path(@news),
:class => 'talk_edit fr',
:accesskey => accesskey(:edit),
:onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_news, @project) %>
<%= delete_link news_path(@news),:class => 'talk_edit fr' if User.current.allowed_to?(:manage_news, @project) %>
<div class="cl"></div>
<div class="mb5"><%= textAreailizable(@news, :description) %><br /> <%= l(:label_create_time) %> <%= format_time(@news.created_on) %></div>
<%= link_to_attachments_course @news %>
<!--<a href="#" class=" link_file">附件爱覅俄方if.zip(27.5kB)</a> -->
</div>
<div class="cl"></div>
</div>
<!--add comment-->
<% if @news.commentable? %>
<div class="msg_box">
<%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %>
</p>
<%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form") do %>
<div class="box">
<%= text_area 'comment', 'comments', :rows => 5, :style => "width:98%" %>
</div>
<a onclick="submitComment();" class="blue_btn fr mt10" href="javascript:void(0)" ><%= l(:label_comment_add) %></a>
<% end %>
<% end %>
</div>
<% comments = @comments.reverse %>
<% comments.each do |comment| %>
<% next if comment.new_record? %>
<div class="ping_C mb10">
<div class="ping_dispic"><%= link_to image_tag(url_to_avatar(comment.author),:width => 42,:height => 42), user_path(comment.author), :class => "ping_dispic" %></div>
<div class="ping_discon">
<div class="ping_distop">
<%= link_to_user_header(comment.author,false,:class => 'c_blue fb fl mb10 ') if comment.respond_to?(:author) %><span class="c_grey fr"><%= format_time(comment.created_on) %></span>
<div class="cl"></div>
<p><%= textAreailizable(comment.comments) %></p>
</div>
<div class="ping_disfoot"><%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:title => l(:button_delete) %>
</div>
</div>
<div class="cl"></div>
</div>
<% end if @comments.any? %>
</div>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
<% html_title @news.title -%>
<% html_title(l(:label_news_plural)) -%>
<script type='text/javascript'>
$(document).ready(function ($) {
$('.content-text-list').each(function () {
$(this).find('.delete_icon').hide();
$(this).mouseenter(function (event) {
$(this).find('.delete_icon').show();
});
$(this).mouseleave(function (event) {
$(this).find('.delete_icon').hide();
});
});
});
</script>

View File

@ -1,9 +1,490 @@
<div class="project_r_h">
<h2 class="project_h2"><%=l(:label_settings)%></h2>
<h2 class="project_h2">配置</h2>
</div>
<% if @project.project_type == 1 %>
<%= render_tabs course_settings_tabs %>
<% else %>
<%= render_project_settings_tabs project_settings_tabs %>
<% end %>
<% html_title(l(:label_settings)) -%>
<div class=" pro_setting">
<div id="pro_st_tb_" class="pro_st_tb_">
<ul>
<li id="pro_st_tb_1" class="pro_st_hovertab" onclick="x:HoverLi(1);">信息</li>
<li id="pro_st_tb_2" class="pro_st_normaltab" onclick="i:HoverLi(2);">模块</li>
<li id="pro_st_tb_3" class="pro_st_normaltab" onclick="g:HoverLi(3);">成员</li>
<li id="pro_st_tb_4" class="pro_st_normaltab" onclick="g:HoverLi(4);">版本</li>
<li id="pro_st_tb_5" class="pro_st_normaltab" onclick="g:HoverLi(5);">问题类别</li>
<li id="pro_st_tb_6" class="pro_st_normaltab" onclick="g:HoverLi(6);">版本库</li>
<li id="pro_st_tb_7" class="pro_st_normaltab" onclick="g:HoverLi(7);">活动(时间跟踪)</li>
<li id="pro_st_tb_8" class="pro_st_normaltab" onclick="g:HoverLi(8);">代码评审</li>
</ul>
</div><!--tb_ end-->
<div class="cl"></div>
<div class="pro_st_ctt">
<div class="pro_st_dis" id="pro_st_tbc_01">
<ul class="newpro_box ">
<form>
<li class="ml110">
<a href="javascript:void(0)" class="upimg fl"><img src="images/project/img_upsampn.png" width="60" height="60" alt="上传图片" /></a>
<input type="file" class="upbtn"/>
<div class="cl"></div>
</li>
<li >
<label class="label02"><span class="c_red">*</span>&nbsp;名称&nbsp;&nbsp;</label>
<input type="text" name="" class=" w543" >
</li>
<div class="cl"></div>
<li >
<label class="label02" >&nbsp;&nbsp;描述&nbsp;&nbsp;</label>
<textarea name="" placeholder="最多3000个汉字(或6000个英文字符)" class=" w543" ></textarea>
<div class="cl"></div>
</li>
<li >
<label class="label02"><span class="c_red">*</span>&nbsp;组织&nbsp;&nbsp;</label>
<select id="" name="">
<option value="" selected="selected">--请选择组织--</option>
<option value="">广州超算中心</option>
</select>
</li>
<div class="cl"></div>
<li >
<label class="label02">公开&nbsp;&nbsp;</label>
<input type="checkbox" name="" checked="" >
<div class="cl"></div>
</li>
<li >
<label class="label02">隐藏代码库&nbsp;&nbsp;</label>
<input type="checkbox" name="" checked="" >
<div class="cl"></div>
</li>
</form>
</ul>
<a href="javascript:void(0)" class="blue_btn ml110" >保存</a>
<div class="cl"></div>
</div><!--tbc_01 end-->
<div class="pro_st_undis" id="pro_st_tbc_02">
<div class="box pl15">
<h3 class="c_blue mb10">请选择此项目可以使用的模块:</h3>
<ul>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 问题跟踪</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 时间跟踪</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 新闻</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 文档</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 资源库</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> Wiki</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 版本库</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 讨论区</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 日历</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 甘特图</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> DTS测试工具</label></li>
<li><label><input checked="checked" id="enabled_module_names_" name="enabled_module_names[]" type="checkbox" value="issue_tracking"> 代码审查</label></li>
</ul>
</div><!--box end-->
<p class="mb10 c_grey"><a href="javascript:void(0)" class=" c_purple">全选</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="javascript:void(0)" class=" c_purple" >清除</a></p>
<p><a href="javascript:void(0)" class="blue_btn" >保存</a></p>
</div><!--tbc_02 end-->
<div class="pro_st_undis" id="pro_st_tbc_03">
<div class="members_left">
<ul style=" border-bottom:none;">
<li><span class="w90 f_b" >用户</span><span class="w210 f_b">角色</span><span></span></li>
<li ><a href="javascript:void(0)" class="w90 c_orange fl">gugu01</a><span class="w210 fl">Manager, Developer</span><a href="javascript:void(0)" class="c_dblue ml15 fl">编辑</a><a href="javascript:void(0)" class="c_dblue ml30 fl">删除</a></li>
<li ><a href="javascript:void(0)" class="w90 c_orange fl">gugu01</a><span class="w210 fl">Manager, Developer, Reporter</span><a href="javascript:void(0)" class="c_dblue ml15 fl">编辑</a><a href="javascript:void(0)" class="c_dblue ml30 fl">删除</a></li>
<li ><a href="javascript:void(0)" class="w90 c_orange fl">gugu01</a><span class="w210 fl">Manager</span><a href="javascript:void(0)" class="c_dblue ml15 fl">编辑</a><a href="javascript:void(0)" class="c_dblue ml30 fl">删除</a></li>
</ul>
</div><!-- 左边-->
<div class="members_right">
<div class="members_jion">
<p class="c_blue mb10 fb">+申请加入</p>
<ul class="mb10">
<li><input name="membership[user_ids][]" type="checkbox" value="3172"> <a href="/users/3172" class="c_blue">JackWu (巫 荣杰)</a></li>
<li><input name="membership[user_ids][]" type="checkbox" value="3172"> <a href="/users/3172" class="c_blue">JackWu (巫 荣杰)</a></li>
<li><input name="membership[user_ids][]" type="checkbox" value="3172"> <a href="/users/3172" class="c_blue">JackWu (巫 荣杰)</a></li>
</ul>
<ul class="mb10">
<li>角色:</li>
<li><input type="checkbox" /><label>Manager</label></li>
<li><input type="checkbox" /><label>Developer</label></li>
<li><input type="checkbox" /><label>Reporter</label></li>
</ul>
<div class="cl"></div>
<a href="javascript:void(0)" class="blue_btn fl" >批准</a><a href="javascript:void(0)" class="grey_btn fl ml10" >拒绝</a>
</div><!--members_jion end-->
<div class="cl"></div>
<div class="members_add">
<p class="c_blue fb mt10 mb5">添加成员</p>
<div class="member_search">
<input class="member_search_input fl" type="text" name="" value="输入用户名称搜索好友"><a class="invi_search_btn fl c_white" >搜索</a>
<div class="cl"></div>
<ul class="mb5">
<li><input type="checkbox" name="" checked=""> <label >suntao</label> </li>
<li><input type="checkbox" name="" > <label >suntaoalibb</label> </li>
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
<li><input type="checkbox" name="" > <label >suntao</label> </li>
<li><input type="checkbox" name="" checked=""> <label >suntao</label> </li>
<li><input type="checkbox" name="" > <label >suntaoalibb</label> </li>
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
<li><input type="checkbox" name="" > <label >suntao</label> </li>
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
<li><input type="checkbox" name="" > <label >suntao</label> </li>
</ul>
<div class="cl"></div>
<ul class="wlist mr40" >
<li><a href="javascript:void(0)">下一页</a></li>
<li><a href="javascript:void(0)">...</a></li>
<li><a href="javascript:void(0)">2</a></li>
<li class="wlist_select" ><a href="javascript:void(0)">1</a></li>
<li><a href="javascript:void(0)">上一页</a></li>
</ul>
<div class="cl"></div>
<ul class="rolebox mb10 mt10">
<li class="fb">角色: </li>
<li ><input class="fl" type="checkbox" name="" checked=""> <label >TeachingAsistant</label> </li>
<li ><input type="checkbox" name="" > <label >Teacher</label> </li>
<li ><input type="checkbox" name="" > <label >Student</label> </li>
</ul>
<div class="cl"></div>
<a href="javascript:void(0)" class=" blue_btn">新增成员</a>
</div>
</div>
</div><!-- 右边 end-->
</div><!--tbc_03 end-->
<div class="pro_st_undis" id="pro_st_tbc_04">
<table class="pro_table">
<tbody>
<tr class="pro_table_tit">
<td class="w150">版本</td>
<td class="w1150"> 日期</td>
<td class="w210">描述 </td>
<td class="w1150">状态</td>
<td class="w190">共享</td>
<td class="w190">Wiki 页面</td>
<td class="w1150"></td>
</tr>
<tr class="pro_table_on">
<td >
<a href="/versions/1" class="c_blue02">暑期版(Summer Beta) V0.8</a>
</td>
<td class="c_grey">2013-08-30</td>
<td class="description"></td>
<td class="status">打开</td>
<td class="sharing">不共享</td>
<td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title=""></td>
<td >
<a href="/versions/1/edit" class=" c_purple">编辑</a>
<a href="/versions/1" class=" c_purple" data-confirm="您确定要删除吗?" >删除</a>
</td>
</tr>
<tr >
<td >
<a href="/versions/1" class="c_blue02">正式版(First Release) V1.0</a>
</td>
<td class="c_grey">2013-11-01</td>
<td class="description">正式对外提供服务的版本</td>
<td class="status">打开</td>
<td class="sharing">不共享</td>
<td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title=""></td>
<td >
<a href="/versions/1/edit" class=" c_purple">编辑</a>
<a href="/versions/1" class=" c_purple" data-confirm="您确定要删除吗?" >删除</a>
</td>
</tr>
<tr class="pro_table_on">
<td >
<a href="/versions/1"class="c_blue02">商业版(Second Release) V2.0</a>
</td>
<td class="c_grey">2013-08-30</td>
<td class="description">增加在线支付、实名认证等功能,界面更加美化,用户交互更加友好!</td>
<td class="status">打开</td>
<td class="sharing">不共享</td>
<td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title=""></td>
<td >
<a href="/versions/1/edit" class=" c_purple">编辑</a>
<a href="/versions/1" class=" c_purple" data-confirm="您确定要删除吗?" >删除</a>
</td>
</tr>
<tr >
<td >
<a href="/versions/1" class="c_blue02">JACK SUMMER V0.8</a>
</td>
<td class="c_grey">2014-08-25</td>
<td class="description">试用人员的开发版本</td>
<td class="status">打开</td>
<td class="sharing">不共享</td>
<td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title=""></td>
<td >
<a href="/versions/1/edit" class=" c_purple">编辑</a>
<a href="/versions/1" class=" c_purple" data-confirm="您确定要删除吗?" >删除</a>
</td>
</tr>
<tr class="pro_table_on">
<td >
<a href="/versions/1" class="c_blue02">LongJun Contest - V1.0</a>
</td>
<td class="c_grey"></td>
<td class="description">contest网站的开发分支</td>
<td class="status">打开</td>
<td class="sharing">不共享</td>
<td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title=""></td>
<td >
<a href="/versions/1/edit" class=" c_purple">编辑</a>
<a href="/versions/1" class=" c_purple" data-confirm="您确定要删除吗?" >删除</a>
</td>
</tr>
<tr >
<td >
<a href="/versions/1" class="c_blue02">SZZH V1.1 (Supported by BJSZZH)</a>
</td>
<td class="c_grey"></td>
<td class="description">神舟公司外包开发版本</td>
<td class="status">打开</td>
<td class="sharing">不共享</td>
<td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title=""></td>
<td >
<a href="/versions/1/edit" class=" c_purple">编辑</a>
<a href="/versions/1" class=" c_purple" data-confirm="您确定要删除吗?" >删除</a>
</td>
</tr>
</tbody>
</table>
<a href="/projects/2/versions/close_completed" class="c_orange fr">关闭已完成的版本</a>
<a href="javascript:viod(0)" class="pic_add fl mr5" onclick="pro_st_show_ban();"></a>
<a href="javascript:viod(0)" class="c_blue fl" onclick="pro_st_show_ban();">新建版本</a>
<div class="cl"></div>
<div id="pro_st_edit_ban" class="pro_st_edit_ban">
<ul>
<li >
<label class="label02"><span class="c_red">*</span>&nbsp;名称&nbsp;&nbsp;</label>
<input type="text" name="" class=" w280" >
</li>
<li >
<label class="label02">&nbsp;描述 &nbsp;&nbsp;</label>
<input type="text" name="" class=" w280" >
</li>
<li >
<label class="label02">&nbsp;状态&nbsp;&nbsp;</label>
<select id="" name="">
<option value="" selected="selected">打开</option>
<option value="">锁定</option>
<option value="">关闭</option>
</select>
</li>
<li >
<label class="label02">&nbsp;Wiki 页面&nbsp;&nbsp;</label>
<input type="text" name="" class=" w280" >
</li>
<li >
<label class="label02">&nbsp;日期 &nbsp;&nbsp;</label>
<input type="text" name="" class=" fl" >
<a href="javascript:viod(0)" class="pic_date mt5 ml5"></a>
</li>
<div class="cl mb10"></div>
<li >
<label class="label02">&nbsp;共享 &nbsp;&nbsp;</label>
<select id="" name="">
<option value="" selected="selected">不共享 </option>
<option value="">共享 </option>
</select>
</li>
<a href="javascript:viod(0)" class="blue_btn ml110">保存</a>
</ul>
</div>
</div><!--tbc_04 end-->
<div class="pro_st_undis" id="pro_st_tbc_05">
<table class="pro_table">
<tbody>
<tr class="pro_table_tit">
<td class="w150">问题类别</td>
<td class="w280"> 指派给</td>
<td class="w280"> </td>
</tr>
<tr class="pro_table_on">
<td>思路</td>
<td></td>
<td> <a href="javascript:viod(0)" class=" c_purple">编辑</a>
<a href="javascript:viod(0)" class="c_purple" data-confirm="您确定要删除吗?" >删除</a></td>
</tr>
<tr >
<td>思路</td>
<td>suntao</td>
<td> <a href="javascript:viod(0)" class=" c_purple">编辑</a>
<a href="javascript:viod(0)" class="c_purple" data-confirm="您确定要删除吗?" >删除</a></td>
</tr>
<tr class="pro_table_on">
<td>思路</td>
<td>gugu</td>
<td> <a href="javascript:viod(0)" class=" c_purple">编辑</a>
<a href="javascript:viod(0)" class="c_purple" data-confirm="您确定要删除吗?" >删除</a></td>
</tr>
<tr >
<td>思路</td>
<td></td>
<td> <a href="javascript:viod(0)" class=" c_purple">编辑</a>
<a href="javascript:viod(0)" class="c_purple" data-confirm="您确定要删除吗?" >删除</a></td>
</tr>
</tbody>
</table>
<a href="javascript:viod(0)" class="pic_add fl mr5" onclick="show_edit_issues();"></a>
<a href="javascript:viod(0)" class="c_blue fl" onclick="show_edit_issues();">新建问题类别</a>
<div class="cl"></div>
<div id="pro_st_edit_issues" class="pro_st_edit_issues">
<ul>
<li >
<label class="label02"><span class="c_red">*</span>&nbsp;名称&nbsp;&nbsp;</label>
<input type="text" name="" class="" >
</li>
<div class="cl"></div>
<li >
<label class="label02">&nbsp;名指派给&nbsp;&nbsp;</label>
<select id="" name="">
<option value="" selected="selected">wo</option>
<option value="">suntao</option>
</select>
</li>
<div class="cl"></div>
</ul>
<a href="javascript:viod(0)" class="blue_btn ml110">保存</a>
</div><!--pro_st_edit_issues end-->
</div><!--tbc_05 end-->
<div class="pro_st_undis" id="pro_st_tbc_06">
<table class="pro_table">
<tbody>
<tr class="pro_table_tit">
<td class=" w150">标识</td>
<td class="w150"> 主版本库</td>
<td class="w150">管理系统 </td>
<td class="w150" >库路径 </td>
<td class="w150"> </td>
<td class="w150"> </td>
</tr>
<tr class="pro_table_on">
<td><a href="javascript:viod(0)" class="c_blue" >trustie2</a></td>
<td></td>
<td>Git</td>
<td ><a href="http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git" class="c_blue" >http://xianbo_trustie2</a></td>
<td><a href="javascript:viod(0)" class="c_blue" >用户列表</a></td>
<td></td>
</tr>
<tr >
<td><a href="javascript:viod(0)" class="c_blue" >micros</a></td>
<td></td>
<td>Git</td>
<td ><a href="http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git" class="c_blue" >http://xianbo_trustie2</a></td>
<td><a href="javascript:viod(0)" class="c_blue" >用户列表</a></td>
<td></td>
</tr>
<tr class="pro_table_on">
<td><a href="javascript:viod(0)" class="c_blue" >socialforge</a></td>
<td></td>
<td>Git</td>
<td ><a href="http://xianbo_trustie2@repository.trustie.net/xianbo/trustie2.git" class="c_blue" >http://xianbo_trustie2</a></td>
<td><a href="javascript:viod(0)" class="c_blue" >用户列表</a></td>
<td><a href="javascript:viod(0)" class="c_purple" >删除</a></td>
</tr>
</tbody>
</table>
<a href="javascript:viod(0)" class="pic_add fl mr5" onclick="pro_st_show_ku();"></a>
<a href="javascript:viod(0)" class="c_blue fl" onclick="pro_st_show_ku();">新建版本库</a>
<div class="cl"></div>
<div id="pro_st_edit_ku" class="pro_st_edit_ku">
<ul>
<li >
<label class="label02">&nbsp;管理系统&nbsp;&nbsp;</label>
<select id="" name="">
<option value="" selected="selected">Git</option>
<option value="">Git</option>
</select>
</li>
<li >
<label class="label02">&nbsp;主版本库&nbsp;&nbsp;</label>
<input type="checkbox" name="" class="" >
</li>
<li >
<label class="label02"><span class="c_red">*</span>&nbsp;版本库名&nbsp;&nbsp;</label>
<input type="text" name="" class="w280" >
<span class="c_grey">长度必须在 1 到 254 个字符之间。 仅小写字母a-z、数字、破折号-和下划线_可以使用。
一旦保存,标识无法修改。</span>
</li>
<li >
<label class="label02"><span class="c_red">*</span>&nbsp;密码&nbsp;&nbsp;</label>
<input type="text" name="" class="w280" >
<span class="c_grey">该密码在项目组内可共享</span>
</li>
<div class="cl"></div>
</ul>
<a href="javascript:viod(0)" class="blue_btn fl ml110">保存</a>
<a href="javascript:viod(0)" class="grey_btn fl ml10">取消</a>
</div><!--pro_st_edit_issues end-->
</div><!--tbc_06 end-->
<div class="pro_st_undis" id="pro_st_tbc_07">
<table class="pro_table">
<tbody>
<tr class="pro_table_tit">
<td class=" w350">名称</td>
<td class="w150"> 系统活动</td>
<td class="w150">活动 </td>
</tr>
<tr class="pro_table_on">
<td>Design</td>
<td></td>
<td><input type="checkbox" checked="checked" /></td>
</tr>
<tr >
<td>Development</td>
<td></td>
<td><input type="checkbox" checked="checked" /></td>
</tr>
</tbody>
</table>
<a href="javascript:viod(0)" class="blue_btn fl" >保存</a>
<a href="javascript:viod(0)" class="grey_btn fl ml10" >重置</a>
</div><!--tbc_07 end-->
<div class="pro_st_undis" id="pro_st_tbc_08">
<div class="box f14">
<ul>
<li><label for="setting_tracker_in_review_dialog">允许创建代码审查时选择跟踪者?<span class="required">&nbsp;&nbsp;</span></label></li>
<li><b>设置代码评审的默认跟踪标签:</b></li>
<li><label for="setting_tracker_id">跟踪<span class="c_red"> *</span></label>
<select id="setting_tracker_id" name="setting[tracker_id]">
<option value="1" selected="selected">缺陷</option>
<option value="2">功能</option>
<option value="3">支持</option>
<option value="4">任务</option>
</select></li>
<li>
<label for="setting_hide_code_review_tab">隐藏代码评审页<span class="required">&nbsp;&nbsp;</span></label>
<input name="setting[hide_code_review_tab]" type="hidden" value="0"><input id="setting_hide_code_review_tab" name="setting[hide_code_review_tab]" type="checkbox" value="1">
</li>
<li>
<label>若修订存在问题:</label>
<input checked="checked" id="setting_auto_relation_1" name="setting[auto_relation]" type="radio" value="1">
与之相关的评审问题
<input id="setting_auto_relation_2" name="setting[auto_relation]" type="radio" value="2">
与之无关的评审问题
<input id="setting_auto_relation_0" name="setting[auto_relation]" type="radio" value="0">
什么也不做
</li>
<li>
<label>自动分派</label>
<input id="auto_assign_enabled" name="auto_assign[enabled]" onchange="setAutoAssignSettingFormEnable();" type="checkbox" value="true">激活
</li>
</ul>
<a href="javascript:viod(0)" class="blue_btn">保存</a>
</div>
</div><!--tbc_08 end-->
</div><!--ctt end-->
</div><!--pro_setting end-->

View File

@ -159,4 +159,10 @@ function close_window(type){
$("#" + type).attr("checked","checked");
}
//弹框l
//弹框l
/////////////////////////////////////////////
function g(o){return document.getElementById(o);}
function HoverLi(n){
for(var i=1;i<=8;i++){g('pro_st_tb_'+i).className='pro_st_normaltab';g('pro_st_tbc_0'+i).className='pro_st_undis';}g('pro_st_tbc_0'+n).className='pro_st_dis';g('pro_st_tb_'+n).className='pro_st_hovertab';
}

View File

@ -35,9 +35,9 @@ a:hover.pr_join_a{ background:#41a8c8;}
.subNavBox{width:240px; background:#fff;margin:10px 10px 0 0;}
.subNav{border-bottom:solid 1px #e5e3da;cursor:pointer;font-weight:bold;font-size:14px;color:#3ca5c6; height:26px;padding-left:10px;background-color:#fff; padding-top:2px;}
.subNav_jiantou{background:url(../images/jiantou1.jpg) no-repeat;background-position:95% 50%; background-color:#fff;}
a:hover.subNav_jiantou:hover{color:#0781b4; }
.currentDd{color:#0781b4; }
.currentDt{background-color:#fff; }
.subNav_jiantou:hover{color:#0781b4; }
.currentDd{color:#0781b4;}
.currentDt{background-color:#fff;}
.navContent{display: none;border-bottom:solid 1px #e5e3da; }
.navContent li a{display:block;width:240px;heigh:28px;text-align:center;font-size:12px;line-height:28px;color:#333}
.navContent li a:hover{color:#fff;background-color:#b3e0ee}

View File

@ -106,15 +106,24 @@ a.talk_edit{ color:#426e9a; margin-right:5px;}
a:hover.talk_edit{ color:#ff5722;}
.talk_reply { background:#eeeeee; padding:10px; margin-bottom:10px;}
.talkpage_text{ border:1px solid #64bdd9; width:600px; color:#7d7d7d; padding:5px; margin:10px 0 10px 50px; background:#fff;}
/*.ping_dispic a{ display:block; height:46px; width:46px; border:1px solid #CCC; padding:1px; float:left;}*/
/*.ping_dispic a:hover{border:1px solid #15bccf;}*/
.ping_dispic a{ display:block; height:46px; width:46px; border:1px solid #CCC; padding:1px; float:left;}
.ping_dispic a:hover{border:1px solid #15bccf;}
.ping_discon{ float:left; width:610px; margin-left:10px; }
.ping_distop p{ color:#5f5f5f;}
.ping_disfoot a{ float:right; color: #6883b6; margin-left:5px; margin-bottom:5px;}
.ping_distop span a{ float:right; width:20px; height:20px; background:url(images/star.png) -24px 0 no-repeat; margin-right:3px;}
.recall{ border-top:1px solid #CCC; padding:5px 0;}
.recall_head{ float:left;}
.recall_head a{ display:block; width:30px; height:30px; border:1px solid #CCC; padding:1px;}
.recall_head a:hover{border:1px solid #15bccf;}
.recall_con{ float:left;color:#777777; width:520px; margin-left:10px; }
/****新建讨论***/
.talk_new{ color:#4c4c4c;}
.talk_input{ border:1px solid #64bdd9; height:16px; width:585px; background:#fff; margin-bottom:10px; padding:5px;}
.talk_text{ border:1px solid #64bdd9; height:100px;width:585px; background:#fff; margin-left:5px; padding:5px; margin-bottom:10px;}
.talk_new ul li{ }
.sb{width:70px; height:26px; color:#606060; cursor:pointer;}
a.blue_btn{ background:#64bdd9; display:block; font-size:14px;color:#fff; font-weight:normal; text-align:center; margin-left:10px; margin-bottom:10px; padding:2px 10px;}
/*a.blue_btn{ background:#64bdd9; display:block; font-size:14px;color:#fff; font-weight:normal; text-align:center; margin-left:10px; margin-bottom:10px; padding:2px 10px;}*/
a:hover.blue_btn{ background:#329cbd;}
a.grey_btn{ background:#d9d9d9; color:#656565;font-size:14px; font-weight:normal; text-align:center; margin-left:10px; margin-bottom:10px; padding:2px 10px;}
a:hover.grey_btn{ background:#717171; color:#fff;}
@ -160,8 +169,8 @@ a:hover.upload_btn_grey{background:#8a8a8a;}
.upload_btn{width:80px; height:26px;}
.upload_check{ margin-top:4px;}
a.link_file{ background:url(../images/courses/pic_file.png) 0 2px no-repeat; padding-left:20px; color:#64bdd9; }
a:hover.link_file{ background:url(../images/courses/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
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;}
/* 新建问题 */
.newpro_box{ color:#6d6d6d;}
@ -338,7 +347,64 @@ a:hover.st_add{ color:#ff8e15;}
padding-top: 2px;
padding-bottom: 3px;
}
/*新闻*/
.msg_box{ width:670px; height:173px; border-bottom:1px dashed #CCC; padding-top:10px;}
.msg_box h4{ }
.msg_box textarea{width:658px;height:90px;padding:5px;overflow:hidden;background-color: #ffffff; border:1px solid #CCC; margin:5px 0px; color:#666; font-size:12px; }
/*add by sw*/
blockquote {
border-left: 1px solid #e0e0e0;
border-right: 1px solid #e0e0e0;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
padding-left: .6em;
padding-top: .6em;
padding-right: .6em;
padding-bottom: .6em;
margin-left: 1.4em;
margin-right: .4em;
border-radius: 4px;
font-family: "Microsoft YaHei";
background: url(http://test.forge.trustie.net/images/requirements/xreference.jpg.pagespeed.ic.h4inUJNyH0.jpg);
}
.pro_st_ttl{ height:24px;}
.pro_st_ctt{height:auto; clear:both;}
.pro_setting{width:670px;/*滑动门的宽度*/}
.pro_st_tb_{ border-bottom:3px solid #e4e4e4; text-align:center; margin-bottom:10px; }
.pro_st_tb_ ul{height:24px;}
.pro_st_tb_ li{float:left;height: 24px;width: auto; padding:0 10px;cursor:pointer; }
.pro_st_normaltab { color:#15bccf ; border-bottom:3px solid #e4e4e4; }
.pro_st_hovertab { color:#656767; font-weight:bold; border-bottom:3px solid #15bccf; }
.pro_st_normaltab a { color:#64bdd9 ; }
.pro_st_hovertab a{color:#fff; background-color:#64bdd9; text-decoration:none;}
.pro_st_dis{display:block; }
.pro_st_undis{display:none;}
.upimg{ border:1px solid #eaeaea; display:block; width:60px; height:60px; padding:1px;}
.upimg:hover{ border:1px solid #64bdd9; }
.box{ margin-bottom:10px;}
.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;}
.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_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;}
.member_search_btn:hover{ background:#0da1b2; border:1px solid #0da1b2;}
a.member_btn{ padding:5px; background:#15bccf; color:#fff;}
a:hover.member_btn{ background:#329cbd;}
.pro_table{ text-align:center; color:#333; margin-bottom:20px;}
.pro_table tr td{ height:30px;}
.pro_table_tit{ text-align:center; font-weight:bold;}
.pro_table_on{ background:#f0fbff; }
.pro_st_edit_issues{ display:none; margin-top:20px;}
.pro_st_edit_issues ul li{ margin-bottom:10px;}
.pro_st_edit_ban{ display:none; margin-top:20px;}
.pro_st_edit_ban ul li{ margin-bottom:10px;}
.pro_st_edit_ku{display:none; margin-top:20px;}
.pro_st_edit_ku ul li{margin-bottom:10px;}
/*end*/

View File

@ -42,6 +42,7 @@ h4{ font-size:14px; color:#3b3b3b;}
.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}
.clearfix{clear:both;zoom:1}
.break_word{ word-break:break-all; word-wrap: break-word;}
.flow_hidden{ width:300px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
/* Spacing */
.ml2{ margin-left:2px;}
@ -59,6 +60,7 @@ h4{ font-size:14px; color:#3b3b3b;}
.ml60{ margin-left:60px;}
.ml80{ margin-left:80px;}
.ml90{ margin-left:90px;}
.ml110{ margin-left:110px;}
.mr5{ margin-right:5px;}
.mr10{ margin-right:10px;}
.mr20{ margin-right:20px;}
@ -71,10 +73,12 @@ h4{ font-size:14px; color:#3b3b3b;}
.mb10{ margin-bottom:10px;}
.pl15{ padding-left:15px;}
.w90{ width:90px;}
.w210{ width:210px;}
.w150{ width:150px;}
.w280{ width:280px;}
.w430{ width:470px;}
.w520{ width:520px;}
.w543{ width:543px;}
.w557{ width:557px;}
.w583{ width:583px;}
.w350{ width:350px;}
@ -106,6 +110,8 @@ a.c_blue02{color: #3ca5c6;}
a:hover.c_blue02{color: #0781b4;}
a.c_red{ color:#F00;}
a:hover.c_red{ color: #C00;}
a.c_purple{color: #426e9a;}
a:hover.c_purple{color: #d33503;}
.b_grey{ background: #F5F5F5;}
.b_dgrey{ background: #CCC;}
@ -361,7 +367,7 @@ 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;}
.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;}
.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;}