url-abuse/website/web/templates/index.html

78 lines
2.5 KiB
HTML
Raw Normal View History

2015-03-02 14:55:34 +01:00
{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% block title %}CIRCL URL Abuse{% endblock %}
{% block navbar %}
<div class="navbar navbar-fixed-top">
<div align="right"> <a href="https://www.circl.lu/"><img src="https://www.circl.lu/pics/logo.png"/></a> </div>
</div>
{% endblock %}
{% block html_attribs %} ng-app="URLabuseApp" {% endblock html_attribs %}
{% block body_attribs %} ng-controller="URLabuseController" {% endblock body_attribs %}
{% block content %}
<div class="container">
<h1>URL Abuse testing form</h1>
<h3><div align="center">URL Abuse is a public CIRCL service to review URL.<br /><a target="_blank" href="https://www.circl.lu/services/urlabuse/">For more information about the service</a></div></h3>
<br/>
{% raw %}
<div class="alert alert-success" ng-show="flash.getMessage()">
<center>{{ flash.getMessage() }}</center>
</div>
{% endraw %}
2015-03-02 14:55:34 +01:00
<br/>
<form class="form form-horizontal" method="post" role="form" ng-submit="getResults()">
{{ form.hidden_tag() }}
{{ wtf.form_errors(form, hiddens="only") }}
{%- for field in form %}
{% if not bootstrap_is_hidden_field(field) -%}
{{ wtf.form_field(field, form_type=form_type,
horizontal_columns=horizontal_columns,
button_map={"submit_button": "primary"}) }}
{%- endif %}
{%- endfor %}
</form>
{% raw %}
<div ng-show="query_url" class="ng-hide">
<center>
<h1>Report</h1>
<h3>{{ query_url }}</h3>
2019-01-31 17:29:20 +01:00
<h3><a href="{{ lookyloo_url }}" target="_blank">See on Lookyloo</a></h3>
2015-03-02 14:55:34 +01:00
<div class="alert alert-danger ng-hide" role="alert" ng-show="error">
{{ error }}
</div>
</center>
<div ng-hide="urls">
{% endraw %}
<center> <img src="{{ url_for('static', filename='ajax-loader.gif') }}"/> </center>
{% raw %}
</div>
2015-03-04 17:31:41 +01:00
<div ng-show="urls">
<br/>
2015-03-13 09:55:24 +01:00
<center><a href ng-click="submit_email()">Send report to CIRCL</a></center>
2015-03-04 17:31:41 +01:00
<br/>
</div>
2015-03-02 14:55:34 +01:00
<div ng-repeat="url in urls">
<div uq-urlreport="url"></div>
</div>
</div>
{% endraw %}
</div>
{% endblock %}
{% block head %}
{{super()}}
{{fixes.ie8()}}
<script src="{{ url_for('static', filename='angular.min.js') }}"></script>
<script src="{{ url_for('static', filename='ui-bootstrap-tpls.min.js') }}"></script>
<script src="{{ url_for('static', filename='main.js') }}"></script>
{% endblock %}