项目配置过短的时候JS控制底端留白
This commit is contained in:
parent
2126364a19
commit
fabe6bd999
|
@ -1,4 +1,4 @@
|
|||
<div class="pro_new_setting clear">
|
||||
<div class="pro_new_setting clear mb10">
|
||||
<div class="pro_new_setting_leftnav fl">
|
||||
<ul>
|
||||
<% show_memu = show_project_memu User.current%>
|
||||
|
@ -22,14 +22,6 @@
|
|||
<!--<li id="pro_st_tb_7" class="pro_st_normaltab" onclick="project_setting(7);">活动(时间跟踪)</li>-->
|
||||
<!--<li id="pro_st_tb_8" class="pro_st_normaltab" onclick="project_setting(8);">代码评审</li>-->
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="project-setting01.html" class="active "> 信息 </a></li>
|
||||
<li><a href="project-setting02.html" class=" "> 模块 </a></li>
|
||||
<li><a href="project-setting03.html" class=" "> 成员 </a></li>
|
||||
<li><a href="project-setting04.html" class=" "> 组织 </a></li>
|
||||
<li><a href="project-setting05.html" class=" "> 里程碑 </a></li>
|
||||
<li><a href="project-setting06.html" class=" "> 版本库 </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pro_new_setting_conbox fl ml10">
|
||||
<div class="">
|
||||
|
@ -64,21 +56,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
<%if @select_tab %>
|
||||
|
@ -99,110 +76,10 @@
|
|||
$("div[nhname='pro_setting']").show();
|
||||
// $(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||
});
|
||||
var windowH = $(window).height();
|
||||
var contentH = $(".pro_new_setting_conbox").height();
|
||||
if(windowH >795.5) {
|
||||
$(".pro_new_setting_conbox").css("margin-bottom",windowH - 329 -contentH + "px");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="project_r_h" style="width:730px;">
|
||||
<h2 class="project_h2">配置</h2>
|
||||
</div>
|
||||
|
||||
<!--通过admin界面配置,不同角色显示不同的模块-->
|
||||
<div nhname="pro_setting" style="display:none; width:730px;">
|
||||
<div id="pro_st_tb_" class="pro_st_tb_">
|
||||
<ul>
|
||||
<% show_memu = show_project_memu User.current%>
|
||||
<% if User.current.allowed_to?(:edit_project, @project) %>
|
||||
<li id="pro_st_tb_1" class="<%= show_memu == 'edit_project' ? 'pro_st_hovertab' : 'pro_st_normaltab'%>" onclick="project_setting(1);">信息</li>
|
||||
<% end %>
|
||||
<% if User.current.allowed_to?(:select_project_modules, @project) %>
|
||||
<li id="pro_st_tb_2" class="<%= show_memu == 'select_project_modules' ? 'pro_st_hovertab' : 'pro_st_normaltab'%>" onclick="project_setting(2);">模块</li>
|
||||
<% end %>
|
||||
<% if User.current.allowed_to?(:manage_members, @project) %>
|
||||
<li id="pro_st_tb_3" class="<%= show_memu == 'manage_members' ? 'pro_st_hovertab' : 'pro_st_normaltab'%>" onclick="project_setting(3);">成员</li>
|
||||
<% end %>
|
||||
<li id="pro_st_tb_5" class="<%= show_memu == 'join_org' ? 'pro_st_hovertab' : 'pro_st_normaltab'%>" onclick="project_setting(5);">组织</li>
|
||||
<% if User.current.allowed_to?(:manage_versions, @project) %>
|
||||
<li id="pro_st_tb_4" class="<%= show_memu == 'manage_versions' ? 'pro_st_hovertab' : 'pro_st_normaltab'%>" onclick="project_setting(4);"><%= l(:milestone) %></li>
|
||||
<% end %>
|
||||
<!--<li id="pro_st_tb_5" class="pro_st_normaltab" onclick="project_setting(5);">问题类别</li>-->
|
||||
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
||||
<li id="pro_st_tb_6" class="<%= show_memu == 'manage_repository' ? 'pro_st_hovertab' : 'pro_st_normaltab'%>" onclick="project_setting(6);">版本库</li>
|
||||
<% end %>
|
||||
<!--<li id="pro_st_tb_7" class="pro_st_normaltab" onclick="project_setting(7);">活动(时间跟踪)</li>-->
|
||||
<!--<li id="pro_st_tb_8" class="pro_st_normaltab" onclick="project_setting(8);">代码评审</li>-->
|
||||
|
||||
</ul>
|
||||
</div><!--tb_ end-->
|
||||
<div class="cl"></div>
|
||||
|
||||
<div class="pro_st_ctt">
|
||||
<div class="<%= show_memu == 'edit_project' ? 'pro_st_dis' : 'pro_st_undis'%>" id="pro_st_tbc_01">
|
||||
<%= render :partial=>"projects/settings/new_edit" if User.current.allowed_to?(:edit_project, @project)%>
|
||||
</div><!--tbc_01 end-->
|
||||
|
||||
<div class="<%= show_memu == 'select_project_modules' ? 'pro_st_dis' : 'pro_st_undis'%>" id="pro_st_tbc_02">
|
||||
<%= render :partial=>"projects/settings/new_modules" if User.current.allowed_to?(:select_project_modules, @project)%>
|
||||
</div><!--tbc_02 end-->
|
||||
|
||||
<div class="<%= show_memu == 'manage_members' ? 'pro_st_dis' : 'pro_st_undis'%>" id="pro_st_tbc_03">
|
||||
<%= render :partial=>"projects/settings/new_members" if User.current.allowed_to?(:manage_members, @project)%>
|
||||
</div><!--tbc_03 end-->
|
||||
|
||||
|
||||
<div class="<%= show_memu == 'manage_versions' ? 'pro_st_dis' : 'pro_st_undis'%>" id="pro_st_tbc_04">
|
||||
<%= render :partial=>"projects/settings/new_versions" if User.current.allowed_to?(:manage_versions, @project)%>
|
||||
</div><!--tbc_04 end-->
|
||||
|
||||
<!--<div class="pro_st_undis" id="pro_st_tbc_05">-->
|
||||
<!--<%#= render :partial=>"projects/settings/new_issue_categories" %>-->
|
||||
<!--</div><!–tbc_05 end–>-->
|
||||
<div class="<%= show_memu == 'join_org' ? 'pro_st_dis' : 'pro_st_undis'%>" id="pro_st_tbc_05">
|
||||
<%= render :partial=>"projects/settings/join_org" %>
|
||||
</div>
|
||||
|
||||
<div class="<%= show_memu == 'manage_repository' ? 'pro_st_dis' : 'pro_st_undis'%>" id="pro_st_tbc_06">
|
||||
<%= render :partial=>"projects/settings/new_repositories" if User.current.allowed_to?(:manage_repository, @project)%>
|
||||
</div><!--tbc_06 end-->
|
||||
|
||||
<!--<div class="pro_st_undis" id="pro_st_tbc_07">-->
|
||||
<!--<%#= render :partial=>"projects/settings/new_activities" %>-->
|
||||
<!--</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"> </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"> </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-->
|
||||
|
|
Loading…
Reference in New Issue