Skip to content

Commit

Permalink
Merge pull request #1466 from nexB/api-template
Browse files Browse the repository at this point in the history
Add basic UI template for API
  • Loading branch information
pombredanne authored Jul 16, 2024
2 parents 3b3ea6d + d95fd9f commit 7e2a70a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions vulnerabilities/templates/rest_framework/api.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% extends "rest_framework/base.html" %}

{% block style %}
{{ block.super }}
<style>
body {background: none;}
.navbar {background: #363636; border-top: 3px solid #3298dc;}
.navbar-inverse .navbar-brand {color: white;}
.booleanwidget {width: 90%;}
</style>
{% endblock %}

{% block title %}
VulnerableCode.io REST API
{% endblock %}

{% block branding %}
<span class="navbar-brand">
VulnerableCode<span class="nexb-orange">.</span>io REST API
</span>
{% endblock %}

{% block userlinks %}
<li class="navbar-link">
<a href="/api/docs/">API Documentation</a>
</li>
<li class="navbar-link">
<a href="/">Back to app</a>
</li>
{{ block.super }}
{% endblock %}

0 comments on commit 7e2a70a

Please sign in to comment.