Commit 828ace3f9bba44d2006b0d9547ef01a619eabd88

Authored by lyandro.santana
1 parent 8181d508

Pacote de atualização3

git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-web@10322 c2178572-b5ca-4887-91d2-9e3a90c7d55b
src/main/webapp/WEB-INF/jsp/avaliacao/detalhesAvaliacao.jsp
... ... @@ -50,10 +50,7 @@
50 50 <td width="56%" class="topo2"> Linha(s) de Cógido Fonte</td>
51 51 </tr>
52 52  
53   -
54   -
55   -
56   - <c:forEach items="${detalhe.criterios}" var="criterio">
  53 + <c:forEach items="${detalhe.criterios}" var="criterio">
57 54 <tr>
58 55 <td class="celula" width="2%"> ${criterio.id} </td>
59 56 <td class="celula" width="60%" align="left">${criterio.descricao}</td>
... ... @@ -62,8 +59,8 @@
62 59 <td class="celula">
63 60 <c:forEach items="${criterio.linhasColunas}" var="linha" varStatus="index">
64 61  
65   - <c:set var="linhaCod" value="${fn:split(linha, '.')}" />
66   - <a href="#${criterio.id}.${linha}" class="sublinharLink">${linhaCod[0]}</a>
  62 + <c:set var="lineOcc" value="${fn:split(linha, '.')}" />
  63 + <a href="#${criterio.id}.${linha}" class="sublinharLink">${lineOcc[0]}</a>
67 64 <c:if test="${index.index != fn:length(criterio.linhas) -1}"> - </c:if>
68 65  
69 66 </c:forEach>
... ... @@ -84,9 +81,12 @@
84 81 <h2 class="outstanding-title">Código Fonte</h2>
85 82 </div>
86 83 <div id="codigo" align="left">
  84 + <c:set var="testeCrit" value="${listOcorrencia[0].criterio}"/>
  85 + <c:set var="count1" value="0"/>
  86 +
87 87 <pre>
88 88 <c:forEach items="${listOcorrencia}" var="ocorrencia" varStatus="index">
89   - <a name="${ocorrencia.criterio}.${ocorrencia.line}.${ocorrencia.column}">${ocorrencia.line} : ${ocorrencia.tag}</a>
  89 + <a name="${ocorrencia.criterio}.${ocorrencia.posLineOccurrence}">${ocorrencia.line} : ${ocorrencia.tag}</a>
90 90 </c:forEach>
91 91 </pre>
92 92 </div>
... ...
src/main/webapp/WEB-INF/jsp/error/index.jsp
1 1 <%@page contentType="text/html" pageEncoding="UTF-8"%>
2 2 <%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
3 3 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  4 +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
4 5  
5 6 <t:baseLayout>
6 7 <jsp:body>
7 8 <link rel="stylesheet" href="css/bootstrap.alert.css">
  9 + <script type="text/javascript" src="<c:url value="/js/jquery-1.10.2.min.js" />"></script>
  10 + <script type="text/javascript">
  11 +
  12 + $(document).ready(function() {
  13 + $("#errorDesc").hide();
  14 + $("#MostrarMensagem").click(MostrarMensagem);
  15 +
  16 + function MostrarMensagem(){
  17 + $("#errorDesc").show();
  18 + }
  19 + })
  20 + </script>
8 21 <!-- <link rel="stylesheet" href="css/bootstrap-responsive.min.css">
9 22 <link rel="stylesheet" href="css/bootstrap.min.css"> -->
10 23  
... ... @@ -17,11 +30,24 @@
17 30 <h2>Erro</h2>
18 31 <div class="row">
19 32 <div class="alert alert-error">
20   - Não foi possível realizar a avaliação. Verifique o preenchimento da url, arquivo ou o codigo inserido e se o conteúdo está disponível.
  33 + Não foi possível realizar a avaliação! Ocorreu o problema: ${ fn:substring(error,0,29)}
21 34 </div>
22 35 <input type="button" value="Voltar" onClick="history.go(-1)">
  36 +
  37 + <div align="right"><a href="javascript:void(0)" id="MostrarMensagem" >Detalhes do erro</a></div>
  38 +
  39 +
  40 + <div id="errorDesc">
  41 + <div class="alert alert-error">
  42 + <p>${error}</p>
  43 + </div>
  44 + </div>
  45 +
  46 +
23 47 </div>
24 48  
25 49 </div>
  50 +
  51 +
26 52 </jsp:body>
27 53 </t:baseLayout>
28 54 \ No newline at end of file
... ...