mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
Polish bug report page
This commit is contained in:
parent
40f6b76221
commit
74dcf0fe7c
@ -31,6 +31,13 @@
|
||||
$("#contact_email_error").hide();
|
||||
}
|
||||
|
||||
if (!noError) {
|
||||
$(".has-errors").show();
|
||||
$(".submitting").hide();
|
||||
} else {
|
||||
$(".has-errors").hide();
|
||||
$(".submitting").show();
|
||||
}
|
||||
return noError;
|
||||
};
|
||||
</script>
|
||||
@ -41,11 +48,13 @@
|
||||
exception. If you believe it is a bug of GitPlex, please send this
|
||||
error using below form to help us improving quality of the product</div>
|
||||
|
||||
<form action="https://www.pmease.com/gitplex_bug_report" method="post">
|
||||
<form action="https://www.gitplex.com/bug-report" method="post">
|
||||
<div class="actions">
|
||||
<input type="submit" value="Send Error Report" class="btn btn-primary" onclick="if (validateBugReport()) this.form.submit();return false;"></input>
|
||||
<input wicket:id="dashboardTop" type="button" value="Back to Dashboard" class="btn btn-primary"></input>
|
||||
</div>
|
||||
<h4 class="alert alert-danger has-errors">Fix errors below</h4>
|
||||
<h4 class="alert alert-info submitting">Submitting bug report...</h4>
|
||||
<table class="table properties">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -96,7 +105,7 @@
|
||||
<input type="submit" value="Send Error Report" onclick="if (validateBugReport()) this.form.submit();return false;" class="btn btn-primary"></input>
|
||||
<input wicket:id="dashboardBottom" type="button" value="Back to Dashboard" class="btn btn-primary"></input>
|
||||
</div>
|
||||
<input wicket:id="dashboardUrl" type="hidden" name="dashboard_url"></input>
|
||||
<input wicket:id="backUrl" type="hidden" name="back_url"></input>
|
||||
<input wicket:id="additionalInfo" type="hidden" name="additional_info"></input>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -122,7 +122,7 @@ public class UnexpectedExceptionPage extends BaseErrorPage {
|
||||
add(new BookmarkablePageLink<Void>("dashboardTop", DashboardPage.class));
|
||||
add(new BookmarkablePageLink<Void>("dashboardBottom", DashboardPage.class));
|
||||
|
||||
add(new WebMarkupContainer("dashboardUrl") {
|
||||
add(new WebMarkupContainer("backUrl") {
|
||||
|
||||
@Override
|
||||
protected void onComponentTag(ComponentTag tag) {
|
||||
|
||||
@ -25,7 +25,11 @@ body.error .center-box .detail>.body {
|
||||
}
|
||||
|
||||
body.error .center-box textarea {
|
||||
height: 800px;
|
||||
height: 600px;
|
||||
}
|
||||
|
||||
body.error .has-errors, body.error .submitting {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.error form .actions {
|
||||
@ -34,6 +38,7 @@ body.error form .actions {
|
||||
body.error td.name {
|
||||
font-weight: bold;
|
||||
color: #444;
|
||||
width: 140px;
|
||||
}
|
||||
body.error form .error {
|
||||
margin-top: 8px;
|
||||
|
||||
@ -15,6 +15,7 @@ public class TestPage extends BasePage {
|
||||
|
||||
@Override
|
||||
public void onClick() {
|
||||
throw new RuntimeException("OOPS!");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user