Added version and platform information to the web views.
git-svn-id: file:///home/svn/framework3/trunk@3970 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
a8c5d4668a
commit
acc779841c
|
@ -4,7 +4,13 @@
|
|||
# Methods added to this helper will be available to all templates in the application.
|
||||
module ApplicationHelper
|
||||
|
||||
def return_os_string()
|
||||
# Returns a hash with ruby version, platform and Metasploit version.
|
||||
def return_env_info()
|
||||
ret = {}
|
||||
ret[:platform] = RUBY_PLATFORM
|
||||
ret[:rubyver] = RUBY_VERSION
|
||||
ret[:msfver] = Msf::Framework::Version
|
||||
return ret
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
<li onClick="openJobsWindow()"><img src="/images/jobs.png" alt="" />Jobs</li>
|
||||
<li onClick=""><img src="/images/wrench.png" alt="" />IDE</li>
|
||||
<li onClick=""><img src="/images/help.png" alt="" />Help</li>
|
||||
<span class="env-info">
|
||||
Platform: <%=return_env_info()[:platform]%> (ruby <%=return_env_info()[:rubyver]%>)<br />
|
||||
Metasploit: <%=return_env_info()[:msfver]%>
|
||||
</span>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -78,6 +78,10 @@ function create_window_ajax(target_url, wid, wtitle, wwidth, wheight) {
|
|||
draggable: true,
|
||||
url: target_url,
|
||||
showEffectOptions:
|
||||
{
|
||||
duration: 0.25
|
||||
},
|
||||
closeEffectOptions:
|
||||
{
|
||||
duration: 0.25
|
||||
}
|
||||
|
@ -86,7 +90,7 @@ function create_window_ajax(target_url, wid, wtitle, wwidth, wheight) {
|
|||
}
|
||||
|
||||
function openModuleWindow(mtype, refname, wtitle) {
|
||||
var mWin = create_window_ajax("/" + mtype + "/view/" + refname, mtype + "-view-" + obtainWindowId(), wtitle);
|
||||
var mWin = create_window_ajax("/" + mtype + "/view/" + refname, mtype + "-view-" + obtainWindowId(), wtitle, 400, 300);
|
||||
mWin.setDestroyOnClose();
|
||||
mWin.showCenter();
|
||||
}
|
||||
|
|
|
@ -74,3 +74,9 @@ body {
|
|||
border-left: 5px solid #fff;
|
||||
background: #fff url(/images/help.png) no-repeat;
|
||||
}
|
||||
|
||||
.env-info {
|
||||
float: right;
|
||||
border-left: 1px solid #ddd;
|
||||
padding: 3px;
|
||||
}
|
|
@ -98,7 +98,7 @@
|
|||
.metasploit_content {
|
||||
overflow:auto;
|
||||
color: #444;
|
||||
font-family: "MS Sans Serif", Arial, sans-serif;
|
||||
font-family: Trebuchet, Sans, Arial;
|
||||
font-size: 14px;
|
||||
background:#ddd;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue