Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash secret example #1236

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tweaking of how we install GH for Jira
  • Loading branch information
krazziekay committed Jun 1, 2022
commit 050dcd62e86ad6bc5a4803140981bb5b6140d6bb
5 changes: 5 additions & 0 deletions static/css/github-configuration.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@
text-decoration: none;
}

.no-organization-in-github {
width: 80%;
margin: 0 auto 18px;
}

@keyframes spin {
0% {
transform: rotate(0deg);
Expand Down
5 changes: 5 additions & 0 deletions static/js/github-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ $(".sync-connection-link").click(function (event) {
},
});
});

$(".install-btn").click(function(event) {
event.preventDefault();
window.location.href = $(event.target).data("installation-url");
});
17 changes: 11 additions & 6 deletions views/github-configuration.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,19 @@
<p class="gitHubConfiguration__noOrganizations">No GitHub organizations with Jira installed.</p>
{{/unless}}
</div>
</div>
</div>

<a
class="gitHubConfiguration__connectNewOrg"
href="{{info.html_url}}/installations/new"
>
<span class="gitHubConfiguration__connectNewOrg__plus">+</span>Install GitHub for Jira on a new organization
</a>
<div class="text-center">
<div class="no-organization-in-github">
Don't see your Github organization? Install 'GitHub for Jira' on your Github organization to connect them to your Atlassian site.
</div>
<button
class="install-btn aui-button aui-button-{{#if installations}}default{{else}}primary{{/if}}"
data-installation-url="{{info.html_url}}/installations/new"
>
Install GitHub for Jira on a new organization
</button>
</div>

</section>
Expand Down