|
1 |
| -{% load static %} |
2 |
| -{% load i18n %} |
| 1 | +{% load trans blocktrans from i18n %} |
3 | 2 |
|
4 | 3 | {% comment rst %}
|
5 | 4 | Project automatic configuration view
|
|
25 | 24 | {% endblock project_add_configuration %}
|
26 | 25 |
|
27 | 26 | {% block project_add_automatic_search %}
|
| 27 | + {# Ignore "avoid inline styles" rule #} |
| 28 | + {# djlint:off H021 #} |
28 | 29 | <div class="ui small error message"
|
29 | 30 | data-bind="visible: error"
|
30 |
| - style="display: none">{% trans "There was an error while syncing your remote repositories" %}</div> |
| 31 | + style="display: none"> |
| 32 | + {# djlint:on #} |
| 33 | + {% trans "There was an error while syncing your remote repositories" %} |
| 34 | + </div> |
31 | 35 |
|
32 | 36 | {# Search prompt and dropdown #}
|
33 | 37 | <label>{% trans "Repository name:" %}</label>
|
|
123 | 127 | connected and why the repository can/cannot be used.
|
124 | 128 |
|
125 | 129 | {% endcomment %}
|
| 130 | + {# Ignore "avoid inline styles" rule #} |
| 131 | + {# djlint:off H021 #} |
126 | 132 | <div class="ui fluid card"
|
127 | 133 | data-bind="visible: is_selected, with: selected"
|
128 | 134 | style="display: none">
|
| 135 | + {# djlint:on #} |
129 | 136 | <div class="content">
|
130 | 137 | <img class="ui right floated mini rounded image"
|
131 |
| - data-bind="attr: { src: avatar_url }"> |
| 138 | + data-bind="attr: { src: avatar_url }" |
| 139 | + alt="{% trans "Repository logo" %}" /> |
132 | 140 | <div class="header" data-bind="text: full_name"></div>
|
133 | 141 | <div class="meta" data-bind="text: clone_url"></div>
|
134 | 142 | <div class="description">
|
|
218 | 226 | <a class="ui basic image label"
|
219 | 227 | data-bind="attr: {href: urls.home }"
|
220 | 228 | target="_blank">
|
221 |
| - <img data-bind="if: $parent.avatar_url, attr: {src: $parent.avatar_url}" /> |
| 229 | + <img data-bind="if: $parent.avatar_url, attr: {src: $parent.avatar_url}" |
| 230 | + alt="{% trans "Repository logo" %}" /> |
222 | 231 | <span data-bind="text: name"></span>
|
223 | 232 | </a>
|
224 | 233 | </div>
|
|
242 | 251 | <input type="hidden" name="remote_repository" data-bind="value: pk" />
|
243 | 252 | <input type="hidden" name="default_branch" data-bind="value: default_branch" />
|
244 | 253 |
|
245 |
| - <button class="ui primary button" data-bind="css: {disabled: !admin}">{% trans "Continue" %}</button> |
| 254 | + <button class="ui primary button" |
| 255 | + data-bind="css: {disabled: (!admin || !$parent.is_repository_supported($data))}"> |
| 256 | + {% trans "Continue" %} |
| 257 | + </button> |
246 | 258 | </form>
|
247 | 259 | </span>
|
248 | 260 | </div>
|
|
0 commit comments