Skip to content

Commit

Permalink
Fix up relative runbook links
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Feb 9, 2024
1 parent 465f96b commit a0c5d2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/whimsy/asf/meeting-util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class MeetingUtil
VCAL_EVENTS_FILENAME = 'ASF-members-meeting.ics'
PROXIES_FILENAME = 'proxies'

# The URL is generated using emit_link() in meeting.cgi
# if the name includes '/' then use as is unless it starts with 'runbook/'
MEETING_FILES = { # Filename in meeting dir, pathname to another deployed tool, or URL
'README.txt' => 'README For Meeting Process And Roll Call',
'runbook/email_03_nomination_of_board.txt' => 'How To Nominate Someone For Board',
Expand Down
2 changes: 1 addition & 1 deletion www/members/meeting.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ end

# Utility function for links, Note: cheezy path detection within MEETING_FILES
def emit_link(cur_mtg_dir, f, desc)
_a desc, href: f.include?('/') ? f : File.join(cur_mtg_dir, f)
_a desc, href: f.include?('/') && !f.start_with?('runbook/') ? f : File.join(cur_mtg_dir, f)
end

# Output action links for meeting records, depending on if current or past
Expand Down

0 comments on commit a0c5d2e

Please sign in to comment.