You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% if request_assigned_to_me or request_followed_by_me %}
62
+
<divclass="col d-flex">
63
+
{% include 'workflow/includes/request_home_dashboard.html' with request_qs=request_assigned_to_me header_title='Assigned to me' header_icon='fa-user-check' filter_name='assignee' %}
64
+
</div>
65
+
<divclass="col d-flex">
66
+
{% include 'workflow/includes/request_home_dashboard.html' with request_qs=request_followed_by_me header_title='Following' header_icon='fa-eye' filter_name='following' %}
{% if card.display_changelist_link and request.user.is_staff %}
43
90
{% with changelist_url=card.query.get_changelist_url_with_filters %}
44
91
{% if changelist_url %}
45
-
<divclass="card-footer text-center p-2">
46
-
<ahref="{{ changelist_url }}"class="card-link smaller">View all the objects in changelist</a>
92
+
<divclass="card-footer text-center p-2 smaller">
93
+
<ahref="{{ changelist_url }}">View all the objects in changelist</a>
47
94
</div>
48
95
{% endif %}
49
96
{% endwith %}
50
97
{% endif %}
51
98
</div>
52
99
</div>
53
100
{% endfor %}
54
-
</div>
55
-
{% endif %}
101
+
{% endblock custom_reporting_cards %}
56
102
57
-
<divclass="row row-cols-3 sm-gutter">
58
-
<divclass="col">
59
-
<divclass="card">
60
-
<divclass="card-body pb-1">
61
-
{% for header, urls in sections.items %}
62
-
<h2class="h5">{{ header }}:</h2>
63
-
<ulclass="ps-4">
64
-
{% for value, url in urls.items %}
65
-
<li><atarget="_blank" href="{{ url }}" rel="noreferrer">{{ value }}</a></li>
66
-
{% endfor %}
67
-
</ul>
68
-
{% endfor %}
69
-
</div>
70
-
</div>
71
-
</div>
72
-
73
-
{% if request_assigned_to_me or request_followed_by_me %}
74
-
<divclass="col">
75
-
{% include 'workflow/includes/request_home_dashboard.html' with request_qs=request_assigned_to_me header_title='Requests assigned to me' filter_name='assignee' %}
76
-
</div>
77
-
<divclass="col">
78
-
{% include 'workflow/includes/request_home_dashboard.html' with request_qs=request_followed_by_me header_title='Requests I am following' filter_name='following' %}
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if not product_list_url in request.path and not component_list_url in request.path and not package_list_url in request.path and not license_list_url in request.path and not owner_list_url in request.path %}active{% endif %}" data-scope-action="{{ global_search_url }}" data-scope-label="<i class='fa fa-globe'></i> {% trans 'Global' %}">
18
+
<divclass="text-body-secondary small text-uppercase fw-semibold mb-2">
19
+
{% trans "Search in" %}
20
+
</div>
21
+
{# Catalogs #}
22
+
<divclass="d-flex flex-wrap gap-2">
23
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if not product_list_url in request.path and not component_list_url in request.path and not package_list_url in request.path and not license_list_url in request.path and not owner_list_url in request.path and not request_list_url in request.path and not report_list_url in request.path and not vulnerability_list_url in request.path and not purldb_list_url in request.path %}active{% endif %}" data-scope-action="{{ global_search_url }}">
21
24
<iclass="fa fa-globe me-1"></i>{% trans "Global" %}
22
25
</button>
23
26
{% if not user.is_anonymous %}
24
-
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if product_list_url in request.path %}active{% endif %}" data-scope-action="{{ product_list_url }}"data-scope-label="<i class='fa fa-briefcase'></i> {% trans 'Product' %}">
27
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if product_list_url in request.path %}active{% endif %}" data-scope-action="{{ product_list_url }}">
25
28
<iclass="fa fa-briefcase me-1"></i>{% trans "Product" %}
26
29
</button>
27
30
{% endif %}
28
-
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if package_list_url in request.path %}active{% endif %}" data-scope-action="{{ package_list_url }}{% if is_reference_data %}{{ dataspace.name }}{% endif %}"data-scope-label="<i class='fas fa-archive'></i> {% trans 'Package' %}">
31
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if package_list_url in request.path %}active{% endif %}" data-scope-action="{{ package_list_url }}{% if is_reference_data %}{{ dataspace.name }}{% endif %}">
29
32
<iclass="fas fa-archive me-1"></i>{% trans "Package" %}
30
33
</button>
31
-
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if license_list_url in request.path %}active{% endif %}" data-scope-action="{{ license_list_url }}{% if is_reference_data %}{{ dataspace.name }}{% endif %}"data-scope-label="<i class='fa fa-book'></i> {% trans 'License' %}">
34
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if license_list_url in request.path %}active{% endif %}" data-scope-action="{{ license_list_url }}{% if is_reference_data %}{{ dataspace.name }}{% endif %}">
32
35
<iclass="fa fa-book me-1"></i>{% trans "License" %}
33
36
</button>
34
37
</div>
38
+
39
+
{# Tools and integrations #}
40
+
{% if not user.is_anonymous %}
41
+
<divclass="d-flex flex-wrap gap-2 mt-3">
42
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if request_list_url in request.path %}active{% endif %}" data-scope-action="{{ request_list_url }}">
43
+
<spanclass="badge text-bg-request me-1">R</span>{% trans "Request" %}
44
+
</button>
45
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if report_list_url in request.path %}active{% endif %}" data-scope-action="{{ report_list_url }}">
46
+
<iclass="fa fa-chart-bar me-1"></i>{% trans "Report" %}
47
+
</button>
48
+
{% if user.dataspace.enable_vulnerablecodedb_access %}
49
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if vulnerability_list_url in request.path %}active{% endif %}" data-scope-action="{{ vulnerability_list_url }}{% if is_reference_data %}{{ dataspace.name }}{% endif %}">
50
+
<iclass="fas fa-bug me-1"></i>{% trans "Vulnerability" %}
51
+
</button>
52
+
{% endif %}
53
+
{% if user.dataspace.enable_package_scanning %}
54
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if scan_list_url in request.path %}active{% endif %}" data-scope-action="{{ scan_list_url }}{% if is_reference_data %}{{ dataspace.name }}{% endif %}">
55
+
<iclass="fas fa-barcode me-1"></i>{% trans "Scan" %}
56
+
</button>
57
+
{% endif %}
58
+
{% if user.dataspace.enable_purldb_access %}
59
+
<buttontype="button" class="btn btn-sm btn-outline-secondary rounded-pill search-scope-btn {% if purldb_list_url in request.path %}active{% endif %}" data-scope-action="{{ purldb_list_url }}{% if is_reference_data %}{{ dataspace.name }}{% endif %}">
60
+
<iclass="fas fa-database me-1"></i>{% trans "PurlDB" %}
61
+
</button>
62
+
{% endif %}
63
+
</div>
64
+
{% endif %}
35
65
</div>
36
66
37
67
{# Carry over current list filters into the search #}
@@ -91,7 +121,7 @@
91
121
</span>
92
122
<spanclass="px-2">/</span>
93
123
<spanclass="small text-body-secondary">
94
-
<kbdclass="small">Enter</kbd> {% trans "to search" %}
124
+
<kbdclass="small"id="search-submit-key">Enter</kbd> {% trans "to search" %}
0 commit comments