Skip to content

Commit 4d14b47

Browse files
committed
Add create project issue link
1 parent 0e5c670 commit 4d14b47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+118
-494
lines changed

config.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ theme = ["docsy"]
1010
enableGitInfo = true
1111

1212
# Language settings
13-
contentDir = "content/en"
13+
contentDir = "content"
1414
defaultContentLanguage = "en"
1515
defaultContentLanguageInSubdir = false
1616
# Useful when translating.
@@ -86,6 +86,7 @@ time_format_blog = "02.01.2006"
8686
copyright = "Copyright Contributors to the OpenCue Project"
8787
privacy_policy = "https://lfprojects.org/policies/privacy-policy/"
8888
github_repo = "https://github.com/AcademySoftwareFoundation/opencue.io"
89+
github_project_repo = "https://github.com/AcademySoftwareFoundation/OpenCue"
8990

9091
# Google Custom Search Engine ID. Remove or comment out to disable search.
9192
gcs_engine_id = "006268731659284851556:qwtylsm1rlc"
File renamed without changes.
File renamed without changes.
File renamed without changes.

layouts/partials/page-meta-links.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{ if .Path }}
2+
{{ $gh_repo := ($.Param "github_repo") }}
3+
{{ $gh_project_repo := ($.Param "github_project_repo") }}
4+
{{ if $gh_repo }}
5+
<div class="td-page-meta ml-2 pb-1 pt-2 mb-0">
6+
{{ $editURL := printf "%s/edit/master/content/%s" $gh_repo .Path }}
7+
{{ if .Site.IsMultiLingual }}
8+
{{ $editURL = printf "%s/edit/master/content/%s/%s" $gh_repo ($.Site.Language.Lang) .Path }}
9+
{{ end }}
10+
{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (htmlEscape $.Title )}}
11+
<a href="{{ $editURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_edit_this" }}</a>
12+
<a href="{{ $issuesURL }}" target="_blank"><i class="fab fa-github fa-fw"></i> {{ T "post_create_issue" }}</a>
13+
{{ if $gh_project_repo }}
14+
{{ $project_issueURL := printf "%s/issues/new/choose" $gh_project_repo }}
15+
<a href="{{ $project_issueURL }}" target="_blank"><i class="fas fa-tasks fa-fw"></i> {{ T "post_create_project_issue" }}</a>
16+
{{ end }}
17+
</div>
18+
{{ end }}
19+
{{ end }}

0 commit comments

Comments
 (0)