Skip to content

Commit

Permalink
Fixing cloning bug (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
moneyinthesky authored Dec 5, 2024
1 parent 5b6d4c0 commit 598f4d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common-theme/layouts/_default/backlog.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ define "main" }}
{{ $currentPath := .Page.RelPermalink }}
{{ $backlog_filter := .Page.Params.backlog_filter }}
{{ $repos := .Page.Params.backlog }}
{{ if not (reflect.IsSlice $repos) }}
Expand All @@ -14,6 +15,7 @@
*/}}
{{ range $repos }}
{{ $issueBlocks := partial "block/issues-list-as-blocks.html" (dict "backlog" . "backlog_filter" $backlog_filter) }}
{{ $repo := . }}
{{ range $issueBlocks }}
<div class="c-alert" role="alert" hidden>
<span class="alert__message"></span>
Expand All @@ -26,7 +28,7 @@
{{ .name }}
<a class="c-issue__link" href="{{ .src }}">🔗</a>
<a
href="https://curriculum.codeyourfuture.io/api/clone?state={{ dict "issue" .number "module" .Page.Params.backlog "sprint" .Page.Params.backlog_filter "prevURL" (urls.AbsLangURL .Page.RelPermalink) | jsonify }}"
href="https://curriculum.codeyourfuture.io/api/clone?state={{ dict "issue" .number "module" $repo "sprint" $backlog_filter "prevURL" (urls.AbsLangURL $currentPath) | jsonify }}"
class="e-button"
data-props="{{ .Page.RelPermalink }}">
Clone
Expand Down

0 comments on commit 598f4d2

Please sign in to comment.