Skip to content
Open
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@
{% endblock top_left_menu_items %}

{% block create_button %}
<div class="ui green button"
data-bind="click: $root.show_modal('socialaccount-connections')">
{% trans "Add new connection" %}

<div class="two column">
<a href="https://github.com/apps/{{ GITHUB_APP_NAME }}/installations/new/"
target="_blank">
<div class="ui button green">{% trans "Manage GitHub App" %}</div>
</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buttons like this shouldn't be added to this section. The top button on a listing view is strictly for adding an item to the listing.

The standard pattern we're following is this should be an icon button or context menu item in the listing view:

Image

<div class="ui button green"
data-bind="click: $root.show_modal('socialaccount-connections')">
{% trans "Add new connection" %}
</div>
</div>
{% endblock create_button %}

Expand Down