[BioRuby-cvs] bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates bg.gif, NONE, 1.1 console.png, NONE, 1.1 _classes.rhtml, 1.1, 1.2 _log.rhtml, 1.1, 1.2 _methods.rhtml, 1.2, 1.3 _modules.rhtml, 1.1, 1.2 bioruby.css, 1.4, 1.5 bioruby.rhtml, 1.3, 1.4 bioruby_controller.rb, 1.5, 1.6 commands.rhtml, 1.1, 1.2 index.rhtml, 1.3, 1.4

Katayama Toshiaki k at dev.open-bio.org
Mon Jul 9 11:14:31 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates
In directory dev.open-bio.org:/tmp/cvs-serv30101/templates

Modified Files:
	_classes.rhtml _log.rhtml _methods.rhtml _modules.rhtml 
	bioruby.css bioruby.rhtml bioruby_controller.rb commands.rhtml 
	index.rhtml 
Added Files:
	bg.gif console.png 
Log Message:
* Completely new design for BioRuby shell on Rails translated from
  the 'DibdoltRed' theme on www.openwebdesign.org which is created by
  Darjan Panic and Brian Green as a public domain work.


Index: _classes.rhtml
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/_classes.rhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _classes.rhtml	24 Dec 2006 08:27:15 -0000	1.1
--- _classes.rhtml	9 Jul 2007 11:14:29 -0000	1.2
***************
*** 1,2 ****
--- 1,4 ----
  [ <%= @class %> ]
+ <div id="class_list">
  <%= @classes.map{ |x| reference_link(x) }.join(" > ") %>
+ </div>
\ No newline at end of file

Index: commands.rhtml
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/commands.rhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** commands.rhtml	24 Dec 2006 08:27:15 -0000	1.1
--- commands.rhtml	9 Jul 2007 11:14:29 -0000	1.2
***************
*** 1,2 ****
--- 1,3 ----
+ <div id="command">
  <h2>BioRuby shell commands</h2>
  <ul>
***************
*** 5,7 ****
    <% end %>
  </ul>
! 
--- 6,8 ----
    <% end %>
  </ul>
! </div>
\ No newline at end of file

Index: bioruby_controller.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/bioruby_controller.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** bioruby_controller.rb	28 Jun 2007 10:56:25 -0000	1.5
--- bioruby_controller.rb	9 Jul 2007 11:14:29 -0000	1.6
***************
*** 4,17 ****
  
    HIDE_MODULES = [
!     ActiveSupport::CoreExtensions::String::Iterators,
!     ActiveSupport::CoreExtensions::String::StartsEndsWith,
!     ActiveSupport::CoreExtensions::String::Inflections,
!     ActiveSupport::CoreExtensions::String::Conversions,
!     ActiveSupport::CoreExtensions::String::Access,
!     ActiveSupport::CoreExtensions::String::Unicode,
!     ActiveSupport::CoreExtensions::Numeric::Bytes,
!     ActiveSupport::CoreExtensions::Numeric::Time,
!     Base64::Deprecated, Base64, PP::ObjectMixin,
!     Bio::Shell
    ]
    HIDE_MODULES << WEBrick if defined?(WEBrick)
--- 4,8 ----
  
    HIDE_MODULES = [
!     Base64::Deprecated, Base64, PP::ObjectMixin, Bio::Shell,
    ]
    HIDE_MODULES << WEBrick if defined?(WEBrick)
***************
*** 63,67 ****
      script, result, output = Bio::Shell.cache[:results].restore(number)
      @class = result.class
!     @methods = result.methods - HIDE_METHODS
  
      render :update do |page|
--- 54,58 ----
      script, result, output = Bio::Shell.cache[:results].restore(number)
      @class = result.class
!     @methods = (result.methods - HIDE_METHODS).sort
  
      render :update do |page|

Index: _modules.rhtml
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/_modules.rhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _modules.rhtml	24 Dec 2006 08:27:15 -0000	1.1
--- _modules.rhtml	9 Jul 2007 11:14:29 -0000	1.2
***************
*** 1,2 ****
  [ <%= @class %> ]
! <%= @modules.map {|x| reference_link(x) }.join(" | ") %>
--- 1,4 ----
  [ <%= @class %> ]
! <div id="module_list">
! <%= @modules.map {|x| reference_link(x) }.sort.join("<br>") %>
! </div>
\ No newline at end of file

Index: bioruby.css
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/bioruby.css,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** bioruby.css	28 Mar 2007 09:21:45 -0000	1.4
--- bioruby.css	9 Jul 2007 11:14:29 -0000	1.5
***************
*** 2,8 ****
  
  body {
! 	color: #6e8377;
! 	background-color: #ffffff;
! 	font-family: verdana, arial, helvetica, sans-serif;
  }
  
--- 2,50 ----
  
  body {
! 	margin: 0;
! 	color: #555555;
! 	background: url("/images/bg.gif") repeat-y center;
! 	font-family: "trebuchet ms", verdana, arial, helvetica, sans-serif;
! 	font-size: 12px;
! }
! 
! div#content {
! 	width: 750px;
! 	height: auto;
! 	margin: 0 auto 0 auto;
! 	text-align: left;
! }
! 
! /* title */
! 
! div#title {
! 	width: 550px;
! 	padding-right: 200px;
! 	margin-bottom: 20px;
! 	text-align: left;
! 	background: url("/images/bioruby.png") no-repeat left bottom;
! }
! 
! div#title .titletop {
! 	color: #736451;
! 	font-size: 30px;
! 	font-weight: normal;
! 	text-align: left;
! 	text-indent: 70px;
! 	margin: 0;
! 	padding: 0;
! 	padding-top: 20px;
! 	margin-bottom: 10px;
! }
! 
! div#title .titlesub {
! 	color: #000000;
! 	font-size: 15px;
! 	font-weight: normal;
! 	text-align: left;
! 	text-indent: 70px;
! 	margin: 0;
! 	padding: 0;
! 	border-bottom: 1px solid #eeeeee;
  }
  
***************
*** 10,14 ****
  
  div#main {
! 	width: 700px;
  	background-color: #ffffff;
  	padding-top: 0px;
--- 52,56 ----
  
  div#main {
! 	width: 550px;
  	background-color: #ffffff;
  	padding-top: 0px;
***************
*** 20,23 ****
--- 62,66 ----
  	border: 1px solid #f00;
  }
+ 
  div#notice p {
  	margin: 0;
***************
*** 32,38 ****
--- 75,89 ----
  	border-width: 1px;
  	padding: 5px;
+ 	width: 500px;
  	overflow: auto;
  }
  
+ div.log {
+ 	width: 500px;
+ 	margin-top: 15px;
+ 	padding-top: 5px;
+ 	border-top: 1px dotted #333333;
+ }
+ 
  div.log div.input pre.script {
  	background-color: #ffffeb;
***************
*** 66,73 ****
  }
  
! div.log hr.result {
  	border-style: dotted none none none;
  	border-top-width: 1px;
  	border-color: #6e8377;
  	height: 1px;
  }
--- 117,125 ----
  }
  
! div.log hr.log {
  	border-style: dotted none none none;
  	border-top-width: 1px;
  	border-color: #6e8377;
+ 	width: 200px;
  	height: 1px;
  }
***************
*** 77,88 ****
  div#side {
  	width: 150px;
! 	background-color: #ffffff;
! 	position: absolute;
! 	top: 10px;
! 	left: 10px;
  }
  
  div#side div.title {
  	border-width: 0px 0px 1px 0px;
  }
  
--- 129,169 ----
  div#side {
  	width: 150px;
! 	float: right;
! 	margin-top: 20px;
! 	text-align: left;
! 	font-size: 12px;
! 	color: #e44268;
  }
  
  div#side div.title {
+ 	font-weight: normal;
+ 	color: #e44268;
+ 	text-align: left;
  	border-width: 0px 0px 1px 0px;
+ 	border-bottom: 1px solid #e44268;
+ }
+ 
+ div#side a:link {
+ 	color: #ffffff;
+ 	text-decoration: none;
+ }
+ 
+ div#side a:visited {
+ 	color: #ffffff;
+ 	text-decoration: none;
+ }
+ 
+ div#side a:hover {
+ 	color: #cccccc;
+ 	text-decoration: underline;
+ }
+ 
+ div#side ol,ul {
+ 	margin: 10px;
+ 	padding-left: 10px;
+ }
+ 
+ div#side li {
+ 	color: #e44268;
  }
  
***************
*** 93,97 ****
  /* history */
  
! div#history { 
  }
  
--- 174,179 ----
  /* history */
  
! div#history {
! 	width: 500px;
  }
  
***************
*** 108,111 ****
--- 190,199 ----
  }
  
+ /* command */
+ 
+ div#command {
+ 	width: 500px;
+ }
+ 
  /* image */
  
***************
*** 115,118 ****
--- 203,207 ----
  	margin-left: auto;
  	margin-right: auto;
+ 	border: 0px;
  }
  
***************
*** 208,216 ****
  }
  
- table#list_methods {
- 	width: 680px;
- 	border: none;
- }
- 
  th {
  	vertical-align: top;
--- 297,300 ----
***************
*** 223,234 ****
  }
  
  
  /* textarea */
  
  textarea {
  	font-family: monospace;
! 	font-size: 100%;
  	overflow: auto;
! 	width: 80%;
  }
  
--- 307,346 ----
  }
  
+ div#method_list table {
+ 	border: none;
+ }
+ 
+ 
+ /* form */
+ 
+ input {
+ 	background-color: #FFFFFF;
+ 	padding: 2px;
+ 	font-size: 10px;
+ 	color: #666666;
+ 	border: 1px solid #611022;
+ 	margin-bottom: 2px;
+ }
+ 
+ input[type=submit] {
+ 	background-color: #FFFFFF;
+ 	padding: 2px;
+ 	font-size: 10px;
+ 	color: #ffffff;
+ 	border: 1px solid #611022;
+ 	background-color: #E44268;
+ 	margin-bottom: 2px;
+ }
  
  /* textarea */
  
  textarea {
+ 	background: url("/images/console.png") no-repeat center;
+ 	background-color: #eaedeb;
  	font-family: monospace;
! 	font-size: 12px;
  	overflow: auto;
! 	width: 500px;
! 	padding: 5px;
  }
  
***************
*** 252,256 ****
  
  @media screen {
! 	div#main	{ margin-left: 150px; }
  	div#side	{ display: block; }
  }
--- 364,368 ----
  
  @media screen {
! 	div#main	{ margin-left: 0px; }
  	div#side	{ display: block; }
  }

--- NEW FILE: console.png ---
(This appears to be a binary file; contents omitted.)

Index: _methods.rhtml
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/_methods.rhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** _methods.rhtml	16 Jan 2007 05:47:05 -0000	1.2
--- _methods.rhtml	9 Jul 2007 11:14:29 -0000	1.3
***************
*** 1,9 ****
  [ <%= @class %> ]
! <table id="list_methods">
  <tr>
  <%- step = @methods.size / 4 + 1 -%>
  <%- 0.step(@methods.size, step) do |i| -%>
! <td><%= @methods.sort[i, step].join("<br>") %></td>
  <%- end -%>
  </tr>
! </table>
\ No newline at end of file
--- 1,11 ----
  [ <%= @class %> ]
! <div id="method_list">
! <table>
  <tr>
  <%- step = @methods.size / 4 + 1 -%>
  <%- 0.step(@methods.size, step) do |i| -%>
! <td><%= @methods[i, step].join("<br>") %></td>
  <%- end -%>
  </tr>
! </table>
! </div>

Index: index.rhtml
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/index.rhtml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** index.rhtml	28 Mar 2007 09:21:45 -0000	1.3
--- index.rhtml	9 Jul 2007 11:14:29 -0000	1.4
***************
*** 4,8 ****
  <%- end -%>
  <%= form_remote_tag(:url => {:action => "evaluate"}, :position => "top") %>
! <b>BioRuby script</b>
  <input type="submit" value="Evaluate">
  <input type="reset" value="Clear">
--- 4,9 ----
  <%- end -%>
  <%= form_remote_tag(:url => {:action => "evaluate"}, :position => "top") %>
! <b>BioRuby script:</b>
! <textarea id="script" name="script" rows=10 cols=80></textarea><br>
  <input type="submit" value="Evaluate">
  <input type="reset" value="Clear">
***************
*** 12,19 ****
  <%= link_to_remote "Last 5",   :url => {:action => "results", :limit => 5} %> |
  <%= link_to_remote "Previous", :url => {:action => "results", :limit => 1} %>
! ] or [
! <%= link_to "Clear", :action => "index" %>
! ] results<br>
! <textarea id="script" name="script" rows=10 cols=80></textarea><br>
  <%= end_form_tag %>
  </div>
--- 13,19 ----
  <%= link_to_remote "Last 5",   :url => {:action => "results", :limit => 5} %> |
  <%= link_to_remote "Previous", :url => {:action => "results", :limit => 1} %>
! ] or
! <%= link_to "Hide", :action => "index" %>
! results<br>
  <%= end_form_tag %>
  </div>

Index: _log.rhtml
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/_log.rhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _log.rhtml	16 Jan 2007 05:35:37 -0000	1.1
--- _log.rhtml	9 Jul 2007 11:14:29 -0000	1.2
***************
*** 1,4 ****
  <div id="log_<%= @number %>" class="log">
- <hr class="log">
  <div class="input">
  Input: [<%= link_to_remote @number, :url => {:action => "reload_script", :number => @number} %>]
--- 1,3 ----

--- NEW FILE: bg.gif ---
(This appears to be a binary file; contents omitted.)

Index: bioruby.rhtml
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/rails/vendor/plugins/generators/bioruby/templates/bioruby.rhtml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** bioruby.rhtml	28 Jun 2007 10:56:25 -0000	1.3
--- bioruby.rhtml	9 Jul 2007 11:14:29 -0000	1.4
***************
*** 1,41 ****
! <html>
  <head>
  <title>BioRuby shell on Rails</title>
  <%= stylesheet_link_tag "bioruby.css" %>
  <%= javascript_include_tag :defaults %>
  </head>
- <body>
- 
- <div id="side">
-  <img src="/images/bioruby.png">
-  <br>
  
!  <div class="title">Project</div>
!  <ul>
!   <li><%= link_to "#{File.basename(project_workdir)}", "file://#{project_workdir}" %>
!  </ul>
  
!  <div class="title">Functions</div>
!  <ul>
!    <li><%= link_to "Console", :action => "index" %></li>
!    <li><%= link_to "History", :action => "history" %></li>
!    <li><%= link_to "Commands", :action => "commands" %></li>
!  </ul>
  
!  <div class="title">Local variables</div>
!  <%= render :partial => "variables" %>
  
!  <br>
!  <a href="http://bioruby.org/"><img src="/images/bioruby.gif" border=0></a>
! </div>
  
  
! <div id="main">
  
! <h1>BioRuby shell on Rails</h1>
  
  <%= yield %>
  
! </div>
  
  </body>
--- 1,47 ----
! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
! <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	
  <title>BioRuby shell on Rails</title>
  <%= stylesheet_link_tag "bioruby.css" %>
  <%= javascript_include_tag :defaults %>
  </head>
  
! <body>
  
! <div id="content">
  
!  <div id="side">
!   <div class="title">Project</div>
!   <ul>
!    <li><%= link_to "#{File.basename(project_workdir)}", "file://#{project_workdir}" %>
!   </ul>
  
!   <div class="title">Functions</div>
!   <ul>
!     <li><%= link_to "Console", :action => "index" %></li>
!     <li><%= link_to "History", :action => "history" %></li>
!     <li><%= link_to "Commands", :action => "commands" %></li>
!   </ul>
  
+   <div class="title">Local variables</div>
+   <%= render :partial => "variables" %>
  
!   <br>
!   <a href="http://bioruby.org/"><img src="/images/bioruby.gif" border=0></a>
!  </div><!-- side -->
  
!  <div id="title">
!   <p class="titletop">BioRuby shell on Rails</p>
!   <p class="titlesub">Web interface for the BioRuby library</p>
!  </div><!-- title -->
  
+  <div id="main">
  <%= yield %>
+  </div><!-- main -->
  
! </div><!-- content -->
  
  </body>
+ 
+ </html>




More information about the bioruby-cvs mailing list