Change to search list
git-svn-id: file:///home/svn/framework3/trunk@4035 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
9c3d4cee48
commit
60a3a819ae
|
@ -1,9 +1,19 @@
|
|||
<% if @results and @results.size > 0 %>
|
||||
<% if @results %>
|
||||
<% unless @clean_list %>
|
||||
<table width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Modules</th>
|
||||
<th>
|
||||
<% if (params[:terms].strip.length > 0) %>
|
||||
<% if (@results.size > 0) %>
|
||||
Matched <%= @results.size %> modules for term <em><%=h params[:terms] %>
|
||||
<% else %>
|
||||
No matching modules for term <em><%=h params[:terms] %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
Showing all <% @results.size %> modules
|
||||
<% end %>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -13,19 +23,18 @@
|
|||
<% @results.each do |m| %>
|
||||
<% unless @clean_list %>
|
||||
<tr>
|
||||
<td class="itemTitle">
|
||||
<td class="moduleTitle">
|
||||
<a onclick="window.parent.openModuleWindow('<%= @module_type %>', '<%= m.refname.gsub('/', ':') %>', '<%= m.name.gsub('"','').gsub("'","") %>')" href="#"><%= h(m.name) %></a>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<% if m.platform and @module_type =~ /(payloads|exploits)/ %>
|
||||
<%= module_platform_icons(m.platform) %>
|
||||
<% else %>
|
||||
<%= m.arch.join(' ') %>
|
||||
( <%= m.arch.join(' ') %> )
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="itemDescription">
|
||||
<td colspan="2" class="itemDescription"><%= m.description %></td>
|
||||
<tr class="moduleDescription">
|
||||
<td class="moduleDescription"><%= m.description %></td>
|
||||
</tr>
|
||||
<% else %>
|
||||
<li><%= h(m.name) %></li>
|
||||
|
@ -39,6 +48,6 @@
|
|||
<% end %>
|
||||
<% else %>
|
||||
<p>
|
||||
No modules found with terms <em><%= h(params[:terms]) %></em>.
|
||||
No results for terms <em><%= h(params[:terms]) %></em>.
|
||||
</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -60,6 +60,37 @@ table .itemDescription:hover {
|
|||
color: #000;
|
||||
}
|
||||
|
||||
|
||||
table .moduleTitle {
|
||||
padding-top: 1em;
|
||||
color: black;
|
||||
}
|
||||
|
||||
table .moduleTitle a {
|
||||
color: #444444;
|
||||
background-color: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table .moduleTitle a:hover {
|
||||
color: #444444;
|
||||
background-color: #faffab;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table .moduleDescription {
|
||||
background: #EDEDED;
|
||||
color: #000;
|
||||
padding: 5px;
|
||||
border: 1px solid #ccc;
|
||||
text-align: justify;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
#module-search-box span {
|
||||
font-variant: small-caps;
|
||||
font-weight: bold;
|
||||
|
|
Loading…
Reference in New Issue