-
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
…497) Signed-off-by: Thomas Druez <[email protected]>
- Loading branch information
Showing
7 changed files
with
210 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<dl> | ||
{% for field_name, field_data in tab_data.fields.items %} | ||
<dt class="has-text-weight-semibold"> | ||
{{ field_data.label }} | ||
</dt> | ||
<dd class="mb-4"> | ||
<pre class="break-all is-small">{{ field_data.value|default:''|default_if_none:''|urlize }}</pre> | ||
</dd> | ||
{% endfor %} | ||
</dl> |
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,10 @@ | ||
<div class="content"> | ||
<strong>{{ tab_data.fields.codebase_resources.label }}</strong> | ||
<ul> | ||
{% for resource in tab_data.fields.codebase_resources.value.all %} | ||
<li> | ||
<a href="{{ resource.get_absolute_url }}">{{ resource }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> |
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,24 @@ | ||
<div class="tabs is-boxed mx-5"> | ||
<ul> | ||
{% for label, tab_data in tabset_data.items %} | ||
<li{% if forloop.first %} class="is-active"{% endif %}> | ||
<a data-target="tab-{{ label }}"> | ||
{% if tab_data.icon_class %} | ||
<span class="icon is-small"><i class="{{ tab_data.icon_class }}"></i></span> | ||
{% endif %} | ||
<span>{{ label|capfirst }}</span> | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
|
||
{% for label, tab_data in tabset_data.items %} | ||
<section id="tab-{{ label }}" class="tab-content mx-5 px-1 mb-3{% if forloop.first %} is-active{% endif %}"> | ||
{% if tab_data.template %} | ||
{% include tab_data.template with tab_data=tab_data only %} | ||
{% else %} | ||
{% include 'scanpipe/tabset/tab_default.html' with tab_data=tab_data only %} | ||
{% endif %} | ||
</section> | ||
{% endfor %} |
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