summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/display.html
blob: 90b5b271346f87922004c85ec9ca8e238db325b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
{% load i18n comments gstudio_tags %}
{% load gstudio_tags i18n  %}
{% get_tags as nodetype_tags %}
{% load adminmedia  grp_tags %}



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}" version="-//W3C//DTD XHTML 1.1//EN" xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<style type="text/css">
			.link {
				stroke: #ccc;
			}
			.nodetext {
				#pointer-events: none;
				font: 10px Serif;
				font-style:italic;
			}
			.mainnode{

 				font: 15px sans-serif;
			           fill:"red";
				border-width: 1px;
				font-weight:bold;
				border-color: gray;

			}
			.relnode {
 				font: 10px sans-serif;
				font-weight:bold;
			           fill:#000;
			}
			

			.node {
				border-width: 1px;
				border-color: gray;
			        fill:"green";
 				font: 10px sans-serif;
			}
			body {
				background-color: white;
			        display:block;
			}
			#chart {
				height: 90%;
				margin: 0 auto;
				width: 90%;
				display: block;
			}
			svg {
				margin-left: 10%;
				margin-right: 10%;
				display: block;
				position: absolute;
			}

		</style>
		<!-- the header lines from grappelli -->
		{% block blockbots %}
		<meta name="robots" content="NONE,NOARCHIVE" />
		{% endblock %} <!-- STYLESHEETS -->
		{% block stylesheets %}
		<link href="{% admin_media_prefix %}css/base.css" rel="stylesheet" type="text/css" />
		{% if LANGUAGE_BIDI %}
		<link href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" rel="stylesheet" type="text/css" />
		{% endif %}
		<link href="{% admin_media_prefix %}jquery/ui/css/custom-theme/jquery-ui-1.8.custom.css" rel="stylesheet" type="text/css" media="screen" title="no title" charset="utf-8" />
		<link href="{% admin_media_prefix %}css/jquery-ui-grappelli-extensions.css" rel="stylesheet" type="text/css" />
		{% endblock %} <!-- EXTRASTYLES -->
		{% block extrastyle %}{% endblock %} <!-- JAVASCRIPTS -->
		{% block javascripts %}
		<script type="text/javascript">
			// GLOBALS
			var grappelli = {},
			// TODO: klemens: drop ADMIN_URL
			ADMIN_URL = "{% url admin:index %}",
			MODEL_URL_ARRAY = {% get_content_types %}, DATE_FORMAT = "{% get_date_format %}", TIME_FORMAT = "{% get_time_format %}", DATETIME_FORMAT = "{% get_datetime_format %}";
		</script>
		<!-- jQuery, jQuery-UI -->
		<script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}jquery/ui/js/jquery-ui-1.8.15.custom.min.js" type="text/javascript"></script>
		<!-- Grappelli Main JS -->
		<script src="{% admin_media_prefix %}js/grappelli/grappelli.js" type="text/javascript"></script>
		<!-- Grappelli jQuery Plugins, Widgets -->
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_collapsible.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_collapsible_group.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_timepicker.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_related_fk.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_related_m2m.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_related_generic.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_autocomplete_fk.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_autocomplete_m2m.js" type="text/javascript"></script>
		<script src="{% admin_media_prefix %}js/grappelli/jquery.grp_autocomplete_generic.js" type="text/javascript"></script>
    <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery-ui-timepicker-0.2.9/include/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery-ui-timepicker-0.2.9/include/jquery.ui.core.min.js"></script>
    <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery-ui-timepicker-0.2.9/include/jquery.ui.widget.min.js"></script>
    <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery-ui-timepicker-0.2.9/include/jquery.ui.tabs.min.js"></script>
    <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery-ui-timepicker-0.2.9/include/jquery.ui.position.min.js"></script>

    <script type="text/javascript" src="{{STATIC_URL}}gstudio/js/jquery.ui.timepicker.js"></script>

    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
	<script src="{{STATIC_URL}}gstudio/js/gstudio.js" type="text/javascript"></script>
		<!-- EXTRAHEAD -->
		{% block extrahead %}{% endblock %}

		{% endblock %} <!-- the header lines from gstudio -->
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta http-equiv="cache-control" content="public" />
		<meta name="robots" content="follow, all" />
		<meta name="language" content="{{ LANGUAGE_CODE }}" />
		<meta name="description" content="{% block meta-description %}Demonstration of the Gstudio Blog application.{% endblock %}" />
		<meta name="keywords" content="{% block meta-keywords %}django, blog, gstudio, {{ nodetype_tags|join:", "}}{% endblock %}" />
		<meta name="author" content="gnowgi" />
		{% block meta %}{% endblock %}
		<link rel="pingback" href="/xmlrpc/" />
		<link rel="shortcut icon" href="{{ STATIC_URL }}gstudio/img/favicon.ico" />
		<link rel="home" href="{% url gstudio_nodetype_archive_index %}" />

		<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ STATIC_URL }}gstudio/css/screen.css" />

		<link rel="stylesheet" type="text/css" media="print" href="{{ STATIC_URL }}gstudio/css/print.css" />
		<!--[if lt IE 8]>
		<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ STATIC_URL }}gstudio/css/ie.css" />
		<![endif]-->
		{% block link %}{% endblock %}
		{% block script %}{% endblock %} <title>Gnowledge Studio - {% block title %}{% endblock %}</title>
	</head>
	<body id="gstudio">
		<div class="body" >
			<div class="content">
				<!--
				<div id="relation_type" class="ui-buttonset">
				<span>Relation type:</span>
				<input checked="checked" value="follows" type="radio" id="follows" name="radio" class="ui-helper-hidden-accessible"><label for="follows" class="ui-button ui-widget ui-state-default ui-button-text-only ui-corner-left" aria-pressed="false" role="button" aria-disabled="false"><span class="ui-button-text">Followers</span></label>
				<input value="mentions" type="radio" id="mentions" name="radio" class="ui-helper-hidden-accessible"><label for="mentions" aria-pressed="true" class="ui-button ui-widget ui-state-default ui-button-text-only ui-corner-right ui-state-active" role="button" aria-disabled="false"><span class="ui-button-text">Mentions</span></label>
				<input value="hashtags" type="radio" id="hashtags" name="radio"/><label for="hashtags">Shared interests</label>
				</div>
				-->
				<div id="chart">
					<svg width="960" height="700" style="opacity: 1; ">
				</div>
				<script type="text/javascript" src="/static/gstudio/js/jquery.min.js" ></script>
				<script type="text/javascript" src="/static/gstudio/js/jquery-ui.js" ></script>
				<script type="text/javascript" src="/static/gstudio/js/underscore.js" ></script>
				<script type="text/javascript" src="/static/gstudio/js/d3.js"></script>
				<script type="text/javascript" src="/static/gstudio/js/d3.layout.js"></script>
				<script type="text/javascript" src="/static/gstudio/js/d3.geom.js"></script>
				<!-- <script type="text/javascript" src="/static/gstudio/js/force.js"></script>

				Javascript for Object type force graph
				-->
   <script type="text/javascript" >
function init(a,b)
{

 
  nodes_by_id = _.reduce(a, function(acc, n) {
   acc[n._id] = n;
        return acc;
      }, {});
								       
     all_edges=new Array();
     //this contains all the links between the nodes
  all_edges =_(b).chain().map(function(e) {
        e.source = nodes_by_id[e.from];
        e.target = nodes_by_id[e.to];
	//`e.type = nodes_by_id[e.type]
        return e;
      }).filter(function(e){
        return nodes_by_id[e.from] && nodes_by_id[e.to]&& e.type!="title" && e.type!="content" && e.type!="authors"
      }).value();  
 
$(function fgraph() {


$.getJSON('/nodetypes/graphs/version_graph_json/{{ ssid }}', function (json1) { 
										metadata=json1.node_metadata;
  										relations=json1.relations;
									
										init(metadata,relations);
										load({{ssid}}) });

           
function load(key)
{
   var w = 700,
        h = 500,
        fill = d3.scale.category20();
 
  var vis = d3.select("#chart")
        .append("svg:svg")
	.attr("width", w)
        .attr("height", h);       
    vis.append("svg:g").attr("class", "edges");        
    vis.append("svg:g").attr("class", "nodes");
  

	
	nodes_by_id[{{nt.id}}].x = w/2.0;
	nodes_by_id[{{nt.id}}].y = h/2.0;       
      
         var force = d3.layout.force()
              .linkStrength(0.3)
              .charge(-5000)
              .friction(0.7)
              .gravity(0.7)
              .linkDistance(10)
              .nodes([])
              .links([])
              .size([w, h])
              .start();

      function update(edges){
        // for each func
        _.each(nodes_by_id, function(n){n.added = false});
        // reduce the nodes list to have only those nodes for a given rel.
      nodes = _.reduce(edges, function(acc, e) {
          if(nodes_by_id[e.from] && !nodes_by_id[e.from].added){
            nodes_by_id[e.from].added = true;
            acc.push(nodes_by_id[e.from]);
          }
          if(nodes_by_id[e.to] && !nodes_by_id[e.to].added){
            nodes_by_id[e.to].added = true;
            acc.push(nodes_by_id[e.to]);
          }
          return acc;
        }, []);
        
        force.nodes(nodes);
        force.links(edges);
        force.start();

       link = d3.select("#chart g.edges").selectAll("line.link").select(this.arrowhead)
                .data(edges, function(e){return e.from + "-" + e.to + "-" + e.type});
                
                
                link.enter().append("svg:line")
                .attr("class", "link")
                .style("stroke-width", 2 /* function(d) {
                  return Math.sqrt(d.value);
                } */ )
                .attr("x1", function(d) {
                  return d.source.x;
                })
                .attr("y1", function(d) {
                  return d.source.y;
                })
                .attr("x2", function(d) {
                  return d.target.x;
                })
                .attr("y2", function(d) {
                  return d.target.y;
                })
                .attr("text", function(d) {
                  return d.type;
                })
               .attr("marker-end", "url(#arrowhead)");

	      
	     
          
	  var node = d3.select("#chart g.nodes").selectAll("g.node").data(nodes);
    
          

var new_g = node.enter().append("svg:a")
              .attr("class", function(d) { var e=(d._id).charAt(0); if (d._id=={{nt.id}}) return "mainnode"; else if (e=="-") return "nodetext"; else if (isNaN(d._id)) return "relnode"  ; else return "node"; })   	      
	    
	      .call(force.drag);

			new_g.append("svg:marker")
                                .attr("id", "arrowhead")
                                .attr("viewBox","0 0 10 10")
                                .attr("refX","20")
                                .attr("refY","5")
                                .attr("markerUnits","strokeWidth")
                                .attr("markerWidth","9")
                                .attr("markerHeight","5")
                                .attr("orient","auto")
                                .append("svg:path")
                                .attr("d","M 0 0 L 10 5 L 0 10 z")
                                .attr("fill", "#6D6666"); 


					
		text1 = new_g.append("svg:text")
			.attr("class",function(d) {var e=(d._id).charAt(0);  if (d._id=={{nt.id}}) return "mainnode";else if (e=="-") return "nodetext"; else if (isNaN(d._id)) return "relnode";  else return "node"; })
                        .attr("y", 20)
	                .attr("x", 25) 
			.attr("dy", ".35em")
                        .attr("text-anchor","middle") 	  
  	
    
                        .text(function(d) {
                          return d.screen_name;
                        });
			
           bbox = text1.node().getBBox();
		console.log(bbox);

        
	new_g.filter(function(d) { return (d._id).charAt(0)=="-"; }).append("svg:rect")
                                                      .attr("x",bbox.x-22)
						      .attr("y", bbox.y)	
						       .attr("width", function(d) {var ttx=d.screen_name ; return (ttx.length+bbox.width+40)})
							.attr("height", bbox.height)
						      .call(force.drag)
				    		      .style("fill-opacity", ".1")
				                      .style("stroke", "#000")
				 		      .style("stroke-width","1px"  );
				    		      
new_g.filter(function(d) { return (d._id)>0;}).append("svg:ellipse")
				    .attr("cx", bbox.x+25)
				    .attr("cy", bbox.y+13)
				    .call(force.drag)
				    .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 40)})
				    .attr("ry",13)
				    .style("fill-opacity", ".2")
				    .style("stroke", "#666")
				    .style("stroke-width", "1.5px")
				    .style("fill", function(d) {if (d.refType=="Objecttype") return "blue"; else if(d.refType=="Gbobject") return "red"; else return "none"});





           	node.exit().remove();							




        force.on("tick", function() {

          var x_center = $("#chart").width() / 2;
          var y_center = $("#chart").height() / 2;

          link.attr("x1", function(d) { return d.source.x; })
            .attr("y1", function(d) { return d.source.y; })
            .attr("x2", function(d) { return d.target.x; })
            .attr("y2", function(d) { return d.target.y; });

          node.attr("transform", function(d) { return "translate(" + (d.x-16) + "," + (d.y-16) + ")"; });

        });
      }
      
	update(all_edges);
      vis.style("opacity", 1e-6)
              .transition()
              .duration(1000)
              .style("opacity", 1);
      
   
     
 
  }
});


</script>
	</div>
</div>



<div>
	{% include "gstudio/_header.html" %}
	<div id="breadcrumbs" class="span-24 last">
	/ {% block breadcrumbs %}{% endblock %}
	</div>
	<div id="body" class="span-24 last" >
	 <div id="content" class="hfeed span-16 border">
		<h3>{% block content %}
		  {% block nodetype-content %}
		  <h2 class="nodetype-title">
		    <a href="{{ nt.get_absolute_url }}" title="{{ nt.title }}" rel="bookmark">{{ ver_nbh_dict.title }} {{ nt.id }}.{{ version_no }}
		    </a>
		    <a href="{{ nt.get_edit_url }}/history/{{ ssid }}" target="_blank"  title = "edit">[edit]</a>  
		  </h2>
		  {% with nt.html_content|safe as object_content %}
		   <b>Name:<nbsp></b> {{ ver_nbh_dict.title }} <br/>
                           
			   {% if ver_nbh_dict.plural %}
                                <b> Plural Name:<nbsp></b>
                                         {{ ver_nbh_dict.plural}} <br/>
                           {% endif %}
                            {% if ver_nbh_dict.altnames %}
                               <b> Alternate names:<nbsp></b>
                                         {{ ver_nbh_dict.altnames}} <br/>
		           {% endif %}
	                   {% if ver_nbh_dict.type_of %}
                                <b> Type of:<nbsp></b>
                                {% for typekey,typevalue in ver_nbh_dict.type_of.items %}
                                       <a href="{{typevalue}}" title = "{{typekey}}">{{typekey}}</a>;
                                {% endfor %}<br/>
                           {% endif %}

			  
			    {% if ver_nbh_dict.member_of_metatypes %}
                           
                          
                                <b> Member of Metatypes:<nbsp></b>
                                    {% for mkey,mvalue in ver_nbh_dict.member_of_metatypes.items %}
                                        <a href="{{mvalue}}" title = "{{mkey}}">{{mkey}}</a>;
                                    {% endfor %}<br/>
                           {% endif %}
                          
			   
			        
                           {% if ver_nbh_dict.contains_subtypes %}
                                <b> Contains SubTypes:<nbsp></b>
                                {% for stkey,stvalue in ver_nbh_dict.contains_subtypes.items %}
                                        <a href="{{stvalue}}" title = "{{stkey}}">{{stkey}}</a>;
                                {% endfor %}<br/>
                           {% endif %}
                          
                          
                           {% if ver_nbh_dict.contains_members %}
                         
                          
                                <b>Contains Members:<nbsp></b>
                                    {% for mkey,mvalue in ver_nbh_dict.contains_members.items %}
                                        <a href="{{mvalue}}" title = "{{mkey}}">{{mkey}}</a>;
                                    {% endfor %}<br/>
                           {% endif %}
                         
                           
                         
                         
                           
                                
			    <b>Authors: <nbsp> </b>
                                
				       
	                  
			
                              {% for author in nt.authors.all %}
      			<span class="vcard author">
        		<a href="{% url gstudio_author_detail author %}" class="fn nickname url" rel="author"
           		title="{% blocktrans with author as author %}Show {{ author }} nodetypes{% endblocktrans %}">{{ author }}</a>
      			</span>{% if not forloop.last %}, {% endif %}
      				{% endfor %} <br/>
                         
                            
                            
                            {% if ver_nbh_dict.priornodes %}
                         
                           
                                <b>Prior nodes:<nbsp></b>
                                    {% for mkey,mvalue in ver_nbh_dict.priornodes.items %}
                                        <a href="{{mvalue}}" title = "{{mkey}}">{{mkey}}</a>;
                                    {% endfor %}<br/>
                           {% endif %}
                           
                           {% if ver_nbh_dict.posteriornodes %}
                         
                           
                                <b>Posterior nodes:<nbsp></b>
                                    {% for mkey,mvalue in ver_nbh_dict.posteriornodes.items %}
                                        <a href="{{mvalue}}" title = "{{mkey}}">{{mkey}}</a>;
                                    {% endfor %}<br/>
                           {% endif %}
                             
                            {% if ver_nbh_dict.relations %}
                         
                         
                                 {% for relkey,relvalue in ver_nbh_dict.relations.items %}
                                          <b>{{relkey}}:<nbsp></b>
					{% for relk, relv in relvalue.items %}
					    <a href="{{relv}}" title = "{{relk}}">{{relk}}</a>;
                                        {% endfor %}<br/>
				 {% endfor %}
	                   {% endif %}
                           
                           {% if ver_nbh_dict.attributes %}
                           
				    {% for atkey,atvalue in ver_nbh_dict.attributes.items %}
                                      {% if atvalue %}
                                       <b>{{atkey}}:<nbsp> </b>
                                        {% for atr in atvalue %}
                                        	   {{atr}};
                                         {% endfor %} <br/>
                                      {% endif %}
				    {% endfor %}
	                   {% endif %}
                            {% if ver_nbh_dict.leftroles %}
                         
                                                         
				   <b>Left roles:<nbsp> </b>
                                
				    {% for lrkey,lrvalue in ver_nbh_dict.leftroles.items %}
                                        <a href="{{lrvalue}}" title = "{{lrkey}}">{{lrkey}}</a>;
				    {% endfor %}       <br/>
	                   {% endif %}
                           
                           {% if ver_nbh_dict.rightroles %}
                        
			      <b>Right roles:<nbsp> </b>
                                
				    {% for rrkey,rrvalue in ver_nbh_dict.rightroles.items %}
                                        <a href="{{rrvalue}}" title = "{{rrkey}}">{{rrkey}}</a>;
				    {% endfor %}       <br/>
	                   {% endif %}
                           
                          
                           {% if ver_nbh_dict.ats %}
                                             
                                
				   <b>Subjecttype of:<nbsp> </b>
                                
				    {% for atkey,atvalue in ver_nbh_dict.ats.items %}
                                        <a href="{{atvalue}}" title = "{{atkey}}">{{atkey}}</a>;
				    {% endfor %}       <br/>
	                   {% endif %}
                           
			 
                           <b>Content:<nbsp></b>{{ ver_nbh_dict.content }}
                            

		  {% endwith %}
		  {% endblock %}
		  {% endblock %}
</div>

         <div id="sidebar">
	  {% block sidebar %}
	  
	  <div class="History">
	
	    <h3>{% trans "Versions" %}</h3>
	   
	    <form name="history" action="/nodetypes/display/compare_history/{{ ssid }}" >
	    <table cellspacing="0" border="2">
	    <tr>
	    <td> <input type="radio" name="group1" value="{{ ssid }}.{{ version_no }}" checked >{{ nt.id }}.{{ version_no }}</input></td>
	    <td></td></tr>
	    
	    {% for sid in nt.get_ssid  %}
	    
	    {% if sid|stringformat:"s" != ssid|stringformat:"s"   %}
	    <tr>
	    <td>
	    </td>
	    <td>
	    
            <input type="radio" id="{{ sid }}"name="group2" value="{{ sid }}.{{ forloop.counter }}" >{{ nt.id }}.{{ forloop.counter }}</input>
            </td></tr>{% endif %}
            {% endfor %}</table>
            <input type="submit" value="Compare" />
	    </form>
    
	   
            </div>

 
	  {% endblock %}
	  </div>
			
				
				<div id="footer" class="span-24 last" style="height: 5px; display:none; top: 51px; left: 88px; width: 1364px;">
					<p>
						<a rel="license"
						href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative
						Commons License" style="border-width:0"	src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png"/></a> All material is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a> unless mentioned otherwise.
						<br/>
						Powered	by <a href="http://www.djangoproject.com">Django</a>
						and <a href="http://github.com/gnowgi/django-gstudio">Gstudio
						{{ GSTUDIO_VERSION }}</a>.
					</p>
				</div>
	</div>
        </div>
	</body>
</html>