Skip to content

Commit 322140f

Browse files
agjohnsonericholscher
authored andcommitted
Fix template structure around import page (#2449)
Allow for button centering and separation
1 parent 402c0e3 commit 322140f

File tree

1 file changed

+36
-29
lines changed

1 file changed

+36
-29
lines changed

readthedocs/templates/projects/project_import.html

+36-29
Original file line numberDiff line numberDiff line change
@@ -75,40 +75,47 @@ <h1>{% trans "Import a Repository" %}</h1>
7575
<div class="module-list">
7676
<div class="module-list-wrapper">
7777

78-
<ul data-bind="visible: is_ready() && !has_projects()" style="display: none;">
78+
<ul data-bind="visible: is_ready() && !has_projects()" style="display: none;"
79+
class="remote-repos-empty">
7980
<li class="module-item">
8081
{% if has_connected_accounts %}
8182
{% blocktrans with binding='data-bind="click: sync_projects"' trimmed %}
82-
No remote repositories found,
83-
try <a href="#" {{ binding }}>refreshing your accounts</a>.
83+
<p>
84+
No remote repositories found,
85+
try <a href="#" {{ binding }}>refreshing your accounts</a>.
86+
</p>
8487
{% endblocktrans %}
8588
{% else %}
86-
{% blocktrans trimmed %}
87-
You don't currently have any connected accounts.
88-
Connect your account to be able to easily set up projects.
89-
{% endblocktrans %}
90-
91-
<form
92-
method="get"
93-
action="{% provider_login_url "github" %}"
94-
class="import-connect import-connect-github">
95-
<button>
96-
{% trans "Connect to GitHub" %}
97-
</button>
98-
<input type="hidden" name="process" value="connect">
99-
<input type="hidden" name="next" value="/dashboard/import/">
100-
</form>
101-
102-
<form
103-
method="get"
104-
action="{% provider_login_url "bitbucket_oauth2" %}"
105-
class="import-connect import-connect-bitbucket">
106-
<button>
107-
{% trans "Connect to Bitbucket" %}
108-
</button>
109-
<input type="hidden" name="process" value="connect">
110-
<input type="hidden" name="next" value="/dashboard/import/">
111-
</form>
89+
<p>
90+
{% blocktrans trimmed %}
91+
You don't currently have any connected accounts.
92+
Connect your account to be able to easily set up projects.
93+
{% endblocktrans %}
94+
</p>
95+
96+
<div class="project-import-providers">
97+
<form
98+
method="get"
99+
action="{% provider_login_url "github" %}"
100+
class="import-connect import-connect-github">
101+
<button>
102+
{% trans "Connect to GitHub" %}
103+
</button>
104+
<input type="hidden" name="process" value="connect">
105+
<input type="hidden" name="next" value="/dashboard/import/">
106+
</form>
107+
108+
<form
109+
method="get"
110+
action="{% provider_login_url "bitbucket_oauth2" %}"
111+
class="import-connect import-connect-bitbucket">
112+
<button>
113+
{% trans "Connect to Bitbucket" %}
114+
</button>
115+
<input type="hidden" name="process" value="connect">
116+
<input type="hidden" name="next" value="/dashboard/import/">
117+
</form>
118+
</div>
112119

113120
{% endif %}
114121
</li>

0 commit comments

Comments
 (0)