This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  ab79823   retab; indent paragraph
ab79823 is described below

commit ab79823473ac2304e12f88846ebc791147b47124
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Sep 21 08:51:26 2016 -0400

    retab; indent paragraph
---
 www/secmail/views/index.js.rb | 64 +++++++++++++++++++++++--------------------
 1 file changed, 35 insertions(+), 29 deletions(-)

diff --git a/www/secmail/views/index.js.rb b/www/secmail/views/index.js.rb
index 36d42fc..4f5f822 100644
--- a/www/secmail/views/index.js.rb
+++ b/www/secmail/views/index.js.rb
@@ -12,37 +12,43 @@ class Index < React
 
   def render
     if not @messages or @messages.all? {|message| message.status == :deleted}
-      _p 'All documents have been processed.'
+      _p.container_fluid 'All documents have been processed.'
     else
       _table.table do
-       _thead do
-         _tr do
-           _th 'Timestamp'
-           _th 'From'
-           _th 'Subject'
-         end
-       end
-
-       _tbody do
-         @messages.each do |message|
-
-           # determine the 'color' to use for the row
-           color = nil
-           color = 'deleted' if message.status == :deletePending
-           color = 'hidden' if message.status == :deleted
-           color = 'selected' if message.href == @selected
-
-           time = Date.new(Date.parse(message.time)).toLocaleString()
-
-           _tr class: color, onClick: self.selectRow, onDoubleClick: self.nav 
do
-             _td do
-               _a time, href: "#{message.href}", title: message.time
-             end 
-             _td message.from
-             _td message.subject
-           end
-         end
-       end
+        _thead do
+          _tr do
+            _th 'Timestamp'
+            _th 'From'
+            _th 'Subject'
+          end
+        end
+
+        _tbody do
+          @messages.each do |message|
+
+            # determine the 'color' to use for the row
+            color = nil
+            color = 'deleted' if message.status == :deletePending
+            color = 'hidden' if message.status == :deleted
+            color = 'selected' if message.href == @selected
+
+            time = Date.new(Date.parse(message.time)).toLocaleString()
+
+            row_options = {
+              class: color, 
+              onClick: self.selectRow, 
+              onDoubleClick: self.nav
+            }
+
+            _tr row_options do
+              _td do
+                _a time, href: "#{message.href}", title: message.time
+              end 
+              _td message.from
+              _td message.subject
+            end
+          end
+        end
       end
     end
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Reply via email to