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/07 23:22:13 UTC

[whimsy] branch master updated (9d66874 -> 839df5b)

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

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

      from  9d66874   Docn; ensure status does not needlessly chage
       new  e6084b0   don't repeat comments when viewing an old agenda
       new  839df5b   no need to rescan if current agenda changes

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 www/board/agenda/models/comments.rb                   | 6 +++---
 www/board/agenda/views/elements/additional-info.js.rb | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

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

[whimsy] 01/02: don't repeat comments when viewing an old agenda

Posted by ru...@apache.org.
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

commit e6084b0b4f9f974cb8916d911b1828c10355ef64
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Apr 7 17:21:29 2016 -0400

    don't repeat comments when viewing an old agenda
---
 www/board/agenda/views/elements/additional-info.js.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/board/agenda/views/elements/additional-info.js.rb b/www/board/agenda/views/elements/additional-info.js.rb
index e0ac7e6..b041fcc 100644
--- a/www/board/agenda/views/elements/additional-info.js.rb
+++ b/www/board/agenda/views/elements/additional-info.js.rb
@@ -43,6 +43,8 @@ class AdditionalInfo < React
       # historical comments
       if history and not @prefix
         for date in history
+          next if Agenda.file == "board_agenda_#{date}.txt"
+
           _h5.history do
             _span "\u2022 "
             _a date.gsub('_', '-'),

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

[whimsy] 02/02: no need to rescan if current agenda changes

Posted by ru...@apache.org.
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

commit 839df5bc02adfbd2e4097175727dc08100c6c48f
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Apr 7 17:21:56 2016 -0400

    no need to rescan if current agenda changes
---
 www/board/agenda/models/comments.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/board/agenda/models/comments.rb b/www/board/agenda/models/comments.rb
index decd0b6..eabfd4e 100644
--- a/www/board/agenda/models/comments.rb
+++ b/www/board/agenda/models/comments.rb
@@ -16,13 +16,13 @@ class HistoricalComments
       sort_by {|file| File.basename(file)}.
       map {|file| file.untaint}
 
+    # drop latest agenda
+    agendas.pop
+
     # return previous results unless an agenda has been updated
     mtime = agendas.map {|file| File.mtime(file)}.max
     return @@comments if mtime == @@mtime
 
-    # drop latest agenda
-    agendas.pop
-
     # initialize comments to empty hash of hashes
     comments = Hash.new {|hash, key| hash[key] = {}}
 

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