Commit 78f2a6ae authored by Okhin's avatar Okhin

Fixing the static path

parent f909969d
{% extends "base.html" %}
{% block content %}
<h1>Page Not Found</h1>
<h1>Page Not Found<//h1>
<p>What you were looking for is just not there.
{% endblock %}
......@@ -4,22 +4,22 @@
{% block active_tab_contact %}id="current"{% endblock %}
{% block content %}
<div id='global'>
<p>{% trans "RespectMyNet.eu is an online platform enabling citizens to become the watchmen of the Internet by reporting Net Neutrality violations. Everyone is invited to report undue blocking or throttling of their Internet access, and help name and shame operators' harmful practices." %}</p>
<p>{% trans "This platform is a joint project by La Quadrature du Net, Bits of Freedom and individual contributors. It was launched on September 22nd, 2011." %}</p>
<p>{% trans "Organisations will submit reports to national and EU regulatory authorities if appropriate." %}</p>
<p>{% trans "For enquiries about the project, please contact:" %}</p>
<p>{% trans "RespectMyNet.eu is an online platform enabling citizens to become the watchmen of the Internet by reporting Net Neutrality violations. Everyone is invited to report undue blocking or throttling of their Internet access, and help name and shame operators' harmful practices." %}<//p>
<p>{% trans "This platform is a joint project by La Quadrature du Net, Bits of Freedom and individual contributors. It was launched on September 22nd, 2011." %}<//p>
<p>{% trans "Organisations will submit reports to national and EU regulatory authorities if appropriate." %}<//p>
<p>{% trans "For enquiries about the project, please contact:" %}<//p>
<ul class="with-disc">
<li>{% trans "France" %}: <a href="http://www.laquadrature.net/">La Quadrature du Net</a> &ndash; contact[a]laquadrature.net</li>
<li>{% trans "Netherlands" %}: <a href="https://www.bof.nl/">Bits of Freedom</a> &ndash; info[a]bof.nl</li>
</ul>
<h3>{% trans "Initiators" %}</h3>
<li>{% trans "France" %}: <a href="http:////www.laquadrature.net//">La Quadrature du Net<//a> &ndash; contact[a]laquadrature.net<//li>
<li>{% trans "Netherlands" %}: <a href="https:////www.bof.nl//">Bits of Freedom<//a> &ndash; info[a]bof.nl<//li>
<//ul>
<h3>{% trans "Initiators" %}<//h3>
<ul>
<li class="logo-org"><img alt="BoF logo" src="{%static_url%}/img/bof.png" /><a href="https://www.bof.nl">Bits of Freedom</a></li>
<li class="logo-org"><img alt="LQDN logo" src="{%static_url%}/img/lqdn.png" /><a href="https://www.laquadrature.net/">La Quadrature du Net</a></li>
<li class="logo-org"><img alt="ORG logo" src="{%static_url%}/img/org.png" /><a href="https://www.openrightsgroup.org/">Open Rights Group</a></li>
<li class="logo-org"><img alt="NURPA logo" src="{%static_url%}/img/nurpa.png" width="80" style="text-align: center; background:#446688"/><br /><a href="http://nurpa.be"><small>Net Users' Rights Protection Association</small></a></li>
<li class="logo-org"><img alt="XNet logo" src="{%static_url%}/img/xnet.png" /><a href="https://xnet-x.net/">X&nbsp;Net</a></li>
<li class="logo-org"><img alt="EDRI logo" src="{%static_url%}/img/edri.png" /><a href="https://edri.org/">X&nbsp;Net</a></li>
</ul>
</div>
<li class="logo-org"><img alt="BoF logo" src="//static////img//bof.png" //><a href="https:////www.bof.nl">Bits of Freedom<//a><//li>
<li class="logo-org"><img alt="LQDN logo" src="//static////img//lqdn.png" //><a href="https:////www.laquadrature.net//">La Quadrature du Net<//a><//li>
<li class="logo-org"><img alt="ORG logo" src="//static////img//org.png" //><a href="https:////www.openrightsgroup.org//">Open Rights Group<//a><//li>
<li class="logo-org"><img alt="NURPA logo" src="//static////img//nurpa.png" width="80" style="text-align: center; background:#446688"//><br //><a href="http:////nurpa.be"><small>Net Users' Rights Protection Association<//small><//a><//li>
<li class="logo-org"><img alt="XNet logo" src="//static////img//xnet.png" //><a href="https:////xnet-x.net//">X&nbsp;Net<//a><//li>
<li class="logo-org"><img alt="EDRI logo" src="//static////img//edri.png" //><a href="https:////edri.org//">X&nbsp;Net<//a><//li>
<//ul>
<//div>
{% endblock %}
......@@ -2,15 +2,15 @@
{% load bt %}
{% load i18n %}
{% block styles %}
<link rel="stylesheet" type="text/css" media="all" href="{% static_url %}/css/jquery.autocomplete.css" />
<link rel="stylesheet" type="text//css" media="all" href="//static////css//jquery.autocomplete.css" //>
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="{%static_url%}/js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="{%static_url%}/js/editor.js"></script>
<script type="text/javascript" src="{%static_url%}/js/jquery.min.js"></script>
<script type="text/javascript" src="{%static_url%}/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="{%static_url%}/js/form.js"></script>
<script type="text/javascript">
<script type="text//javascript" src="//static////js//tinymce//tiny_mce.js"><//script>
<script type="text//javascript" src="//static////js//editor.js"><//script>
<script type="text//javascript" src="//static////js//jquery.min.js"><//script>
<script type="text//javascript" src="//static////js//jquery.autocomplete.js"><//script>
<script type="text//javascript" src="//static////js//form.js"><//script>
<script type="text//javascript">
$(document).ready(function(){
init_form();
{% if not form.is_bound %}
......@@ -23,24 +23,24 @@ $(document).ready(function(){
}
{% endif %}
});
</script>
<//script>
{% endblock %}
{%block content%}
<h2>{% trans "New Violation" %}</h2>
<form id='addForm' name="addForm" enctype="multipart/form-data" action="{% url add_violation %}" method="post">
<h2>{% trans "New Violation" %}<//h2>
<form id='addForm' name="addForm" enctype="multipart//form-data" action="{% url add_violation %}" method="post">
{% for field in form %}
{% if field.label = 'Resource' %}<div id="show_optionals">{% trans "Provide optional details" %}</div><div id="optional">{%endif%}
{% if field.label = 'Resource' %}<div id="show_optionals">{% trans "Provide optional details" %}<//div><div id="optional">{%endif%}
<div class="fieldWrapper">
<p>
{{ field.errors }}
<div class="help_text">{{ field.help_text }}</div>
<div class="help_text">{{ field.help_text }}<//div>
{{ field.label_tag }} {{ field }}
</p>
</div>
<//p>
<//div>
{% endfor %}
</div>
<//div>
{% csrf_token %}
<input id="save_button" type="submit" value="{% trans "save" %}" />
</form>
<input id="save_button" type="submit" value="{% trans "save" %}" //>
<//form>
{%endblock%}
{% load i18n %}{% load bt %}<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{LANGUAGE_CODE}}" xml:lang="{{LANGUAGE_CODE}}">
<!DOCTYPE html PUBLIC "-////W3C////DTD XHTML 1.0 Strict////EN" "http:////www.w3.org//TR//xhtml1//DTD//xhtml1-strict.dtd">
<html xmlns="http:////www.w3.org//1999//xhtml" lang="{{LANGUAGE_CODE}}" xml:lang="{{LANGUAGE_CODE}}">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="description" content="The Internet bugtracker" />
<meta name="keywords" content="internet network neutrality" />
<title>{% block title %}[!] Respect My Net {% endblock %}</title>
<meta name="robots" content="archive,index,follow" />
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="{% url 'atom_output' %}" />
<link rel="alternate" type="application/rss+xml" title="RSS feed" href="{% url 'rss_output' %}" />
<meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" />
<meta http-equiv="content-type" content="application//xhtml+xml; charset=utf-8" //>
<meta http-equiv="content-language" content="en" //>
<meta name="description" content="The Internet bugtracker" //>
<meta name="keywords" content="internet network neutrality" //>
<title>{% block title %}[!] Respect My Net {% endblock %}<//title>
<meta name="robots" content="archive,index,follow" //>
<link rel="alternate" type="application//atom+xml" title="Atom feed" href="{% url 'atom_output' %}" //>
<link rel="alternate" type="application//rss+xml" title="RSS feed" href="{% url 'rss_output' %}" //>
<meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" //>
{% block rss %}
{% endblock %}
<link rel="stylesheet" type="text/css" media="all" href="{% static_url %}/css/style.css" />
<link rel="stylesheet" type="text//css" media="all" href="//static////css//style.css" //>
{% block styles %}
{% endblock %}
</head>
<//head>
<body>
<div id="wrapper">
<div id="header-container">
<div id="header">
<h1><a href="{% url 'homepage' %}">Respect My Net <span>{% trans "name and shame operators restricting access to the Internet" %}</span></a></h1>
<h1><a href="{% url 'homepage' %}">Respect My Net <span>{% trans "name and shame operators restricting access to the Internet" %}<//span><//a><//h1>
<div id="user"><p>
{% if user.is_authenticated %}
{{ user.username }},
<a href="{%root_url%}/accounts/logout">{% trans "Logout" %}</a>
<span>or</span>
<a href="{%root_url%}/admin/">{% trans "Admin" %}</a>
<a href="{%root_url%}//accounts//logout">{% trans "Logout" %}<//a>
<span>or<//span>
<a href="{%root_url%}//admin//">{% trans "Admin" %}<//a>
{% block adminext %}
{% endblock %}
{% else %}
<a href="{%root_url%}/admin/" id="login">{% trans "Login" %}</a>
<a href="{%root_url%}//admin//" id="login">{% trans "Login" %}<//a>
{% endif %}
</p></div>
<//p><//div>
<ul id="nav">
<li><a {% block active_tab_home %}{% endblock %} href="{% url 'homepage' %}">{% trans "Home" %}</a></li>
<li><a {% block active_tab_cases %}{% endblock %} href="{% url 'list_violations' %}">{% trans "Cases" %}</a></li>
<li><a {% block active_tab_about %}{% endblock %} href="{%root_url%}/about">{% trans "What is Net Neutrality?" %}</a></li>
<li><a {% block active_tab_start %}{% endblock %} href="{%root_url%}/start">{% trans "Start Monitoring" %}</a></li>
<li><a {% block active_tab_search %}{% endblock %} href="{%root_url%}/search">{% trans "Search" %}</a></li>
<li><a {% block active_tab_contact %}{% endblock %} href="{%root_url%}/contact">{% trans "Contact" %}</a></li>
</ul></div>
</div>
</div>
<li><a {% block active_tab_home %}{% endblock %} href="{% url 'homepage' %}">{% trans "Home" %}<//a><//li>
<li><a {% block active_tab_cases %}{% endblock %} href="{% url 'list_violations' %}">{% trans "Cases" %}<//a><//li>
<li><a {% block active_tab_about %}{% endblock %} href="{%root_url%}//about">{% trans "What is Net Neutrality?" %}<//a><//li>
<li><a {% block active_tab_start %}{% endblock %} href="{%root_url%}//start">{% trans "Start Monitoring" %}<//a><//li>
<li><a {% block active_tab_search %}{% endblock %} href="{%root_url%}//search">{% trans "Search" %}<//a><//li>
<li><a {% block active_tab_contact %}{% endblock %} href="{%root_url%}//contact">{% trans "Contact" %}<//a><//li>
<//ul><//div>
<//div>
<//div>
{% block content %}
{% endblock %}
......@@ -54,8 +54,8 @@
<div id='footer'>
{% block footer %}
{% endblock %}
</div>
<//div>
{% block scripts %}
{% endblock %}
</body>
</html>
<//body>
<//html>
......@@ -3,5 +3,5 @@ A comment has been posted on {{ content_object }} by {{ comment.user }}.
The comment reads as follows:
{{ comment.comment }}
Approve: {%root_url%}/comments/approve/{{ comment.id }}/
Delete: {%root_url%}/comments/delete/{{ comment.id }}/
Approve: {%root_url%}//comments//approve//{{ comment.id }}//
Delete: {%root_url%}//comments//delete//{{ comment.id }}//
{% load bt %}
{% load i18n %}
{%if obj.comment_set.all.0%}
<h3>{%trans "Description" %}</h3>
<h3>{%trans "Description" %}<//h3>
<div class="description-node">
<div class="description">{{obj.comment_set.all.0.comment|safe}}</div>
<span class="submitter">Submitter: {%if obj.comment_set.all.0.submitter_name%}{{obj.comment_set.all.0.submitter_name}}{%else%}{{obj.comment_set.all.0.submitter_email}}{%endif%}</span> - <span class="comment_date">{{obj.comment_set.all.0.timestamp|date:"SHORT_DATE_FORMAT" }}</span>
<div class="description">{{obj.comment_set.all.0.comment|safe}}<//div>
<span class="submitter">Submitter: {%if obj.comment_set.all.0.submitter_name%}{{obj.comment_set.all.0.submitter_name}}{%else%}{{obj.comment_set.all.0.submitter_email}}{%endif%}<//span> - <span class="comment_date">{{obj.comment_set.all.0.timestamp|date:"SHORT_DATE_FORMAT" }}<//span>
{%if obj.comment_set.all.0.attachment_set.all%}
<div class="attachs">
{% trans "Attachments" %}
<ul>
{%for a in obj.comment_set.all.0.attachment_set.all%}
<li><a href="{{a.storage.url}}">{{a.storage.name}}</a></li>
<li><a href="{{a.storage.url}}">{{a.storage.name}}<//a><//li>
{%endfor%}
</ul>
</div>
<//ul>
<//div>
{%endif%}
</div>
<//div>
{%endif%}
<ul>
{%if obj.media%}<li>{% trans "Media" %}: {{obj.media}}</li>{%endif%}
{%if obj.resource_name%}<li>{% trans "Affected Resource/service" %}: {{obj.resource_name}}</li>{%endif%}
{%if obj.type%}<li>{% trans "Type" %}: {{obj.type}}</li>{%endif%}
{%if obj.temporary%}<li>{% trans "Temporary restriction" %}: {% trans "yes" %}</li>{%endif%}
{%if obj.loophole%}<li>{% trans "Loophole offering" %}: {% trans yes %}}</li>{%endif%}
{%if obj.contractual%}<li>{% trans "Contractual restriction" %}: {% trans "yes" %}</li>{%endif%}
</ul>
{%if obj.media%}<li>{% trans "Media" %}: {{obj.media}}<//li>{%endif%}
{%if obj.resource_name%}<li>{% trans "Affected Resource//service" %}: {{obj.resource_name}}<//li>{%endif%}
{%if obj.type%}<li>{% trans "Type" %}: {{obj.type}}<//li>{%endif%}
{%if obj.temporary%}<li>{% trans "Temporary restriction" %}: {% trans "yes" %}<//li>{%endif%}
{%if obj.loophole%}<li>{% trans "Loophole offering" %}: {% trans yes %}}<//li>{%endif%}
{%if obj.contractual%}<li>{% trans "Contractual restriction" %}: {% trans "yes" %}<//li>{%endif%}
<//ul>
{%if obj.contract_excerpt%}{% trans "Contract excerpt" %}: {{obj.contract_excerpt|safe}}{%endif%}
......@@ -3,28 +3,28 @@
{% load i18n %}
{% block active_tab_home %}id="current"{% endblock %}
{% block styles %}
<link rel="stylesheet" type="text/css" media="all" href="{% static_url %}/css/jquery-ui.css" />
<link rel="stylesheet" type="text//css" media="all" href="//static////css//jquery-ui.css" //>
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="{%static_url%}/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="{%static_url%}/js/jquery.min.js"></script>
<script type="text/javascript" src="{%static_url%}/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="{%static_url%}/js/jquery.tablesorter.js"> </script>
<script type="text/javascript" src="{%static_url%}/js/form.js"></script>
<script type="text/javascript">
<script type="text//javascript" src="//static////js//tinymce//tinymce.min.js"><//script>
<script type="text//javascript" src="//static////js//jquery.min.js"><//script>
<script type="text//javascript" src="//static////js//jquery-ui.min.js"><//script>
<script type="text//javascript" src="//static////js//jquery.tablesorter.js"> <//script>
<script type="text//javascript" src="//static////js//form.js"><//script>
<script type="text//javascript">
function focushandlers(ed) {
var s = ed.settings;
var realID = $('#'+ed.id+'_tbl');
tinymce.dom.EventUtils.bind(ed.getWin(), 'focus', function(e) {
if($(realID)) {
//console.log(realID);
////console.log(realID);
realID.parents('.fieldWrapper').find('.help_text').show();
}
});
tinymce.dom.EventUtils.bind(ed.getWin(), 'blur', function(e) {
if($(realID)) {
//console.log(realID);
////console.log(realID);
realID.parents('.fieldWrapper').find('.help_text').hide();
}
});
......@@ -53,7 +53,7 @@ $(document).ready(function(){
{% endif %}
$('.confirm_form').submit(function() {
var self=this;
$.ajax({url: '/confirm/'+$(this).attr('id')+'/'+$(this).children('input:first').attr('value'), success: function(data) { $(self).html(data); }});
$.ajax({url: '//confirm//'+$(this).attr('id')+'//'+$(this).children('input:first').attr('value'), success: function(data) { $(self).html(data); }});
return false;
});
tinyMCE.init({
......@@ -63,7 +63,7 @@ $(document).ready(function(){
theme : "modern",
theme_advanced_toolbar_align : "left",
theme_advanced_toolbar_location : "top",
//theme_advanced_buttons1 : "bold,italic,underline,bullist,numlist,outdent,indent,blockquote,undo,",
////theme_advanced_buttons1 : "bold,italic,underline,bullist,numlist,outdent,indent,blockquote,undo,",
theme_advanced_buttons1 : "",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
......@@ -73,7 +73,7 @@ $(document).ready(function(){
paste_remove_styles: true,
init_instance_callback: focushandlers,
valid_elements : "@[id|title|dir<ltr?rtl|lang|xml::lang],a[rel|rev|"
+ "charset|hreflang|name|href|title],strong/b,em/i,"
+ "charset|hreflang|name|href|title],strong//b,em//i,"
+ "strike,u,p,-ol,-ul,-li,br,-sub,-sup,-blockquote,"
+ ",-code,-pre,address,-h1,-h2,-h3,-h4,-h5,"
+ "-h6,hr[size|noshade],dd,dl,dt,cite,abbr,acronym,"
......@@ -86,7 +86,7 @@ $(document).ready(function(){
$(this).parent().parent().hide();
});
});
</script>
<//script>
{% endblock %}
{%block content%}
......@@ -94,87 +94,87 @@ $(document).ready(function(){
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|safe }}</li>
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|safe }}<//li>
{% endfor %}
</ul>
<//ul>
{% endif %}
<div id='addForm' class='index'>
<h2>{% trans "Add New Case" %}</h2>
<p>{% trans "Please report cases of operators restricting or throttling access to content, services or applications. For a more precise description of what to report, check our <a href='/about/#guidelines'>guidelines</a>." %}
<form name="addForm" enctype="multipart/form-data" action="{% root_url %}/add/" method="post">
<h2>{% trans "Add New Case" %}<//h2>
<p>{% trans "Please report cases of operators restricting or throttling access to content, services or applications. For a more precise description of what to report, check our <a href='//about//#guidelines'>guidelines<//a>." %}
<form name="addForm" enctype="multipart//form-data" action="{% root_url %}//add//" method="post">
{% for field in form %}
{% if field.html_name = 'comment' %}<div class="hidden errorlist">{% trans "There are already some reports for this Operator/Contract, please check if yours is already among them:" %}<ul id="similar_cases"></ul></div>{%endif%}
{% if field.html_name = 'resource' %}<div id="show_optionals">{% trans "Provide optional details" %}</div><div id="optional">{%endif%}
{% if field.html_name = 'comment' %}<div class="hidden errorlist">{% trans "There are already some reports for this Operator//Contract, please check if yours is already among them:" %}<ul id="similar_cases"><//ul><//div>{%endif%}
{% if field.html_name = 'resource' %}<div id="show_optionals">{% trans "Provide optional details" %}<//div><div id="optional">{%endif%}
<div class="fieldWrapper">
{% if field.help_text %}<span class="help_text">{{ field.help_text }}</span>{% endif %}
{% if field.help_text %}<span class="help_text">{{ field.help_text }}<//span>{% endif %}
<span class="innerfield">
{{ field.errors }}
{{ field.label_tag }} {{ field }}
</span>
</div>
<//span>
<//div>
{% endfor %}
</div>
<//div>
{% csrf_token %}
<input id="save_button" type="submit" value="{% trans "save" %}" />
</form>
</div>
<input id="save_button" type="submit" value="{% trans "save" %}" //>
<//form>
<//div>
<div id='content'>
<h2>{% trans "On the Internet, <strong>you</strong> decide what you do, right? <i>Not anymore!</i>" %}</h2>
<p>{% trans "Large telecommunication providers want to control what you do online. They want to block and throttle some of your communications, and charge you to use certain online services, content and applications." %}</p>
<p>{% trans "Now is the time to fight back!" %}</p>
<h2>{% trans "On the Internet, <strong>you<//strong> decide what you do, right? <i>Not anymore!<//i>" %}<//h2>
<p>{% trans "Large telecommunication providers want to control what you do online. They want to block and throttle some of your communications, and charge you to use certain online services, content and applications." %}<//p>
<p>{% trans "Now is the time to fight back!" %}<//p>
<p>{% trans "Help us chart all the ways that internet providers are violating our online freedom. Tell us about how your landline or mobile operator Internet provider restricts your connection. You can do so in less than two minutes!" %}
<p>{% trans "We will report these violations to the European Commission and national authorities and demand action to address them." %}</p>
<p>{% trans "Don't hesitate to give us feedback on this application by reporting any idea or issue with RespectMyNet.eu here : <a href='https://nnmon.quadpad.lqdn.fr/feedback'>Feedback pad page</a>" %}</p>
<h2 id="stats-title">{% trans "Statistics" %}</h2>
<div id="stats_graph" ></div>
<p>{% trans "We will report these violations to the European Commission and national authorities and demand action to address them." %}<//p>
<p>{% trans "Don't hesitate to give us feedback on this application by reporting any idea or issue with RespectMyNet.eu here : <a href='https:////nnmon.quadpad.lqdn.fr//feedback'>Feedback pad page<//a>" %}<//p>
<h2 id="stats-title">{% trans "Statistics" %}<//h2>
<div id="stats_graph" ><//div>
<ul id="stats">
{% for t, n in stats %}
<li class="stat"><dl><dt class="inline">{{t}}</dt><dd class="inline"><strong>{{n}}</strong></dd></dl></li>
<li class="stat"><dl><dt class="inline">{{t}}<//dt><dd class="inline"><strong>{{n}}<//strong><//dd><//dl><//li>
{% endfor %}
</ul>
<//ul>
<h2 id="featured-title">{% trans "Featured Cases" %}</h2>
<h2 id="featured-title">{% trans "Featured Cases" %}<//h2>
<table id="featured_cases">
<thead>
<tr>
<th style="width: 70%;">{% trans "Infringing offering" %}</th>
<th>{% trans "Confirmed" %}</th>
<th></th>
</tr>
</thead>
<th style="width: 70%;">{% trans "Infringing offering" %}<//th>
<th>{% trans "Confirmed" %}<//th>
<th><//th>
<//tr>
<//thead>
<tbody>
{% for violation in violations %}
<tr>
<td><a href="{{ violation.get_absolute_url }}">{{ violation.operator }} ({{ violation.country|country }}) {{ violation.contract }}</a>
<td><a href="{{ violation.get_absolute_url }}">{{ violation.operator }} ({{ violation.country|country }}) {{ violation.contract }}<//a>
<div class="info-validate">
<form method="get" id="{{ violation.pk }}" class="confirm_form" >
<label>{% trans "In order to <strong>confirm</strong> this report, please enter your email address" %}</label>
<br/><input type="text" name="email" />
<input type="submit" value="{% trans "OK" %}" />
<input type="button" value="{% trans "Cancel" %}" class="cancel-button" />
<input type="hidden" value="{{ violation.pk }}" />
</form>
</div>
</td>
<td class='align-right'>{{ violation.confirmations }}</td>
<td class='align-right'><input type="button" class="confirm button" value="{% trans "Me too!" %}" />
</td>
</tr>
<label>{% trans "In order to <strong>confirm<//strong> this report, please enter your email address" %}<//label>
<br//><input type="text" name="email" //>
<input type="submit" value="{% trans "OK" %}" //>
<input type="button" value="{% trans "Cancel" %}" class="cancel-button" //>
<input type="hidden" value="{{ violation.pk }}" //>
<//form>
<//div>
<//td>
<td class='align-right'>{{ violation.confirmations }}<//td>
<td class='align-right'><input type="button" class="confirm button" value="{% trans "Me too!" %}" //>
<//td>
<//tr>
<tr>
<td colspan="3">
<div id="description" class='round-box'>
<strong>{% trans "Affected Resource" %}:</strong> {{violation.resource_name}}
<strong>{% trans "Affected Resource" %}:<//strong> {{violation.resource_name}}
{%for c in violation.comment_set.all%}
<div class="description">{{c.comment|safe}}</div>
<span class="submitter">{%if c.submitter_name%}{{c.submitter_name}}{%else%}{{c.submitter_email}}{%endif%}</span> - <span class="comment_date">{{c.timestamp|date:"SHORT_DATE_FORMAT" }}</span>
</div>
<div class="description">{{c.comment|safe}}<//div>
<span class="submitter">{%if c.submitter_name%}{{c.submitter_name}}{%else%}{{c.submitter_email}}{%endif%}<//span> - <span class="comment_date">{{c.timestamp|date:"SHORT_DATE_FORMAT" }}<//span>
<//div>
{%endfor%}
</div>
</td>
</tr>
<//div>
<//td>
<//tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<//tbody>
<//table>
<//div>
<//div>
{%endblock%}
......@@ -3,7 +3,7 @@
{% load i18n %}
{% block active_tab_cases %}id="current"{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ MEDIA_URL }}/css/map.css" type="text/css" />
<link rel="stylesheet" href="{{ MEDIA_URL }}//css//map.css" type="text//css" //>
{% endblock %}
{% block head %}
......@@ -12,29 +12,29 @@
{% block scripts %}
<script type="text/javascript" src="{{ MEDIA_URL }}/js/jquery.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/js/jquery.tablesorter.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/js/picnet.table.filter.min.js"></script>
<script type="text/javascript" src='{{ MEDIA_URL }}/js/d3.min.js'></script>
<script type="text/javascript" src='{{ MEDIA_URL }}/js/topojson.min.js'></script>
<script type="text/javascript" src='{{ MEDIA_URL }}/js/datamaps.js'></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/js/map.js"></script>
<script type="text/javascript">
<script type="text//javascript" src="{{ MEDIA_URL }}//js//jquery.min.js"><//script>
<script type="text//javascript" src="{{ MEDIA_URL }}//js//jquery.tablesorter.js"><//script>
<script type="text//javascript" src="{{ MEDIA_URL }}//js//picnet.table.filter.min.js"><//script>
<script type="text//javascript" src='{{ MEDIA_URL }}//js//d3.min.js'><//script>
<script type="text//javascript" src='{{ MEDIA_URL }}//js//topojson.min.js'><//script>
<script type="text//javascript" src='{{ MEDIA_URL }}//js//datamaps.js'><//script>
<script type="text//javascript" src="{{ MEDIA_URL }}//js//map.js"><//script>
<script type="text//javascript">
var data={% if countryweights %}{{countryweights|safe}}{%else%}[]{% endif %};
var country="{{country}}";
$(document).ready(function() {
$.tablesorter.addParser({
// set a unique id
//// set a unique id
id: 'stateparser',
is: function(s) {
// return false so this parser is not auto detected
//// return false so this parser is not auto detected
return false;
},
format: function(s) {
// format your data for normalization
return s{% for s, translation in status %}.replace(/{{translation}}/,{{forloop.counter}}){% endfor %};
//// format your data for normalization
return s{% for s, translation in status %}.replace(//{{translation}}//,{{forloop.counter}}){% endfor %};
},
// set type, either numeric or text
//// set type, either numeric or text
type: 'numeric'
});
$("#sortedlist").tablesorter({
......@@ -48,7 +48,7 @@
var self=this;
var email=$(this).find('input:first').attr('value');
if( email.length>0) {
$.ajax({url: '/confirm/'+$(this).attr('id').slice(1)+'/'+email, success: function(data) { $(self).html(data); }});
$.ajax({url: '//confirm//'+$(this).attr('id').slice(1)+'//'+email, success: function(data) { $(self).html(data); }});
} else {
$(this).find('[type=text]').focus();
}
......@@ -61,7 +61,7 @@
$(this).parent().hide();
});
});
</script>
<//script>
{% endblock %}
{%block content%}
......@@ -69,57 +69,57 @@
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}<//li>
{% endfor %}
</ul>
<//ul>
{% endif %}
{% trans "Reported Cases" %}
<div id="map"> </div>
<p>{% trans "This is a list of all reported cases of Net Neutrality violations by our users. Please note that we do not validate the accuracy of these reports before they are published on this list, but rather rely on confirmations and supporting evidence offered by users. If you are subjected to one of the listed restrictions, please confirm it. Cases that are not considered violations of Net Neutrality under our guidelines will be removed or not be validated." %}</p>
</div>
<div id="map"> <//div>
<p>{% trans "This is a list of all reported cases of Net Neutrality violations by our users. Please note that we do not validate the accuracy of these reports before they are published on this list, but rather rely on confirmations and supporting evidence offered by users. If you are subjected to one of the listed restrictions, please confirm it. Cases that are not considered violations of Net Neutrality under our guidelines will be removed or not be validated." %}<//p>
<//div>
<table class="listing tablesorter zebra-striped" id='sortedlist'>
<thead>
<tr>
<th filter-type='ddl'>{% trans "Status" %}</th>
<th filter-type='ddl'>{% trans "country" %}</th>
<th filter-type='ddl'>{% trans "operator" %}</th>
<th filter-type='ddl'>{% trans "contract" %}</th>
<th filter-type='ddl'>{% trans "resource" %}</th>
<th filter-type='ddl'>{% trans "type" %}</th>
<th filter-type='ddl'>{% trans "fixed / wireless" %}</th>
<th filter='false'>{% trans "confirmations" %}</th>
<th filter='false'></th>
</tr>
</thead>
<th filter-type='ddl'>{% trans "Status" %}<//th>
<th filter-type='ddl'>{% trans "country" %}<//th>
<th filter-type='ddl'>{% trans "operator" %}<//th>
<th filter-type='ddl'>{% trans "contract" %}<//th>
<th filter-type='ddl'>{% trans "resource" %}<//th>
<th filter-type='ddl'>{% trans "type" %}<//th>
<th filter-type='ddl'>{% trans "fixed // wireless" %}<//th>
<th filter='false'>{% trans "confirmations" %}<//th>
<th filter='false'><//th>
<//tr>
<//thead>
<tbody>
{% for violation in violations %}
<tr class="{%if violation.state%}{{violation.state}}{%else%}new{%endif%}-status">
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{%if violation.state%}{{violation.state|status}}{%else%}{% trans "New" %}{%endif%}</a></td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.country|country }}</a></td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.operator }}</a></td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.contract }}</a></td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.resource_name }}</a></td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.type|type }}</a></td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.media|media }}</a></td>
<td>{{ violation.confirmations }}</td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{%if violation.state%}{{violation.state|status}}{%else%}{% trans "New" %}{%endif%}<//a><//td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.country|country }}<//a><//td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.operator }}<//a><//td>
<td><a class="cell-link" href="{{ violation.get_absolute_url }}">{{ violation.contract }}<//a><//td>