<commit_before><%--
/**
* Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>

<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui" %>


<%@page import="java.util.List"%>
<%@page import="org.slc.sli.json.bean.AppsData"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<portlet:defineObjects />




<%
List<AppsData> appList = null;
if(renderRequest.getAttribute("appList") != null){
	 appList = (List<AppsData>)renderRequest.getAttribute("appList");
}
%>



<table border ="0">
 <c:forEach items="${appList}" var="app">

<tr>

<td><img src="<%=request.getContextPath() %>/images/cogwheel.png" alt="settings_logo" style="height: 10px;width: 10px"/></td>
<td>&nbsp;</td>
<td> 

<c:choose>
	
	<c:when test='${fn:toLowerCase(app.behaviour) eq "iframe app" }'>
		<a onClick="callIframeOfConfApp('<c:out value="${app.admin_url}"></c:out>')" href='#' style="color: #000000;font-size: 14px;">
			<c:out value="${app.name}"></c:out>
		</a>
	</c:when>
	
	<c:when test='${fn:toLowerCase(app.behaviour) eq "wsrp app" }'>
		<a onClick="callWsrpOfConfApp('<c:out value="${app.admin_url}"></c:out>')"  href='#' style="color: #000000;font-size: 14px;">
			<c:out value="${app.name}"></c:out>
		</a>
	</c:when>
	
	<c:when test='${fn:toLowerCase(app.behaviour) eq "full window app" }'>
	
	<a href='<c:out value="${app.admin_url}"></c:out>' style="color: #000000;font-size: 14px;">
		<c:out value="${app.name}"></c:out>
	</a>
	</c:when>		
</c:choose>    
</td>
</tr>

</c:forEach>
</table>




<aui:form method="post" name="fm">
	<aui:input name="url" type="hidden" />
</aui:form>

<script>
function callIframeOfConfApp(arg1){
	document.<portlet:namespace />fm.action='<portlet:actionURL><portlet:param name="javax.portlet.action" value="openiframepageofconfapp" /></portlet:actionURL>';
	document.<portlet:namespace />fm.<portlet:namespace />url.value = arg1;
	submitForm(document.<portlet:namespace />fm);
}

function callWsrpOfConfApp(arg1){
	document.<portlet:namespace />fm.action='<portlet:actionURL><portlet:param name="javax.portlet.action" value="openwsrppageofconfapp" /></portlet:actionURL>';
	document.<portlet:namespace />fm.<portlet:namespace />url.value = arg1;
	submitForm(document.<portlet:namespace />fm);
}
</script><commit_msg>on app config page, dont display apps with no admin url<commit_after><%--
/**
* Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>

<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui" %>


<%@page import="java.util.List"%>
<%@page import="org.slc.sli.json.bean.AppsData"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<portlet:defineObjects />




<%
List<AppsData> appList = null;
if(renderRequest.getAttribute("appList") != null){
	 appList = (List<AppsData>)renderRequest.getAttribute("appList");
}
%>



<table border ="0">
 <c:forEach items="${appList}" var="app">
  <c:if test='${not empty app.admin_url}'>
  
   <tr>

    <td><img src="<%=request.getContextPath() %>/images/cogwheel.png" alt="settings_logo" style="height: 10px;width: 10px"/></td>
    <td>&nbsp;</td>
    <td> 

    <c:choose>
	
	<c:when test='${fn:toLowerCase(app.behaviour) eq "iframe app" }'>
		<a onClick="callIframeOfConfApp('<c:out value="${app.admin_url}"></c:out>')" href='#' style="color: #000000;font-size: 14px;">
			<c:out value="${app.name}"></c:out>
		</a>
	</c:when>
	
	<c:when test='${fn:toLowerCase(app.behaviour) eq "wsrp app" }'>
		<a onClick="callWsrpOfConfApp('<c:out value="${app.admin_url}"></c:out>')"  href='#' style="color: #000000;font-size: 14px;">
			<c:out value="${app.name}"></c:out>
		</a>
	</c:when>
	
	<c:when test='${fn:toLowerCase(app.behaviour) eq "full window app" }'>
	
	<a href='<c:out value="${app.admin_url}"></c:out>' style="color: #000000;font-size: 14px;">
		<c:out value="${app.name}"></c:out>
	</a>
	</c:when>		
    </c:choose>    
    </td>
   </tr>
  </c:if>
 </c:forEach>
</table>




<aui:form method="post" name="fm">
	<aui:input name="url" type="hidden" />
</aui:form>

<script>
function callIframeOfConfApp(arg1){
	document.<portlet:namespace />fm.action='<portlet:actionURL><portlet:param name="javax.portlet.action" value="openiframepageofconfapp" /></portlet:actionURL>';
	document.<portlet:namespace />fm.<portlet:namespace />url.value = arg1;
	submitForm(document.<portlet:namespace />fm);
}

function callWsrpOfConfApp(arg1){
	document.<portlet:namespace />fm.action='<portlet:actionURL><portlet:param name="javax.portlet.action" value="openwsrppageofconfapp" /></portlet:actionURL>';
	document.<portlet:namespace />fm.<portlet:namespace />url.value = arg1;
	submitForm(document.<portlet:namespace />fm);
}
</script>
{'fraction_non_alphanumeric': 0.20294955589073235, 'fraction_numerical': 0.015082956259426848, 'mean_word_length': 5.3760683760683765, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, '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': '5999877', 'n_tokens_mistral': 2286, 'n_tokens_neox': 2139, 'n_words': 452}