github-to-canvas 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github-to-canvas/repository_converter.rb +2 -2
- data/lib/github-to-canvas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b374fc3c1ba9d2a2260d0e41ae584210e0897c51b8fc54f7286239fbfe810510
|
4
|
+
data.tar.gz: 6cbe1e7aa6f31b29f1200191caa1b0c5eb5e93fd255cd9ad68dc9ea18e19132f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ab5ff8e879afda0b4bfbd6bfee46670f650458976b137bc33b38ffe84522bb72e9cef5f7e57d527f58d841833625a0b68040ddb2607d8f21acce1addb7a73f
|
7
|
+
data.tar.gz: 363cca9e891442bef50419ff99f4b72f4047b71ea6cc4f28c9914a267587ec4baeb869e9b7d6ac89d595a38b5cb788d7b120a6d37e6131f79345df1b97143e4d
|
@@ -75,8 +75,8 @@ class RepositoryConverter
|
|
75
75
|
repo = self.get_repo_url(filepath)
|
76
76
|
github_repo_link = "<a class='fis-git-link' href='#{repo}' target='_blank' rel='noopener'><img id='repo-img' title='Open GitHub Repo' alt='GitHub Repo' /></a>"
|
77
77
|
github_issue_link = "<a class='fis-git-link' href='#{repo}/issues/new' target='_blank' rel='noopener'><img id='issue-img' title='Create New Issue' alt='Create New Issue' /></a>"
|
78
|
-
thumbs_up_link = "<
|
79
|
-
thumbs_down_link = "<
|
78
|
+
thumbs_up_link = "<img id='thumbs-up' data-repository='#{repo.split('/')[-1]}' title='Thumbs up!' alt='thumbs up' />"
|
79
|
+
thumbs_down_link = "<img id='thumbs-down' data-repository='#{repo.split('/')[-1]}' title='Thumbs down!' alt='thumbs down' />"
|
80
80
|
feedback_link = "<h5>Have specific feedback? <a href='#{repo}/issues/new'>Tell us here!</a></h5>"
|
81
81
|
header = "<header class='fis-header' style='visibility: hidden;'>#{github_repo_link}#{github_issue_link}</header>"
|
82
82
|
footer = "<footer class='fis-footer' style='visibility: hidden;'><div class='fis-feedback'><h5>How do you feel about this lesson?</h5>#{thumbs_up_link}#{thumbs_down_link}</div>#{feedback_link}</footer>"
|