You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2016/04/08 23:14:38 UTC
[whimsy] branch master updated: cross-link to shepherd pages
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 79d6d8d cross-link to shepherd pages
79d6d8d is described below
commit 79d6d8d178a21cb17125fda566b8520590e667de
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Apr 8 17:14:23 2016 -0400
cross-link to shepherd pages
---
www/board/agenda/views/elements/info.js.rb | 7 ++++++-
www/board/agenda/views/pages/index.js.rb | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/views/elements/info.js.rb b/www/board/agenda/views/elements/info.js.rb
index 39a7f94..be3ffe7 100644
--- a/www/board/agenda/views/elements/info.js.rb
+++ b/www/board/agenda/views/elements/info.js.rb
@@ -11,7 +11,12 @@ class Info < React
if @@item.shepherd
_dt 'Shepherd'
- _dd @@item.shepherd
+ _dd do
+ if @@item.shepherd
+ _Link text: @@item.shepherd,
+ href: "shepherd/#{@@item.shepherd.split(' ').first}"
+ end
+ end
end
if @@item.flagged_by and not @@item.flagged_by.empty?
diff --git a/www/board/agenda/views/pages/index.js.rb b/www/board/agenda/views/pages/index.js.rb
index a3e0a29..58424a8 100644
--- a/www/board/agenda/views/pages/index.js.rb
+++ b/www/board/agenda/views/pages/index.js.rb
@@ -21,7 +21,12 @@ class Index < React
_td row.attach
_td { _Link text: row.title, href: row.href }
_td row.owner
- _td row.shepherd
+ _td do
+ if row.shepherd
+ _Link text: row.shepherd,
+ href: "shepherd/#{row.shepherd.split(' ').first}"
+ end
+ end
end
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].