<commit_before>@(project:Project, menuType:utils.MenuType, menuCSS:String)

@import utils._
@import models.enumeration.ResourceType;
@import utils.TemplateHelper._
@import utils.AccessControl._

@isActiveMenu(m_type:MenuType) = @{
    if (m_type == menuType) {"highlight"}
}

@makeSubMenu(call:Call, name:String) = {
	<li class="@isActiveSubMenu(call)"><a href="@call">@name</a></li>
}
@isActiveSubMenu(calls: Call*) = @{
    var menuState = ""
    for(call <- calls) {
        if(call.toString().equals(request().path().toString())) {
            menuState = "highlight"
        }
    }
    menuState
}

<div class="project-menu @menuCSS">
	<div class="project-menu-wrap main">
		<ul class="unstyled">
			<li class="@isActiveMenu(MenuType.PROJECT_HOME)"><a href="@routes.ProjectApp.project(project.owner, project.name)">@Messages("title.projectHome")</a></li>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.BOARD)"><a href="@routes.BoardApp.posts(project.owner, project.name)">@Messages("menu.board")</a></li>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.CODE)"><a href="@routes.CodeApp.codeBrowser(project.owner, project.name)">@Messages("menu.code")</a></li>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.ISSUE)"><a href="@routes.IssueApp.issues(project.owner, project.name,"all")">@Messages("menu.issue")</a></li>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.TASK)"><a href="@routes.TaskApp.index(project.owner, project.name)">@Messages("menu.task")</a>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.PROJECT_SETTING)"><a href="@routes.ProjectApp.settingForm(project.owner, project.name)">@Messages("menu.admin")</a></li>
		</ul>
	</div>

@** 프로젝트 설정 서브메뉴 **@
	@if(menuType.equals(MenuType.PROJECT_SETTING)){
	<div class="project-menu-wrap sub">
		<ul class="unstyled on-admin">
			@makeSubMenu(routes.ProjectApp.settingForm(project.owner, project.name),  Messages("project.setting"))
			@makeSubMenu(routes.ProjectApp.members(project.owner, project.name), 	  Messages("project.member"))
			@makeSubMenu(routes.MilestoneApp.milestones(project.owner, project.name), Messages("project.milestone"))
			@** makeSubMenu(routes.MilestoneApp.milestones(project.owner, project.name), Messages("project.sidebar.plugin")) **@
			@** makeSubMenu(routes.MilestoneApp.milestones(project.owner, project.name), Messages("project.sidebar.help")) **@
		</ul>
	</div>
	}<commit_msg>menu: hide task menu (not working now)<commit_after>@(project:Project, menuType:utils.MenuType, menuCSS:String)

@import utils._
@import models.enumeration.ResourceType;
@import utils.TemplateHelper._
@import utils.AccessControl._

@isActiveMenu(m_type:MenuType) = @{
    if (m_type == menuType) {"highlight"}
}

@makeSubMenu(call:Call, name:String) = {
	<li class="@isActiveSubMenu(call)"><a href="@call">@name</a></li>
}
@isActiveSubMenu(calls: Call*) = @{
    var menuState = ""
    for(call <- calls) {
        if(call.toString().equals(request().path().toString())) {
            menuState = "highlight"
        }
    }
    menuState
}

<div class="project-menu @menuCSS">
	<div class="project-menu-wrap main">
		<ul class="unstyled">
			<li class="@isActiveMenu(MenuType.PROJECT_HOME)"><a href="@routes.ProjectApp.project(project.owner, project.name)">@Messages("title.projectHome")</a></li>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.BOARD)"><a href="@routes.BoardApp.posts(project.owner, project.name)">@Messages("menu.board")</a></li>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.CODE)"><a href="@routes.CodeApp.codeBrowser(project.owner, project.name)">@Messages("menu.code")</a></li>
			<li class="sp-line">|</li>
			<li class="@isActiveMenu(MenuType.ISSUE)"><a href="@routes.IssueApp.issues(project.owner, project.name,"all")">@Messages("menu.issue")</a></li>
			<li class="sp-line">|</li>
		<!--	<li class="@isActiveMenu(MenuType.TASK)"><a href="@routes.TaskApp.index(project.owner, project.name)">@Messages("menu.task")</a></li> 
			<li class="sp-line">|</li>-->
			<li class="@isActiveMenu(MenuType.PROJECT_SETTING)"><a href="@routes.ProjectApp.settingForm(project.owner, project.name)">@Messages("menu.admin")</a></li>
		</ul>
	</div>

@** 프로젝트 설정 서브메뉴 **@
	@if(menuType.equals(MenuType.PROJECT_SETTING)){
	<div class="project-menu-wrap sub">
		<ul class="unstyled on-admin">
			@makeSubMenu(routes.ProjectApp.settingForm(project.owner, project.name),  Messages("project.setting"))
			@makeSubMenu(routes.ProjectApp.members(project.owner, project.name), 	  Messages("project.member"))
			@makeSubMenu(routes.MilestoneApp.milestones(project.owner, project.name), Messages("project.milestone"))
			@** makeSubMenu(routes.MilestoneApp.milestones(project.owner, project.name), Messages("project.sidebar.plugin")) **@
			@** makeSubMenu(routes.MilestoneApp.milestones(project.owner, project.name), Messages("project.sidebar.help")) **@
		</ul>
	</div>
	}
{'fraction_non_alphanumeric': 0.20886837881219902, 'fraction_numerical': 0.0, 'mean_word_length': 5.856946354883081, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6690890', 'n_tokens_mistral': 1851, 'n_tokens_neox': 1771, 'n_words': 210}