-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Extract the username and password from the mirror url #7651
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
Changes from 1 commit
607971b
9705ff3
216d58d
a4b021f
b1473eb
1706c88
20cc428
f7a6166
c969a0b
a1ccd3e
fbe1381
7261119
db3ee4a
7360686
2fef0ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,9 +80,26 @@ | |
</div> | ||
<div class="field {{if .Err_MirrorAddress}}error{{end}}"> | ||
<label for="mirror_address">{{.i18n.Tr "repo.mirror_address"}}</label> | ||
<input id="mirror_address" name="mirror_address" value="{{.Mirror.FullAddress}}" required> | ||
<input id="mirror_address" name="mirror_address" value="{{.Mirror.AddressNoCredentials}}" required> | ||
<p class="help">{{.i18n.Tr "repo.mirror_address_desc"}}</p> | ||
</div> | ||
<div class="ui accordion optional field"> | ||
<label class="ui title {{if .Err_Auth}}text red active{{end}}"> | ||
<i class="icon dropdown"></i> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would remove that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or actually find out why semantic-ui does not make it toggleable, something in the HTML I assume. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the issue is that the HTML is unbalanced. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heya! I have no idea how that unbalanced label sneaked in. So the idea of sticking a label in there was to keep the formatting of collapsable section title the same - it looked weird to my eyes when it was different to all the other bits. I'll have to see if closing that label has changed that back. |
||
<label for="">{{.i18n.Tr "repo.need_auth"}} | ||
zeripath marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</label> | ||
<div class="content {{if .Err_Auth}}active{{else if .Mirror.Username}}active{{end}}"> | ||
<div class="inline field {{if .Err_Auth}}error{{end}}"> | ||
<label for="mirror_username">{{.i18n.Tr "username"}}</label> | ||
<input id="mirror_username" name="mirror_username" value="{{.Mirror.Username}}" {{if not .mirror_username}}data-need-clear="true"{{end}}> | ||
</div> | ||
<input class="fake" type="password"> | ||
<div class="inline field {{if .Err_Auth}}error{{end}}"> | ||
<label for="mirror_password">{{.i18n.Tr "password"}}</label> | ||
<input id="mirror_password" name="mirror_password" type="password" value=""> | ||
zeripath marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="field"> | ||
<button class="ui green button">{{$.i18n.Tr "repo.settings.update_settings"}}</button> | ||
|
Uh oh!
There was an error while loading. Please reload this page.