]> git.llucax.com Git - software/sercom.git/blob - sercom/subcontrollers/misentregas/templates/diff.kid
otros ajustes varios de leyendas y tablas.
[software/sercom.git] / sercom / subcontrollers / misentregas / templates / diff.kid
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python from sercom.model import Grupo, AlumnoInscripto ?>
3 <?python import os ?>
4 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
5     py:extends="'../../../templates/master.kid'">
6 <head>
7 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
8 <LINK MEDIA="all" HREF="/tg_widgets/turbogears.widgets/sh/SyntaxHighlighter.css" TYPE="text/css" REL="stylesheet" />
9 <title>list</title>
10 </head>
11 <body>
12
13 <h1>Diferencias</h1>
14
15
16 <?python i = 0 ?>
17 <div py:for="info in zip.infolist()">
18         <h3>${info.filename}</h3>
19                 <?python n, ext = os.path.splitext(info.filename) ?>
20                 <textarea name="code" class="${ext[1:]}:collapse">${zip.read(info.filename)}</textarea>
21         <?python i += 1 ?>
22 </div>
23
24 <br/>
25 <a href="javascript:window.history.go(-1)">Volver</a>
26
27         <!-- Lo hago a mano para poder agregar un nuevo lenguaje. No se como hacerlo sino :S -->
28   <SCRIPT SRC="/tg_widgets/turbogears.widgets/sh/shCore.js" TYPE="text/javascript"></SCRIPT>
29         <SCRIPT SRC="/tg_widgets/turbogears.widgets/sh/shBrushPython.js" TYPE="text/javascript"></SCRIPT>
30         <SCRIPT SRC="/tg_widgets/turbogears.widgets/sh/shBrushXml.js" TYPE="text/javascript"></SCRIPT>
31         <script type="text/javascript">
32                 // <!-- Agrego soporte para DIFF que no tiene el widget -->
33                 dp.sh.Brushes.Diff = function() {
34                         var keywords =  '@@'
35
36                         this.regexList = [
37                                 { regex: new RegExp('^-.*', 'gm'), css: 'rojo' },
38                                 { regex: new RegExp('^@@.*', 'gm'), css: 'chunk' },
39                                 { regex: new RegExp('^\\+.*', 'gm'), css: 'verde' }
40                                 ];
41
42                                 this.CssClass = 'dp-diff';
43                 }
44                 dp.sh.Brushes.Diff.prototype    = new dp.sh.Highlighter();
45                 dp.sh.Brushes.Diff.Aliases = ['diff'];
46         </script>
47         <SCRIPT TYPE="text/javascript">dp.SyntaxHighlighter.HighlightAll('code');</SCRIPT>
48 </body>
49 </html>
50
51 <!-- vim: set et sw=4 sts=4 : -->