<commit_before><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>
<%@ taglib uri="http://sakaiproject.org/jsf/messageforums" prefix="mf" %>
<f:loadBundle basename="org.sakaiproject.tool.messageforums.bundle.Messages" var="msgs"/>

<f:view>
<sakai:view>
	<h:form id="DF-1">
<!--jsp/discussionForum/message/dfViewMessage.jsp-->
		  <h:panelGrid columns="2" summary="layout" width="100%" styleClass="navPanel">
		    <h:panelGroup styleClass="breadCrumb">
				<f:verbatim><h3></f:verbatim>
				<h:commandLink action="#{ForumTool.processActionHome}" value="#{msgs.cdfm_message_forums}" title=" #{msgs.cdfm_message_forums}"/> 
				<f:verbatim><h:outputText value=" " /><h:outputText value=" / " /><h:outputText value=" " /></f:verbatim>
				<h:commandLink action="#{ForumTool.processActionDisplayForum}" value="#{ForumTool.selectedForum.forum.title}" 
                         title=" #{ForumTool.selectedForum.forum.title}">
			      <f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
			  </h:commandLink>
          <f:verbatim><h:outputText value=" " /><h:outputText value=" / " /><h:outputText value=" " /></f:verbatim>
          <h:commandLink action="#{ForumTool.processActionDisplayTopic}" value="#{ForumTool.selectedTopic.topic.title}" 
                         title=" #{ForumTool.selectedForum.forum.title}">
				    <f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
				    <f:param value="#{ForumTool.selectedTopic.topic.id}" name="topicId"/>
				  </h:commandLink>
				  <f:verbatim></h3></f:verbatim>
			 </h:panelGroup>
			 <h:panelGroup styleClass="itemNav">
			   <h:outputText   value="#{msgs.cdfm_previous_topic}   "  rendered="#{!ForumTool.selectedTopic.hasPreviousTopic}" />
				 <h:commandLink action="#{ForumTool.processActionDisplayPreviousTopic}" value="#{msgs.cdfm_previous_topic}   "  
				                rendered="#{ForumTool.selectedTopic.hasPreviousTopic}" title=" #{msgs.cdfm_previous_topic}">
					<f:param value="#{ForumTool.selectedTopic.previousTopicId}" name="previousTopicId"/>
					<f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
				 </h:commandLink>
				 <f:verbatim><h:outputText value=" | " /></f:verbatim>
				 <h:outputText   value="#{msgs.cdfm_next_topic}   " rendered="#{!ForumTool.selectedTopic.hasNextTopic}" />
				 <h:commandLink action="#{ForumTool.processActionDisplayNextTopic}" value="#{msgs.cdfm_next_topic}   " 
				                rendered="#{ForumTool.selectedTopic.hasNextTopic}" title=" #{msgs.cdfm_next_topic}">
					<f:param value="#{ForumTool.selectedTopic.nextTopicId}" name="nextTopicId"/>
					<f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
				 </h:commandLink>
			 </h:panelGroup>
		  </h:panelGrid>
		<p class="textPanel">
		  <h:outputText value="#{ForumTool.selectedTopic.topic.shortDescription}" />
		  </p>
		<p class="textPanelFooter">
			<h:commandLink immediate="true" 
		                   action="#{ForumTool.processDfComposeToggle}" 
				               onmousedown="document.forms[0].onsubmit();"
			                 rendered="#{ForumTool.selectedTopic.hasExtendedDesciption}" 
			                 value="#{msgs.cdfm_read_full_description}"
			                 title="#{msgs.cdfm_read_full_description}">
			  <f:param value="dfViewMessage" name="redirectToProcessAction"/>
			  <f:param value="true" name="composeExpand"/>
		  </h:commandLink>
		  <h:commandLink immediate="true" 
				  action="#{ForumTool.processDfComposeToggle}" 
				  onmousedown="document.forms[0].onsubmit();"
					value="#{msgs.cdfm_hide_full_description}" 
					rendered="#{ForumTool.selectedTopic.readFullDesciption}"
					title="#{msgs.cdfm_hide_full_description}">
				<f:param value="dfViewMessage" name="redirectToProcessAction"/>
		  </h:commandLink>					
		  </p>
		   
		  <mf:htmlShowArea value="#{ForumTool.selectedTopic.topic.extendedDescription}" 
		                   rendered="#{ForumTool.selectedTopic.readFullDesciption}" 
		                   hideBorder="false" />
			
		<sakai:button_bar rendered="#{!ForumTool.deleteMsg}">
	    <sakai:button_bar_item action="#{ForumTool.processDfMsgReplyMsg}" value="#{msgs.cdfm_button_bar_reply_to_msg}" 
	                           rendered="#{ForumTool.selectedTopic.isNewResponseToResponse}" />
	    <sakai:button_bar_item action="#{ForumTool.processDfMsgReplyTp}" value="#{msgs.cdfm_button_bar_reply_to_topic}" 
		                         rendered="#{ForumTool.selectedTopic.isNewResponse}" />
      <sakai:button_bar_item action="#{ForumTool.processDfMsgGrd}" value="#{msgs.cdfm_button_bar_grade}" 
                             rendered="#{ForumTool.selectedTopic.isPostToGradebook && ForumTool.gradebookExist}"  /> 
      <sakai:button_bar_item action="#{ForumTool.processDfMsgRvs}" value="#{msgs.cdfm_button_bar_revise}"
		                         rendered="#{ForumTool.selectedTopic.isReviseAny}" accesskey="r" />
      <sakai:button_bar_item action="#{ForumTool.processDfMsgRvs}" value="#{msgs.cdfm_button_bar_revise}"
		    rendered="#{!ForumTool.selectedTopic.isReviseAny && 
		    	ForumTool.selectedTopic.isReviseOwn && ForumTool.selectedMessage.isOwn}" accesskey="r" />
<%--      <sakai:button_bar_item action="#{ForumTool.processDfMsgMove}" value="Move" rendered="#{ForumTool.fullAccess}"/>--%>
<%--      <sakai:button_bar_item action="#{ForumTool.processDfMsgDeleteConfirm}" value="Delete" 
      	rendered="#{ForumTool.selectedTopic.isDeleteAny}"/>
      <sakai:button_bar_item action="#{ForumTool.processDfMsgDeleteConfirm}" value="Delete" 
      	rendered="#{!ForumTool.selectedTopic.isDeleteAny && 
      		ForumTool.selectedTopic.isDeleteOwn && ForumTool.selectedMessage.isOwn
      		&& !ForumTool.selectedMessage.hasChild}"/>
      <sakai:button_bar_item action="#{ForumTool.processDfMsgDeleteConfirm}" 
        value="Delete Unavailable" disabled="true"
      	rendered="#{!ForumTool.selectedTopic.isDeleteAny && 
      		ForumTool.selectedTopic.isDeleteOwn && ForumTool.selectedMessage.isOwn
      		&& ForumTool.selectedMessage.hasChild}"/>--%>
    </sakai:button_bar>
    
    <h:panelGrid columns="3" styleClass="itemSummary" style="width: 100%;">
    	<h:outputText value="#{msgs.cdfm_subject}"/>
    	<h:outputText value="#{msgs.cdfm_subject}"/>
    	<h:panelGroup styleClass="msgNav">
    		<h:commandLink action="#{ForumTool.processDisplayPreviousMsg}" rendered="#{ForumTool.selectedMessage.hasPre}" 
                       title=" #{msgs.cdfm_prev_msg}">
			      <h:outputText value="#{msgs.cdfm_prev_msg}" />
 			    </h:commandLink>
			    <h:outputText value="#{msgs.cdfm_prev_msg}"  rendered="#{!ForumTool.selectedMessage.hasPre}" />
			    <f:verbatim><h:outputText value=" | " /></f:verbatim>
			    <h:commandLink action="#{ForumTool.processDfDisplayNextMsg}" rendered="#{ForumTool.selectedMessage.hasNext}" 
			                   title=" #{msgs.cdfm_next_msg}">
	 		      <h:outputText value="#{msgs.cdfm_next_msg}" /><commit_msg>SAK-5231 Make Message Center Skinnable --> Fixed bug that was introduced with skin changes ("Subject" was being displayed twice)<commit_after><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>
<%@ taglib uri="http://sakaiproject.org/jsf/messageforums" prefix="mf" %>
<f:loadBundle basename="org.sakaiproject.tool.messageforums.bundle.Messages" var="msgs"/>

<f:view>
<sakai:view>
	<h:form id="DF-1">
<!--jsp/discussionForum/message/dfViewMessage.jsp-->
		  <h:panelGrid columns="2" summary="layout" width="100%" styleClass="navPanel">
		    <h:panelGroup styleClass="breadCrumb">
				<f:verbatim><h3></f:verbatim>
				<h:commandLink action="#{ForumTool.processActionHome}" value="#{msgs.cdfm_message_forums}" title=" #{msgs.cdfm_message_forums}"/> 
				<f:verbatim><h:outputText value=" " /><h:outputText value=" / " /><h:outputText value=" " /></f:verbatim>
				<h:commandLink action="#{ForumTool.processActionDisplayForum}" value="#{ForumTool.selectedForum.forum.title}" 
                         title=" #{ForumTool.selectedForum.forum.title}">
			      <f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
			  </h:commandLink>
          <f:verbatim><h:outputText value=" " /><h:outputText value=" / " /><h:outputText value=" " /></f:verbatim>
          <h:commandLink action="#{ForumTool.processActionDisplayTopic}" value="#{ForumTool.selectedTopic.topic.title}" 
                         title=" #{ForumTool.selectedForum.forum.title}">
				    <f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
				    <f:param value="#{ForumTool.selectedTopic.topic.id}" name="topicId"/>
				  </h:commandLink>
				  <f:verbatim></h3></f:verbatim>
			 </h:panelGroup>
			 <h:panelGroup styleClass="itemNav">
			   <h:outputText   value="#{msgs.cdfm_previous_topic}   "  rendered="#{!ForumTool.selectedTopic.hasPreviousTopic}" />
				 <h:commandLink action="#{ForumTool.processActionDisplayPreviousTopic}" value="#{msgs.cdfm_previous_topic}   "  
				                rendered="#{ForumTool.selectedTopic.hasPreviousTopic}" title=" #{msgs.cdfm_previous_topic}">
					<f:param value="#{ForumTool.selectedTopic.previousTopicId}" name="previousTopicId"/>
					<f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
				 </h:commandLink>
				 <f:verbatim><h:outputText value=" | " /></f:verbatim>
				 <h:outputText   value="#{msgs.cdfm_next_topic}   " rendered="#{!ForumTool.selectedTopic.hasNextTopic}" />
				 <h:commandLink action="#{ForumTool.processActionDisplayNextTopic}" value="#{msgs.cdfm_next_topic}   " 
				                rendered="#{ForumTool.selectedTopic.hasNextTopic}" title=" #{msgs.cdfm_next_topic}">
					<f:param value="#{ForumTool.selectedTopic.nextTopicId}" name="nextTopicId"/>
					<f:param value="#{ForumTool.selectedForum.forum.id}" name="forumId"/>
				 </h:commandLink>
			 </h:panelGroup>
		  </h:panelGrid>
		<p class="textPanel">
		  <h:outputText value="#{ForumTool.selectedTopic.topic.shortDescription}" />
		  </p>
		<p class="textPanelFooter">
			<h:commandLink immediate="true" 
		                   action="#{ForumTool.processDfComposeToggle}" 
				               onmousedown="document.forms[0].onsubmit();"
			                 rendered="#{ForumTool.selectedTopic.hasExtendedDesciption}" 
			                 value="#{msgs.cdfm_read_full_description}"
			                 title="#{msgs.cdfm_read_full_description}">
			  <f:param value="dfViewMessage" name="redirectToProcessAction"/>
			  <f:param value="true" name="composeExpand"/>
		  </h:commandLink>
		  <h:commandLink immediate="true" 
				  action="#{ForumTool.processDfComposeToggle}" 
				  onmousedown="document.forms[0].onsubmit();"
					value="#{msgs.cdfm_hide_full_description}" 
					rendered="#{ForumTool.selectedTopic.readFullDesciption}"
					title="#{msgs.cdfm_hide_full_description}">
				<f:param value="dfViewMessage" name="redirectToProcessAction"/>
		  </h:commandLink>					
		  </p>
		   
		  <mf:htmlShowArea value="#{ForumTool.selectedTopic.topic.extendedDescription}" 
		                   rendered="#{ForumTool.selectedTopic.readFullDesciption}" 
		                   hideBorder="false" />
			
		<sakai:button_bar rendered="#{!ForumTool.deleteMsg}">
	    <sakai:button_bar_item action="#{ForumTool.processDfMsgReplyMsg}" value="#{msgs.cdfm_button_bar_reply_to_msg}" 
	                           rendered="#{ForumTool.selectedTopic.isNewResponseToResponse}" />
	    <sakai:button_bar_item action="#{ForumTool.processDfMsgReplyTp}" value="#{msgs.cdfm_button_bar_reply_to_topic}" 
		                         rendered="#{ForumTool.selectedTopic.isNewResponse}" />
      <sakai:button_bar_item action="#{ForumTool.processDfMsgGrd}" value="#{msgs.cdfm_button_bar_grade}" 
                             rendered="#{ForumTool.selectedTopic.isPostToGradebook && ForumTool.gradebookExist}"  /> 
      <sakai:button_bar_item action="#{ForumTool.processDfMsgRvs}" value="#{msgs.cdfm_button_bar_revise}"
		                         rendered="#{ForumTool.selectedTopic.isReviseAny}" accesskey="r" />
      <sakai:button_bar_item action="#{ForumTool.processDfMsgRvs}" value="#{msgs.cdfm_button_bar_revise}"
		    rendered="#{!ForumTool.selectedTopic.isReviseAny && 
		    	ForumTool.selectedTopic.isReviseOwn && ForumTool.selectedMessage.isOwn}" accesskey="r" />
<%--      <sakai:button_bar_item action="#{ForumTool.processDfMsgMove}" value="Move" rendered="#{ForumTool.fullAccess}"/>--%>
<%--      <sakai:button_bar_item action="#{ForumTool.processDfMsgDeleteConfirm}" value="Delete" 
      	rendered="#{ForumTool.selectedTopic.isDeleteAny}"/>
      <sakai:button_bar_item action="#{ForumTool.processDfMsgDeleteConfirm}" value="Delete" 
      	rendered="#{!ForumTool.selectedTopic.isDeleteAny && 
      		ForumTool.selectedTopic.isDeleteOwn && ForumTool.selectedMessage.isOwn
      		&& !ForumTool.selectedMessage.hasChild}"/>
      <sakai:button_bar_item action="#{ForumTool.processDfMsgDeleteConfirm}" 
        value="Delete Unavailable" disabled="true"
      	rendered="#{!ForumTool.selectedTopic.isDeleteAny && 
      		ForumTool.selectedTopic.isDeleteOwn && ForumTool.selectedMessage.isOwn
      		&& ForumTool.selectedMessage.hasChild}"/>--%>
    </sakai:button_bar>
    
    <h:panelGrid columns="3" styleClass="itemSummary" style="width: 100%;">
    	<h:outputText value="#{msgs.cdfm_subject}"/>
    	<h:outputText value="#{ForumTool.selectedMessage.message.title}"/>
    	<h:panelGroup styleClass="msgNav">
    		<h:commandLink action="#{ForumTool.processDisplayPreviousMsg}" rendered="#{ForumTool.selectedMessage.hasPre}" 
                       title=" #{msgs.cdfm_prev_msg}">
			      <h:outputText value="#{msgs.cdfm_prev_msg}" />
 			    </h:commandLink>
			    <h:outputText value="#{msgs.cdfm_prev_msg}"  rendered="#{!ForumTool.selectedMessage.hasPre}" />
			    <f:verbatim><h:outputText value=" | " /></f:verbatim>
			    <h:commandLink action="#{ForumTool.processDfDisplayNextMsg}" rendered="#{ForumTool.selectedMessage.hasNext}" 
			                   title=" #{msgs.cdfm_next_msg}">
	 		      <h:outputText value="#{msgs.cdfm_next_msg}" />
{'fraction_non_alphanumeric': 0.16616672479944192, 'fraction_numerical': 0.0020927799093128706, 'mean_word_length': 4.047887323943662, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 186, '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': '6206270', 'n_tokens_mistral': 5216, 'n_tokens_neox': 4628, 'n_words': 479}