gitsolo是一个纯Java开发的极简git服务器(比gitlab简太多了啦),只要JDK一键启动,支持HTT(S)协议、支持多项目组多成员权限等管理、支持二次开发和整合到公司OA中。 演示地址:http://gitsolo.demo.zhiqim.org(用户名:zhiqim 密码:zhiqim@2015)
森中灵 最后提交于2年前 同步去除zhiqim_manager_tr_no_record的colspan
config.zml1KB
<#--刷新左边区域自定义块-->
<#function zhiqim_manager_topnav_left_defined()>
<script>
function setProjectId(projectId)
{
var ajax = new Z.Ajax();
ajax.setSync();
ajax.setClassName("GitProjectPresenter");
ajax.setMethodName("setProjectId");
ajax.addParam(projectId);
ajax.execute();
if(ajax.responseStatus == 0){
Z.L.reload();
}else{
Z.alert(ajax.responseText);
}
}
</script>
<div class="z-relative-left z-h50 z-w300">
<div class="z-relative-left z-mg-t20 z-mg-l10">当前项目:</div>
<#var projectList = GitProjectDao.getProjectList(request, sessionUser.getOperatorCode()) />
@{GitProjectDao.doActiveProject(request, projectList, sessionUser)}
<#var fpmProjectId = GitProjectDao.getProjectId(request)/>
<select class="z-relative-left z-select z-mg-t15 z-w180 z-hidden" data-role="z-select" data-class="${zmr_color_class}" onchange="setProjectId(this.value);">
<#for item : projectList>
<option value="${item.getProjectId()}"<#if fpmProjectId == item.getProjectId()> selected</#if>>${item.getProjectName()}</option>
</#for>
</select>
</div>
</#function>