Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Sandbhor <[email protected]>
  • Loading branch information
sbs2001 committed Feb 12, 2021
1 parent 6a786b5 commit bce1194
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions vulnerabilities/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
<div class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="{% url 'home' %}">
Home
Home
</a>
<a class="navbar-item" href="{% url 'swagger-ui' %}">
API Docs
API Docs
</a>
{% if enable_curation %}
<div class="navbar-item has-dropdown is-hoverable">

<a class="navbar-link">
Vulnerabilities
Vulnerabilities
</a>
<div class="navbar-dropdown">
<a class ="navbar-item" href = "{% url 'vulnerability_search' %}" >
Explore
Explore
</a>

<a class ="navbar-item" href = "{% url 'vulnerability_create' %}">
Create
Create
</a>
</div>
</div>
Expand All @@ -43,14 +43,14 @@
<div class="navbar-item has-dropdown is-hoverable">

<a class="navbar-link">
Packages
Packages
</a>
<div class="navbar-dropdown">
<a class ="navbar-item" href = "{% url 'package_search' %}" >
Explore
Explore
</a>
<a class ="navbar-item" href = "{% url 'package_create' %}" >
Create
Create
</a>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion vulnerabilities/templates/vulnerabilities.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ <h1 class="title">

{% if vulnerabilities %}
<section class="section">

<div class="content is-large">
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
<tr>
Expand Down
2 changes: 1 addition & 1 deletion vulnerabilities/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PackageSearchView(View):
template_name = "packages.html"

def get(self, request):
context = {"form": forms.PackageForm(request.GET or None)}
context = {"form": forms.PackageForm(request.GET or None)}

if request.GET:
packages = self.request_to_queryset(request)
Expand Down

0 comments on commit bce1194

Please sign in to comment.