Skip to content

Commit

Permalink
Merge pull request #126 from GeoscienceAustralia/feature/capitalise-d…
Browse files Browse the repository at this point in the history
…emo-banner

Capitalised two links in the deploy/PR banner
  • Loading branch information
benji-glitsos-ga authored Feb 22, 2024
2 parents d9ec76a + 537cd13 commit 787980f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_modules/deploy_banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def banner():
github_url = "https://github.com/GeoscienceAustralia/dea-docs"
deploy_logs_url = "https://app.netlify.com/sites/dea-docs/deploys"

pull_request_banner = f'You are viewing <strong>{deploy_name} #{review_id}</strong>, not the official <a href="{knowledge_hub_url}">DEA Knowledge Hub</a>. View the <a href="{deploy_logs_url}/{deploy_id}">deploy log</a> or the <a href="{github_url}/pull/{review_id}">pull request</a>.'
pull_request_banner = f'You are viewing <strong>{deploy_name} #{review_id}</strong>, not the official <a href="{knowledge_hub_url}">DEA Knowledge Hub</a>. View the <a href="{deploy_logs_url}/{deploy_id}">Deploy log</a> or <a href="{github_url}/pull/{review_id}">Pull request</a>.'

demo_banner = f'You are viewing <strong>{deploy_name}</strong>, not the official <a href="{knowledge_hub_url}">DEA Knowledge Hub</a>. View the <a href="{deploy_logs_url}?filter={git_branch}">deploy logs</a> or the <a href="{github_url}/tree/{git_branch}">git branch</a>.'
demo_banner = f'You are viewing <strong>{deploy_name}</strong>, not the official <a href="{knowledge_hub_url}">DEA Knowledge Hub</a>. View the <a href="{deploy_logs_url}?filter={git_branch}">Deploy logs</a> or <a href="{github_url}/tree/{git_branch}">Git branch</a>.'

if pull_request == "true":
return pull_request_banner
Expand Down

0 comments on commit 787980f

Please sign in to comment.