<commit_before><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="../layout/template.xhtml">

<ui:define name="breadcrumbs">
  »
  <s:link view="/project/home.xhtml" propagation="none">Projects</s:link>
  »
  #{projectHome.instance.name}
</ui:define>

<ui:define name="center_content">
    <rich:jQuery selector="#tab_projects" query="addClass('ui-tabs-selected')" />

    <h1>#{projectHome.instance.name}</h1>

    <s:formattedText id="project-home-content" value="#{projectHome.instance.homeContent}"></s:formattedText>
    
    <h:outputText value="#{projectHome.instance.description}" rendered="#{empty projectHome.instance.homeContent}"/>
    
    <h2>Active Targets</h2>
    <rich:dataGrid columns="3" 
                   value="#{projectHome.activeTargets}" 
                   var="_target" 
                   columnClasses="grid_col_one_third_width"
                   >
      <ui:include src="./target_view_inline.xhtml" />
    </rich:dataGrid>

    <h2>Retired Targets</h2>
    <rich:dataGrid columns="3" 
                   value="#{projectHome.retiredTargets}" 
                   var="_target" 
                   columnClasses="grid_col_one_third_width">
      <ui:include src="./target_view_inline.xhtml" />
    </rich:dataGrid>
    
</ui:define>

<ui:define name="left_content">
  <rich:panel>
    <f:facet name="header">Targets</f:facet>
    <rich:dataList value="#{projectHome.instance.projectSeries}" var="series">
      <h:outputText value="#{series.name}"/> series
      <!-- TODO: series can have children... -->
      <rich:dataList value="#{series.projectTargets}" var="_target">
        <s:link view="/project/target.xhtml" value="#{_target.name}" propagation="none">
         <f:param name="mslug" value="#{projectHome.instance.slug}/#{_target.slug}"/>
        </s:link>
      </rich:dataList>
    </rich:dataList>
    <s:link styleClass="action_link" view="/project/add_target.xhtml" value="Add Target"/>
  </rich:panel>
  
  <rich:panel>
    <f:facet name="header">Maintainers</f:facet>
    <h:outputText rendered="#{empty projectHome.instance.maintainers}">(No maintainers defined)</h:outputText>
    <rich:dataList value="#{projectHome.instance.maintainers}" var="maintainer">
      <h:outputText value="#{maintainer.name}"/>
    </rich:dataList>
  </rich:panel>
  
  <rich:panel>
    <f:facet name="header">Actions</f:facet>
      <s:link styleClass="action_link" value="Edit" view="/project/edit.xhtml" propagation="none">
        <f:param name="slug" value="#{projectHome.instance.slug}"/>
      </s:link>
      <br/>
      <s:link styleClass="action_link" id="delete"
                    value="Delete"
                   action="#{projectHome.remove}"
                   view="/project/home.xhtml"
                immediate="true" /><commit_msg>no need for a dedicated panel for targets anymore<commit_after><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="../layout/template.xhtml">

<ui:define name="breadcrumbs">
  »
  <s:link view="/project/home.xhtml" propagation="none">Projects</s:link>
  »
  #{projectHome.instance.name}
</ui:define>

<ui:define name="center_content">
    <rich:jQuery selector="#tab_projects" query="addClass('ui-tabs-selected')" />

    <h1>#{projectHome.instance.name}</h1>

    <s:formattedText id="project-home-content" value="#{projectHome.instance.homeContent}"></s:formattedText>
    
    <h:outputText value="#{projectHome.instance.description}" rendered="#{empty projectHome.instance.homeContent}"/>
    
    <h2>Active Targets</h2>
    <rich:dataGrid columns="3" 
                   value="#{projectHome.activeTargets}" 
                   var="_target" 
                   columnClasses="grid_col_one_third_width"
                   >
      <ui:include src="./target_view_inline.xhtml" />
    </rich:dataGrid>

    <h2>Retired Targets</h2>
    <rich:dataGrid columns="3" 
                   value="#{projectHome.retiredTargets}" 
                   var="_target" 
                   columnClasses="grid_col_one_third_width">
      <ui:include src="./target_view_inline.xhtml" />
    </rich:dataGrid>
    
</ui:define>

<ui:define name="left_content">
  
  <rich:panel>
    <f:facet name="header">Maintainers</f:facet>
    <h:outputText rendered="#{empty projectHome.instance.maintainers}">(No maintainers defined)</h:outputText>
    <rich:dataList value="#{projectHome.instance.maintainers}" var="maintainer">
      <h:outputText value="#{maintainer.name}"/>
    </rich:dataList>
  </rich:panel>
  
  <rich:panel>
    <f:facet name="header">Actions</f:facet>
    <s:link styleClass="action_link" value="Edit Project" view="/project/edit.xhtml" propagation="none">
      <f:param name="slug" value="#{projectHome.instance.slug}"/>
    </s:link>
    <s:link styleClass="action_link" id="delete"
                  value="Delete Project"
                 action="#{projectHome.remove}"
                 view="/project/home.xhtml"
              immediate="true" />
    <s:link styleClass="action_link" view="/project/add_target.xhtml" value="Add Target"/>
{'fraction_non_alphanumeric': 0.17744725008647527, 'fraction_numerical': 0.006572120373573158, 'mean_word_length': 3.2647492625368733, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 12}, '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': '1541266', 'n_tokens_mistral': 1959, 'n_tokens_neox': 1873, 'n_words': 239}