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] [1/1] Commit 6660aea: add href as a possibility
Date Sun, 17 Jan 2016 21:56:37 GMT
Commit 6660aeae8405542e41372cf81eacf4f247758ed1:
    add href as a possibility


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

------------------------------------------------------------
www/status/js/status.js                                      | +++++ 
www/status/monitors/board_minutes.rb                         | +++++ -
------------------------------------------------------------
11 changes: 10 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/status/js/status.js b/www/status/js/status.js
index 2ad0d53..c0d5c77 100644
--- a/www/status/js/status.js
+++ b/www/status/js/status.js
@@ -40,6 +40,11 @@ $(function() {
         div.append($('<a>').addClass('list-group-item').
           text(value.data.toString()));
       }
+
+      // hot link text children
+      if (value.href) {
+        div.children('a:not(.data-toggle)').attr('href', value.href);
+      }
  
       // append each to the container
       container.append(anchor);
diff --git a/www/status/monitors/board_minutes.rb b/www/status/monitors/board_minutes.rb
index 8f2e3f3..c5371d4 100644
--- a/www/status/monitors/board_minutes.rb
+++ b/www/status/monitors/board_minutes.rb
@@ -7,7 +7,11 @@ def Monitor.board_minutes(previous_status)
   log = File.expand_path('../../www/logs/collate_minutes')
 
   if File.read(log) =~ /\*\*\* (Exception.*) \*\*\*/
-    {level: 'danger', data: $1}
+    {
+      level: 'danger',
+      data: $1,
+      href: '../logs/collate_minutes'
+    }
   else
     "Last updated: #{File.mtime(index)}"
   end

Mime
View raw message