You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/01/17 22:56:37 UTC
[whimsy.git] [1/1] Commit 6660aea: add href as a possibility
Commit 6660aeae8405542e41372cf81eacf4f247758ed1:
add href as a possibility
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@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