-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add simple package details view including all model fields #164 Signed-off-by: Thomas Druez <[email protected]> * Display only 5 Resources per Packages in list view #464 Signed-off-by: Thomas Druez <[email protected]> * Add Resources in Package details using new tabs system #164 Signed-off-by: Thomas Druez <[email protected]> * Add CHANGELOG entry #164 #464 Signed-off-by: Thomas Druez <[email protected]>
- Loading branch information
Showing
11 changed files
with
177 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{% extends "scanpipe/base.html" %} | ||
{% load static humanize %} | ||
|
||
{% block title %}ScanCode.io: {{ project.name }} - {{ object.name }}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="container is-max-desktop"> | ||
{% include 'scanpipe/includes/navbar_header.html' %} | ||
<div class="mx-5 mb-2">{% include 'scanpipe/includes/messages.html' %}</div> | ||
|
||
<section class="mx-5 mb-3"> | ||
<nav class="breadcrumb is-medium mb-1" aria-label="breadcrumbs"> | ||
<ul> | ||
<li><a href="{% url 'project_list' %}">Projects</a></li> | ||
<li><a href="{{ project.get_absolute_url }}">{{ project.name }}</a></li> | ||
<li><a href="{% url 'project_packages' project.uuid %}">Discovered Packages</a></li> | ||
</ul> | ||
</nav> | ||
<div class="tags has-addons my-3"> | ||
<span class="tag is-dark">Package URL</span> | ||
<span class="tag is-info">{{ object }}</span> | ||
</div> | ||
</section> | ||
|
||
<div class="tabs is-boxed mx-5"> | ||
<ul> | ||
<li class="is-active"> | ||
<a data-target="tab-details"> | ||
<span class="icon is-small"><i class="fas fa-info-circle"></i></span> | ||
<span>Details</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a data-target="tab-resources"> | ||
<span class="icon is-small"><i class="fas fa-file-alt"></i></span> | ||
<span>Resources</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<section id="tab-details" class="tab-content is-active mx-5"> | ||
<dl> | ||
{% for field, value in package_data.items %} | ||
<dt class="has-text-weight-semibold"> | ||
{{ field }} | ||
</dt> | ||
<dd class="mb-4"> | ||
<pre>{{ value|default_if_none:'' }}</pre> | ||
</dd> | ||
{% endfor %} | ||
</dl> | ||
</section> | ||
|
||
<section id="tab-resources" class="tab-content mx-5"> | ||
<ul> | ||
{% for resource in object.resources %} | ||
<li> | ||
<a href="{{ resource.get_absolute_url }}">{{ resource }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</section> | ||
|
||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters