Skip to content

Commit d95fd9f

Browse files
committed
Add basic UI template for API
Borrowed from ScanCode.io Reference: #1465 Thanks-to: Thomas Druez @tdruez Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 3b3ea6d commit d95fd9f

File tree

1 file changed

+31
-0
lines changed
  • vulnerabilities/templates/rest_framework

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{% extends "rest_framework/base.html" %}
2+
3+
{% block style %}
4+
{{ block.super }}
5+
<style>
6+
body {background: none;}
7+
.navbar {background: #363636; border-top: 3px solid #3298dc;}
8+
.navbar-inverse .navbar-brand {color: white;}
9+
.booleanwidget {width: 90%;}
10+
</style>
11+
{% endblock %}
12+
13+
{% block title %}
14+
VulnerableCode.io REST API
15+
{% endblock %}
16+
17+
{% block branding %}
18+
<span class="navbar-brand">
19+
VulnerableCode<span class="nexb-orange">.</span>io REST API
20+
</span>
21+
{% endblock %}
22+
23+
{% block userlinks %}
24+
<li class="navbar-link">
25+
<a href="/api/docs/">API Documentation</a>
26+
</li>
27+
<li class="navbar-link">
28+
<a href="/">Back to app</a>
29+
</li>
30+
{{ block.super }}
31+
{% endblock %}

0 commit comments

Comments
 (0)