Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9341690
symbols.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
symbols.html
View Options
{% extends "layout.html" %}
{% block title %}Search SWH{% endblock %}
{% block content %}
<
div
class
=
"container"
>
<!-- Include the predefined search form-->
{% include 'includes/home-search-symbol.html' %}
{% if result is not none and result|length > 0 %}
<
br
/>
<
h2
>
Result for '{{ q | truncate(50) }}'
</
h2
>
<
br
/>
<
div
class
=
"table-responsive"
>
<
table
class
=
"display swhtable"
cellspacing
=
"0"
width
=
"100%"
>
<
thead
>
<
tr
>
<
th
>
content
</
th
>
<
th
>
kind
</
th
>
<
th
>
language
</
th
>
</
tr
>
</
thead
>
<
tfoot
>
<
tr
>
<
th
>
content
</
th
>
<
th
>
kind
</
th
>
<
th
>
language
</
th
>
</
tr
>
</
tfoot
>
<
tbody
>
{% for res in result %}
<
tr
>
<
td
><
a
href
=
"{{ ('%s#l-%s' % (res['content_url'], res['line'])) }}"
>
{{ res['sha1'] }}
</
a
></
td
>
<
td
>
{{ res['kind'] }}
</
td
>
<
td
>
{{ res['lang'] }}
</
td
>
</
tr
>
{% endfor %}
</
tbody
>
</
table
>
{% if linknext is not none and linknext != '' %}
<
br
/>
<
span
><
a
href
=
"{{ linknext }}"
>
Next
</
a
></
span
>
{% endif %}
{% endif %}
{% if message is not none and message != '' %}
<
div
class
=
"span8"
>
{{ message | safe }}
</
div
>
{% endif %}
{% if result is not none and result|length == 0 %}
No result for '{{ q | truncate(50) }}'.
{% endif %}
</
div
>
<
script
type
=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
// Apply same style to every input of the page
// Setup - add a text input to each footer cell
$
(
'table.swhtable tfoot th'
).
each
(
function
()
{
var
title
=
$
(
this
).
text
();
$
(
this
).
html
(
'<input type="text" placeholder="Search '
+
title
+
'" class="form-control" />'
);
});
// DataTable
var
table
=
$
(
'table.swhtable'
).
DataTable
({
"paging"
:
false
,
});
$
(
".dataTables_filter input"
).
addClass
(
"form-control"
)
// Apply the search
table
.
columns
().
every
(
function
()
{
var
that
=
this
;
$
(
'input'
,
this
.
footer
()).
on
(
'keyup change'
,
function
()
{
if
(
that
.
search
()
!==
this
.
value
)
{
that
.
search
(
this
.
value
).
draw
();
}
});
});
});
</
script
>
{% endblock %}
File Metadata
Details
Attached
Mime Type
text/html
Expires
Fri, Jul 4, 12:16 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3292282
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment