whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [19/50] Commit e1e59ff: cleanup indentation, etc
Date Fri, 22 Jan 2016 02:40:54 GMT
Commit e1e59ff5f633b37cea29fc57ad5b71261586e669:
    cleanup indentation, etc


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
views/header.js.rb                                           | + -
views/report.js.rb                                           | +++ ----
------------------------------------------------------------
9 changes: 4 additions, 5 deletions.
------------------------------------------------------------


diff --git a/views/header.js.rb b/views/header.js.rb
index cd5e626..473631a 100644
--- a/views/header.js.rb
+++ b/views/header.js.rb
@@ -43,7 +43,7 @@ def render
                   _dd { _a 'Roster', href: @@item.roster }
                 end
 
-                if @item.prior_reports
+                if @@item.prior_reports
                   _dd { _a 'Prior Reports', href: @@item.prior_reports }
                 end
               end
diff --git a/views/report.js.rb b/views/report.js.rb
index 4c3bbb3..75d8adb 100644
--- a/views/report.js.rb
+++ b/views/report.js.rb
@@ -1,12 +1,11 @@
 class Report < React
   def render
     _section.flexbox do
-      if @@data.missing
+      _section do
         _pre.report do
-          _em 'Missing'
+          _em 'Missing' if @@data.missing
+          _ @@data.text
         end
-      else
-        _pre @@data.text
       end
     end
   end

Mime
View raw message