Updates to models/lists
git-svn-id: file:///home/svn/framework3/trunk@3963 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7c36b292a5
commit
4c4f7ae301
|
@ -1,6 +1,7 @@
|
|||
class AuxiliariesController < ApplicationController
|
||||
|
||||
def list
|
||||
@all_auxiliary = Auxiliary.get_available()
|
||||
end
|
||||
|
||||
def view
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class JobsController < ApplicationController
|
||||
|
||||
def list
|
||||
@all_jobs = Job.get_available()
|
||||
end
|
||||
|
||||
def stop
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class SessionsController < ApplicationController
|
||||
|
||||
def list
|
||||
@all_sessions = Session.get_available()
|
||||
end
|
||||
|
||||
def stop
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
class Auxiliary
|
||||
|
||||
def self.get_available()
|
||||
mods = []
|
||||
$msframework.auxiliary.each_module { |n,m| mods << m.new }
|
||||
mods
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
class Job
|
||||
|
||||
def self.get_available()
|
||||
$msframework.jobs
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
class Session
|
||||
|
||||
def self.get_available()
|
||||
$msframework.sessions
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,2 +1,14 @@
|
|||
<h1>Auxiliaries#list</h1>
|
||||
<p>Find me in app/views/auxiliaries/list.rhtml</p>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Module</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @all_auxiliary.each do |m| %>
|
||||
<tr><td><%= m.name %></td><td><%= m.description %></td><td><%= m.refname %></td></tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -1,2 +1,13 @@
|
|||
<h1>Jobs#list</h1>
|
||||
<p>Find me in app/views/jobs/list.rhtml</p>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @all_jobs.each_pair do |n,m| %>
|
||||
<tr><td><%= n %></td><td><%= m %></td></tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -1,2 +1,13 @@
|
|||
<h1>Sessions#list</h1>
|
||||
<p>Find me in app/views/sessions/list.rhtml</p>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @all_sessions.each_pair do |n,m| %>
|
||||
<tr><td><%= n %></td><td><%= m %></td></tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue