Cleaned up the views

git-svn-id: file:///home/svn/framework3/trunk@4039 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-10-16 05:51:54 +00:00
parent e7784d1dda
commit 8633cd909e
5 changed files with 128 additions and 117 deletions

View File

@ -1,54 +1,43 @@
<table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo"> <table align="center" width="100%" cellspacing="0" cellpadding="15" border="0">
<tr> <tr width="100%" align="center">
<p class="moduleName"> <p class="moduleName">
<span class="moduleIcons"> <%= h(@tmod.name) %> <br />
<%= module_platform_icons(@tmod.platform) %>
</span>
<%= html_escape(@tmod.name) %>
</p> </p>
</tr> </tr>
<tr> <tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
<%= html_escape(@tmod.description) %> <%= h(@tmod.description) %>
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr>
<tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
This module was provided by <%= @tmod.author.join(' and ') %>. This module (revision <%= h @tmod.version.gsub(/\$Revision:\s+|\s+\$/, '') %>) was provided by <%= h @tmod.author.map{ |a| a.to_s.gsub(/\<.*/, '') }.join(' and ').strip %>, under the <%= @tmod.license %>.
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr> <% if (@tmod.references.length > 0) %>
<td>Version:</td> <tr width="100%" align="center">
<td><%= @tmod.version %></td>
</tr>
<tr>
<td>License:</td>
<td><%= @tmod.license %></td>
</tr>
<% if @tmod.references.size > 0 %>
<tr>
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
External references: External references:
<ul> <ul class="moduleReferences">
<% @tmod.references.each { |ref| %> <% @tmod.references.each { |ref| %>
<% if (ref.kind_of?(Msf::Module::SiteReference)) %> <% if (ref.kind_of?(Msf::Module::SiteReference)) %>
<li><a href="<%= ref.site %>" target="_blank"> <li><a href="<%= ref.site %>" target="_blank">
<%= html_escape(ref.to_s) %></a></li> <%= h(ref.to_s) %></a></li>
<% else %> <% else %>
<li><%= html_escape(ref.to_s) %></li> <li><%= h(ref.to_s) %></li>
<% end %> <% end %>
<% } %> <% } %>
</ul>
</p> </p>
</blockquote> </blockquote>
</tr> </tr>

View File

@ -1,40 +1,46 @@
<table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo"> <table align="center" width="100%" cellspacing="0" cellpadding="15" border="0">
<tr> <tr width="100%" align="center">
<p class="moduleName"> <p class="moduleName">
<%= html_escape(@tmod.name) %> <%= h(@tmod.name) %> <br />
</p> </p>
</tr> </tr>
<tr> <tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
<%= html_escape(@tmod.description) %> <%= h(@tmod.description) %>
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr>
<tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
This module was provided by <%= @tmod.author.join(' and ') %>. This module (revision <%= h @tmod.version.gsub(/\$Revision:\s+|\s+\$/, '') %>) was provided by <%= h @tmod.author.map{ |a| a.to_s.gsub(/\<.*/, '') }.join(' and ').strip %>, under the <%= @tmod.license %>.
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr> <% if (@tmod.references.length > 0) %>
<td>Version:</td> <tr width="100%" align="center">
<td><%= @tmod.version %></td> <blockquote>
</tr> <p class="moduleDescription">
External references:
<tr> <ul class="moduleReferences">
<td>License:</td> <% @tmod.references.each { |ref| %>
<td><%= @tmod.license %></td> <% if (ref.kind_of?(Msf::Module::SiteReference)) %>
</tr> <li><a href="<%= ref.site %>" target="_blank">
<%= h(ref.to_s) %></a></li>
<tr> <% else %>
<td>Architecture:</td> <li><%= h(ref.to_s) %></li>
<td><%= @tmod.arch %></td> <% end %>
<% } %>
</ul>
</p>
</blockquote>
</tr> </tr>
<% end %>
</table> </table>

View File

@ -23,6 +23,7 @@
</blockquote> </blockquote>
</tr> </tr>
<% if (@tmod.references.length > 0) %>
<tr width="100%" align="center"> <tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDescription"> <p class="moduleDescription">
@ -40,6 +41,7 @@
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<% end %>
<tr width="100%" align="center"> <tr width="100%" align="center">
<blockquote> <blockquote>

View File

@ -1,40 +1,46 @@
<table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo"> <table align="center" width="100%" cellspacing="0" cellpadding="15" border="0">
<tr> <tr width="100%" align="center">
<p class="moduleName"> <p class="moduleName">
<%= html_escape(@tmod.name) %> <%= h(@tmod.name) %> <br />
</p> </p>
</tr> </tr>
<tr> <tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
<%= html_escape(@tmod.description) %> <%= h(@tmod.description) %>
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr>
<tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
This module was provided by <%= @tmod.author.join(' and ') %>. This module (revision <%= h @tmod.version.gsub(/\$Revision:\s+|\s+\$/, '') %>) was provided by <%= h @tmod.author.map{ |a| a.to_s.gsub(/\<.*/, '') }.join(' and ').strip %>, under the <%= @tmod.license %>.
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr> <% if (@tmod.references.length > 0) %>
<td>Version:</td> <tr width="100%" align="center">
<td><%= @tmod.version %></td> <blockquote>
</tr> <p class="moduleDescription">
External references:
<tr> <ul class="moduleReferences">
<td>License:</td> <% @tmod.references.each { |ref| %>
<td><%= @tmod.license %></td> <% if (ref.kind_of?(Msf::Module::SiteReference)) %>
</tr> <li><a href="<%= ref.site %>" target="_blank">
<%= h(ref.to_s) %></a></li>
<tr> <% else %>
<td>Architecture:</td> <li><%= h(ref.to_s) %></li>
<td><%= @tmod.arch %></td> <% end %>
<% } %>
</ul>
</p>
</blockquote>
</tr> </tr>
<% end %>
</table> </table>

View File

@ -1,39 +1,47 @@
<table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo"> <table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" class="moduleInfo">
<tr> <tr width="100%" align="center">
<p class="moduleName"> <p class="moduleName">
<span class="moduleIcons"> <%= h(@tmod.name) %> <br />
<%= module_platform_icons(@tmod.platform) %>
</span>
<%= html_escape(@tmod.name) %>
</p> </p>
</tr> </tr>
<tr> <tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
<%= html_escape(@tmod.description) %> <%= h(@tmod.description) %>
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr>
<tr width="100%" align="center">
<blockquote> <blockquote>
<p class="moduleDesc"> <p class="moduleDescription">
This module was provided by <%= @tmod.author.join(' and ') %>. This module (revision <%= h @tmod.version.gsub(/\$Revision:\s+|\s+\$/, '') %>) was provided by <%= h @tmod.author.map{ |a| a.to_s.gsub(/\<.*/, '') }.join(' and ').strip %>, under the <%= @tmod.license %>.
</p> </p>
</blockquote> </blockquote>
</tr> </tr>
<tr> <% if (@tmod.references.length > 0) %>
<td>Version:</td> <tr width="100%" align="center">
<td><%= @tmod.version %></td> <blockquote>
</tr> <p class="moduleDescription">
External references:
<tr> <ul class="moduleReferences">
<td>License:</td> <% @tmod.references.each { |ref| %>
<td><%= @tmod.license %></td> <% if (ref.kind_of?(Msf::Module::SiteReference)) %>
<li><a href="<%= ref.site %>" target="_blank">
<%= h(ref.to_s) %></a></li>
<% else %>
<li><%= h(ref.to_s) %></li>
<% end %>
<% } %>
</ul>
</p>
</blockquote>
</tr> </tr>
<% end %>
<tr> <tr>
<td>Size:</td> <td>Size:</td>