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] [4/4] Commit 3f14059: more relative URLs
Date Mon, 22 Feb 2016 13:22:31 GMT
Commit 3f14059bd29d921a3a41976aee071d2b316befec:
    more relative URLs


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

------------------------------------------------------------
www/members/watch.cgi                                        | ++++ ----
------------------------------------------------------------
8 changes: 4 additions, 4 deletions.
------------------------------------------------------------


diff --git a/www/members/watch.cgi b/www/members/watch.cgi
index a2b26cf..be81870 100755
--- a/www/members/watch.cgi
+++ b/www/members/watch.cgi
@@ -164,10 +164,10 @@ _html do
                 person.committees.sort_by(&:name).each do |committee|
                   if committee.chair == person
                     _strong do
-                      _a committee.name, href: "/roster/committee/#{committee.name}"
+                      _a committee.name, href: "../../roster/committee/#{committee.name}"
                     end
                   else
-                    _a committee.name, href: "/roster/committee/#{committee.name}"
+                    _a committee.name, href: "../../roster/committee/#{committee.name}"
                   end
                 end
               end
@@ -175,7 +175,7 @@ _html do
               # chair since
               chair = person.committees.find {|committee| committee.chair == person}
               if chair
-                minutes = Dir['/var/www/whimsy/board/minutes/*'].find do |name|
+                minutes = Dir['../board/minutes/*'].find do |name|
                   File.basename(name).split('.').first.downcase.gsub(/[_\W]/,'') ==
                     "#{chair.name.gsub(/\W/,'')}"
                 end
@@ -200,7 +200,7 @@ _html do
     
                 date = 'unknown'
                 if minutes
-                  minutes = '/board/minutes/' + File.basename(minutes)
+                  minutes = '../../board/minutes/' + File.basename(minutes)
                 end
                 if resolution
                   minutes += '#' + resolution.at('a')['id']

Mime
View raw message